Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1605630

32-bit x86 system reboots automatically on resume from hibernate (ASLR issue?)

From Evgenii Shatokhin <eugene.shatokhin@yandex.ru>
Newsgroups linux.kernel
Subject 32-bit x86 system reboots automatically on resume from hibernate (ASLR issue?)
Date 2017-03-21 15:10 +0100
Message-ID <tnsE2-4nH-19@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

One of my x86 machines with a 32-bit Linux system (ROSA Linux in this 
case) automatically reboots when it tries to resume from hibernate. This 
happens shortly after "Image loading progress 100%" message is shown on 
the screen.

No traces of the error are in the system log after reboot though.

The problem is present at least in the mainline kernels 4.8 - 4.10. With 
earlier versions (I tried 4.4, 4.5, etc.), the system resumes OK.

The bisection pointed to the following commit as the first "bad" one:

commit 65fe935dd2387a4faf15314c73f5e6d31ef0217e
Author: Kees Cook <keescook@chromium.org>
Date:   Mon Jun 13 15:10:02 2016 -0700

     x86/KASLR, x86/power: Remove x86 hibernation restrictions

Hardware: https://linux-hardware.org/index.php?probe=e6a06c64c7
Config used to build the kernel at rev. 65fe935: 
http://pastebin.com/AxEA6ahb

If I understand it correctly, this commit just enabled ASLR by default 
regardless of whether hibernation support was present or not. Before 
this commit, ASLR was disabled on that system because hibernation was 
supported.

To check if ASLR is really involved here, I rebuilt the kernel with 
CONFIG_RANDOMIZE_BASE unset - now the system resumes OK from 
hibernation, no auto reboots, no other visible problems so far.

The problem does not show up in a 64-bit Linux system installed on the 
same machine. Only the 32-bit system is affected.

Regards,
Evgenii

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

32-bit x86 system reboots automatically on resume from hibernate  (ASLR issue?) Evgenii Shatokhin <eugene.shatokhin@yandex.ru> - 2017-03-21 15:10 +0100
  Re: 32-bit x86 system reboots automatically on resume from hibernate  (ASLR issue?) Kees Cook <keescook@chromium.org> - 2017-03-21 21:50 +0100
    Re: 32-bit x86 system reboots automatically on resume from hibernate  (ASLR issue?) Evgenii Shatokhin <eugene.shatokhin@yandex.ru> - 2017-03-22 14:00 +0100
      Re: 32-bit x86 system reboots automatically on resume from hibernate  (ASLR issue?) Kees Cook <keescook@chromium.org> - 2017-03-22 20:00 +0100
        Re: 32-bit x86 system reboots automatically on resume from hibernate (ASLR issue?) "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-03-22 23:40 +0100

csiph-web