mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] make kASLR vs hibernation boot-time selectable
@ 2014-06-13 20:30 Kees Cook
  2014-06-13 20:30 ` [PATCH v3 1/2] hibernate: create "nohibernate" boot parameter Kees Cook
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Kees Cook @ 2014-06-13 20:30 UTC (permalink / raw)
  To: linux-kernel
  Cc: Kees Cook, Pavel Machek, Josh Boyer, H. Peter Anvin,
	Randy Dunlap, Thomas Gleixner, Ingo Molnar, x86,
	Rafael J. Wysocki, Len Brown, Wei Yongjun, linux-doc, linux-pm

Distros want to be able to offer CONFIG_RANDOMIZE_BASE as well as
CONFIG_HIBERNATION in a single kernel. Instead of making kASLR depend on
!HIBERNATION at compile time, allow kaslr to be selectable at boot time
(via "kaslr" kernel command line), which will disable hibernation in the
kernel. In this way the end user can choose which feature they want more
with hibernation continuing to stay enabled by default (no surprises).

This also has the benefit of being able to entirely disable hibernation
from the kernel command line, regardless of kASLR, which is a separately
desired feature as well.

v3:
- switch from EINVAL to EPERM (pavel, jwboyer)
v2:
- rework using kernel command line instead of hibernation_mode (rjw)


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-17 20:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-13 20:30 [PATCH v3 0/2] make kASLR vs hibernation boot-time selectable Kees Cook
2014-06-13 20:30 ` [PATCH v3 1/2] hibernate: create "nohibernate" boot parameter Kees Cook
2014-06-13 20:30 ` [PATCH v3 2/2] x86, kaslr: boot-time selectable with hibernation Kees Cook
2014-06-13 20:39   ` Pavel Machek
2014-06-13 23:25 ` [PATCH v3 0/2] make kASLR vs hibernation boot-time selectable Rafael J. Wysocki
2014-06-14  6:09   ` Kees Cook
2014-06-17 21:07     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®