[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#866337: linux-image-4.9.0-3-686: KASLR does not disable hibernate



Package: src:linux
Version: 4.9.30-2
Severity: important
Tags: upstream

Hello.

It looks like I found a problem in the kernel that is currently shipped with
debian stretch. 

In the stretch kernel ASLR mechanism got enabled (kernel option
CONFIG_RANDOMIZE_BASE), which conflicts with the hibernation mechanism
(kernel option CONFIG_HIBERNATE). 

It is clearly stated in the CONFIG_RANDOMIZE_BASE help that enabling
KASLR will prevent kernel from hibernating, cite:

    If CONFIG_HIBERNATE is also enabled, KASLR is disabled at boot
    time. To enable it, boot with "kaslr" on the kernel command
    line (which will also disable hibernation).

Unfortunately, in my case it is not disabled. That is, I'm able to
hibernate, and then, when I turn on my laptop (Thinkpad X220i) again,
kernel tries to restore the dump it made while hibernating, fails, and
that leads either to hard reset of the laptop, or just it turning off.

I've spent around a week trying to find out why my hibernation doesn't
work. I suppose that, if KASLR is enabled (i.e. by default)  the kernel 
should disable hibernation *and* drop a message into dmesg that it can't 
hibernate because of KASLR.

I'm pretty sure that it is an upstream bug, so I mark this report as
upstream. I also tried 4.11 kernel from the unstable branch -- situation
is the same.

-- Package-specific info:
** Version:
Linux version 4.9.0-3-686 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP Debian 4.9.30-2 (2017-06-12)

** Command line:
BOOT_IMAGE=Linux ro root=801 quiet resume=/dev/sda2 ipv6.disable=1 nokaslr noefi 

** Not tainted

** Kernel log:
[ 4434.556977] iwlwifi 0000:03:00.0: Radio type=0x0-0x0-0x3
[ 4434.613836] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4434.621349] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4434.621452] iwlwifi 0000:03:00.0: Radio type=0x0-0x0-0x3
[ 4434.669620] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4434.677205] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4434.677308] iwlwifi 0000:03:00.0: Radio type=0x0-0x0-0x3
[ 4434.940857] e1000e: eth0 NIC Link is Down
[ 4436.088445] (NULL device *): firmware: direct-loading firmware iwlwifi-1000-5.ucode
[ 4436.088462] PM: Syncing filesystems ... 
[ 4437.000320] done.
[ 4437.000325] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 4437.001807] PM: Marking nosave pages: [mem 0x00000000-0x00000fff]
[ 4437.001810] PM: Marking nosave pages: [mem 0x0009d000-0x000fffff]
[ 4437.001818] PM: Marking nosave pages: [mem 0x20000000-0x201fffff]
[ 4437.001842] PM: Basic memory bitmaps created
[ 4437.001979] PM: Preallocating image memory... done (allocated 274066 pages)
[ 4437.236336] PM: Allocated 1096264 kbytes in 0.23 seconds (4766.36 MB/s)
[ 4437.236337] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 4437.237756] Suspending console(s) (use no_console_suspend to debug)
[ 4437.238068] ACPI : EC: event blocked
[ 4437.487413] PM: freeze of devices complete after 249.647 msecs
[ 4437.505923] PM: late freeze of devices complete after 18.497 msecs
[ 4437.506444] ACPI : EC: interrupt blocked
[ 4437.508041] PM: noirq freeze of devices complete after 2.113 msecs
[ 4437.508629] ACPI: Preparing to enter system sleep state S4
[ 4437.515379] ACPI : EC: EC stopped
[ 4437.515381] PM: Saving platform NVS memory
[ 4437.516824] Disabling non-boot CPUs ...
[ 4437.518251] smpboot: CPU 1 is now offline
[ 4437.518845] PM: Creating hibernation image:
[ 4437.647743] PM: Need to copy 271622 pages
[ 4437.647749] PM: Normal pages needed: 68774 + 1024, available pages: 157885
[ 4437.519580] PM: Restoring platform NVS memory
[ 4437.519803] ACPI : EC: EC started
[ 4437.520088] Suspended for 56643.583 seconds
[ 4437.520142] Enabling non-boot CPUs ...
[ 4437.520197] x86: Booting SMP configuration:
[ 4437.520198] smpboot: Booting Node 0 Processor 1 APIC 0x2
[ 4437.520440] Initializing CPU#1
[ 4437.520455] Disabled fast string operations
[ 4437.527059] CPU1 is up
[ 4437.528698] ACPI: Waking up from system sleep state S4
[ 4437.537385] thinkpad_acpi: EC reports that Thermal Table has changed
[ 4437.544774] ACPI : EC: interrupt unblocked
[ 4437.545539] sdhci-pci 0000:0d:00.0: MMC controller base frequency changed to 50Mhz.
[ 4437.575107] PM: noirq restore of devices complete after 30.405 msecs
[ 4437.575762] PM: early restore of devices complete after 0.605 msecs
[ 4437.674942] ACPI : EC: event unblocked
[ 4437.675220] usb usb1: root hub lost power or was reset
[ 4437.679118] ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
[ 4437.679203] usb usb2: root hub lost power or was reset
[ 4437.680266] iwlwifi 0000:03:00.0: RF_KILL bit toggled to enable radio.
[ 4437.680897] rtc_cmos 00:02: System wakeup disabled by ACPI
[ 4437.683085] ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
[ 4437.691504] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4437.693603] sd 0:0:0:0: [sda] Starting disk
[ 4437.701506] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4437.701606] iwlwifi 0000:03:00.0: Radio type=0x0-0x0-0x3
[ 4437.746421] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4437.753917] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4437.754018] iwlwifi 0000:03:00.0: Radio type=0x0-0x0-0x3
[ 4438.009732] ata2: SATA link down (SStatus 0 SControl 300)
[ 4438.014321] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 4438.014355] ata5: SATA link down (SStatus 0 SControl 300)
[ 4438.015088] usb 1-1: reset high-speed USB device number 2 using ehci-pci
[ 4438.016156] ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
[ 4438.016161] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[ 4438.016165] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[ 4438.019121] usb 2-1: reset high-speed USB device number 2 using ehci-pci
[ 4438.047357] ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
[ 4438.047363] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[ 4438.047367] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[ 4438.049710] ata1.00: configured for UDMA/133
[ 4438.459076] usb 1-1.6: reset high-speed USB device number 3 using ehci-pci
[ 4438.467354] psmouse serio1: synaptics: queried max coordinates: x [..5472], y [..4448]
[ 4438.778666] PM: restore of devices complete after 1103.840 msecs
[ 4438.779008] PM: Image restored successfully.
[ 4438.779025] PM: Basic memory bitmaps freed
[ 4438.779027] Restarting tasks ... done.
[ 4442.019084] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4442.026573] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4442.026676] iwlwifi 0000:03:00.0: Radio type=0x0-0x0-0x3
[ 4442.070680] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4442.078216] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4442.078319] iwlwifi 0000:03:00.0: Radio type=0x0-0x0-0x3
[ 4442.304288] e1000e: eth0 NIC Link is Down
[ 4443.010801] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4443.018323] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4443.018427] iwlwifi 0000:03:00.0: Radio type=0x0-0x0-0x3
[ 4443.063326] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4443.070816] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 4443.070919] iwlwifi 0000:03:00.0: Radio type=0x0-0x0-0x3
[ 4445.290793] wlan0: authenticate with 90:f6:52:f6:24:9a
[ 4445.293793] wlan0: send auth to 90:f6:52:f6:24:9a (try 1/3)
[ 4445.298487] wlan0: authenticated
[ 4445.299012] wlan0: associate with 90:f6:52:f6:24:9a (try 1/3)
[ 4445.303002] wlan0: RX AssocResp from 90:f6:52:f6:24:9a (capab=0x411 status=0 aid=1)
[ 4445.314086] wlan0: associated
[ 4597.272794] perf: interrupt took too long (2534 > 2500), lowering kernel.perf_event_max_sample_rate to 78750

** Model information

** Loaded modules:
rpcsec_gss_krb5
auth_rpcgss
oid_registry
nfsv4
dns_resolver
nfs
lockd
grace
sunrpc
fscache
dm_mod
ctr
ccm
appletalk
ax25
ipx
p8023
p8022
psnap
llc
arc4
iwldvm
snd_hda_codec_hdmi
mac80211
iTCO_wdt
snd_hda_codec_conexant
snd_hda_codec_generic
uvcvideo
joydev
serio_raw
iTCO_vendor_support
videobuf2_vmalloc
videobuf2_memops
evdev
videobuf2_v4l2
thinkpad_acpi
videobuf2_core
iwlwifi
videodev
cfg80211
media
intel_rapl
x86_pkg_temp_thermal
snd_hda_intel
intel_powerclamp
snd_hda_codec
snd_hda_core
coretemp
snd_hwdep
i915
kvm_intel
kvm
snd_pcm
lpc_ich
sg
irqbypass
crc32_pclmul
snd_timer
intel_cstate
intel_uncore
intel_rapl_perf
nvram
ac
wmi
snd
drm_kms_helper
rfkill
drm
soundcore
video
i2c_algo_bit
battery
fb_sys_fops
syscopyarea
sysfillrect
shpchp
button
mei_me
mei
sysimgblt
ext4
crc16
jbd2
crc32c_generic
fscrypto
ecb
xts
lrw
gf128mul
ablk_helper
cryptd
aes_i586
mbcache
sd_mod
ahci
crc32c_intel
libahci
sdhci_pci
sdhci
psmouse
mmc_core
libata
scsi_mod
i2c_i801
i2c_smbus
ehci_pci
ehci_hcd
thermal
usbcore
usb_common
e1000e
ptp
pps_core

** PCI devices:
not available

** USB devices:
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 04f2:b217 Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP)
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 4.9.0-3-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages linux-image-4.9.0-3-686 depends on:
ii  initramfs-tools [linux-initramfs-tool]  0.130
ii  kmod                                    23-2
ii  linux-base                              4.5

Versions of packages linux-image-4.9.0-3-686 recommends:
pn  firmware-linux-free  <none>
pn  irqbalance           <none>

Versions of packages linux-image-4.9.0-3-686 suggests:
pn  debian-kernel-handbook  <none>
pn  grub-pc | extlinux      <none>
pn  linux-doc-4.9           <none>

Versions of packages linux-image-4.9.0-3-686 is related to:
pn  firmware-amd-graphics     <none>
pn  firmware-atheros          <none>
pn  firmware-bnx2             <none>
pn  firmware-bnx2x            <none>
pn  firmware-brcm80211        <none>
pn  firmware-cavium           <none>
pn  firmware-intel-sound      <none>
pn  firmware-intelwimax       <none>
pn  firmware-ipw2x00          <none>
pn  firmware-ivtv             <none>
ii  firmware-iwlwifi          20161130-3
pn  firmware-libertas         <none>
pn  firmware-linux-nonfree    <none>
pn  firmware-misc-nonfree     <none>
pn  firmware-myricom          <none>
pn  firmware-netxen           <none>
pn  firmware-qlogic           <none>
pn  firmware-realtek          <none>
pn  firmware-samsung          <none>
pn  firmware-siano            <none>
pn  firmware-ti-connectivity  <none>
pn  xen-hypervisor            <none>

-- no debconf information


Reply to: