Temporarily (?) disable ASLR in the 32-bit kernels

ASLR seems to cause hibernate-related regressions on at least one test
system: https://linux-hardware.org/index.php?probe=e6a06c64c7

When the system tries to resume, it automatically reboots after the
hibernation image has been loaded into memory.

git bisect 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

Before this commit, KASLR was disabled (unless enabled explicitly) if
the system supported hibernation.

Let us just disable KASLR for now in the 32-bit kernels - not a big deal
for home & office use, I suppose.
This commit is contained in:
Evgenii Shatokhin 2017-03-09 15:07:34 +03:00
parent 80c29b9ae6
commit 255b2cc7f4

View file

@ -500,8 +500,7 @@ CONFIG_CRASH_DUMP=y
CONFIG_KEXEC_JUMP=y
CONFIG_PHYSICAL_START=0x100000
CONFIG_RELOCATABLE=y
CONFIG_RANDOMIZE_BASE=y
CONFIG_RANDOMIZE_BASE_MAX_OFFSET=0x20000000
# CONFIG_RANDOMIZE_BASE is not set
CONFIG_X86_NEED_RELOCS=y
CONFIG_PHYSICAL_ALIGN=0x100000
CONFIG_HOTPLUG_CPU=y