[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



Control: tags -1 + moreinfo

Michael,

On Thu, Jun 29, 2017 at 01:30:57AM +0300, Krylov Michael wrote:
> 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.

Ist this issue still reproducible for your (in case HW available) with
more recent kernels?

Regards,
Salvatore


Reply to: