diff options
author | Kees Cook <keescook@chromium.org> | 2016-06-13 18:10:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-06-26 06:32:03 -0400 |
commit | 65fe935dd2387a4faf15314c73f5e6d31ef0217e (patch) | |
tree | 55e7f3f9bdb8fa0f99577d6c18c7c1485ce39dc8 /kernel/power | |
parent | 8d950d2fb23b696d393020486ab6a350bcb2c582 (diff) |
x86/KASLR, x86/power: Remove x86 hibernation restrictions
With the following fix:
70595b479ce1 ("x86/power/64: Fix crash whan the hibernation code passes control to the image kernel")
... there is no longer a problem with hibernation resuming a
KASLR-booted kernel image, so remove the restriction.
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Baoquan He <bhe@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Len Brown <len.brown@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Linux PM list <linux-pm@vger.kernel.org>
Cc: Logan Gunthorpe <logang@deltatee.com>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: linux-doc@vger.kernel.org
Link: http://lkml.kernel.org/r/20160613221002.GA29719@www.outflux.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/power')
-rw-r--r-- | kernel/power/hibernate.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index fca9254280ee..9021387c6ff4 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c | |||
@@ -1154,11 +1154,6 @@ static int __init nohibernate_setup(char *str) | |||
1154 | return 1; | 1154 | return 1; |
1155 | } | 1155 | } |
1156 | 1156 | ||
1157 | static int __init kaslr_nohibernate_setup(char *str) | ||
1158 | { | ||
1159 | return nohibernate_setup(str); | ||
1160 | } | ||
1161 | |||
1162 | static int __init page_poison_nohibernate_setup(char *str) | 1157 | static int __init page_poison_nohibernate_setup(char *str) |
1163 | { | 1158 | { |
1164 | #ifdef CONFIG_PAGE_POISONING_ZERO | 1159 | #ifdef CONFIG_PAGE_POISONING_ZERO |
@@ -1182,5 +1177,4 @@ __setup("hibernate=", hibernate_setup); | |||
1182 | __setup("resumewait", resumewait_setup); | 1177 | __setup("resumewait", resumewait_setup); |
1183 | __setup("resumedelay=", resumedelay_setup); | 1178 | __setup("resumedelay=", resumedelay_setup); |
1184 | __setup("nohibernate", nohibernate_setup); | 1179 | __setup("nohibernate", nohibernate_setup); |
1185 | __setup("kaslr", kaslr_nohibernate_setup); | ||
1186 | __setup("page_poison=", page_poison_nohibernate_setup); | 1180 | __setup("page_poison=", page_poison_nohibernate_setup); |