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


Groups > linux.kernel > #1607693

Re: [PATCH] hibernation: on 32-bit x86, disabled in favor of KASLR

From Yu Chen <yu.chen.surf@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] hibernation: on 32-bit x86, disabled in favor of KASLR
Date 2017-03-23 17:40 +0100
Message-ID <todWi-4QN-29@gated-at.bofh.it> (permalink)
References <tnYNz-2xC-11@gated-at.bofh.it> <toaYp-2KA-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

On Thu, Mar 23, 2017 at 9:23 PM, Evgenii Shatokhin
<eugene.shatokhin@yandex.ru> wrote:
> On 23.03.2017 03:27, Kees Cook wrote:
>>
>> This is a modified revert of commit 65fe935dd238 ("x86/KASLR, x86/power:
>> Remove x86 hibernation restrictions"), since it appears that 32-bit
>> hibernation still can't support KASLR. 64-bit is fine. Since people have
>> been running with KASLR by default on 32-bit since v4.8, this disables
>> hibernation (with a warning). Booting with "nokaslr" will disable KASLR
>> and enable hibernation.
>>
>> Reported-by: Evgenii Shatokhin <eugene.shatokhin@yandex.ru>
>> Signed-off-by: Kees Cook <keescook@chromium.org>
>> Cc: stable@vger.kernel.org # v4.8+
>
>
> The patch does not work as intended on my system, unfortunately.
>
> I tried the mainline kernel v4.11-rc3 and added this patch. With "nokaslr"
> in the kernel command line, the system fails to hibernate. It complains this
> way in the log:
Could you please send me your kernel config? I've built a 4.11-rc3
image and runs
it on my 32bit laptop and hibernate works on CONFIG_RANDOMIZE_BASE=y

Yu

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


Thread

[PATCH] hibernation: on 32-bit x86, disabled in favor of KASLR Kees Cook <keescook@chromium.org> - 2017-03-23 01:30 +0100
  Re: [PATCH] hibernation: on 32-bit x86, disabled in favor of KASLR "Rafael J. Wysocki" <rafael@kernel.org> - 2017-03-23 02:20 +0100
  Re: [PATCH] hibernation: on 32-bit x86, disabled in favor of KASLR Evgenii Shatokhin <eugene.shatokhin@yandex.ru> - 2017-03-23 14:30 +0100
    Re: [PATCH] hibernation: on 32-bit x86, disabled in favor of KASLR "Rafael J. Wysocki" <rafael@kernel.org> - 2017-03-23 16:40 +0100
      Re: [PATCH] hibernation: on 32-bit x86, disabled in favor of KASLR Evgenii Shatokhin <eugene.shatokhin@yandex.ru> - 2017-03-25 17:40 +0100
        Re: [PATCH] hibernation: on 32-bit x86, disabled in favor of KASLR Kees Cook <keescook@chromium.org> - 2017-03-25 18:10 +0100
    Re: [PATCH] hibernation: on 32-bit x86, disabled in favor of KASLR Yu Chen <yu.chen.surf@gmail.com> - 2017-03-23 17:40 +0100

csiph-web