]> Git Repo - linux.git/commit - arch/x86/Kconfig
x86, kaslr: Return location from decompress_kernel
authorKees Cook <[email protected]>
Fri, 11 Oct 2013 00:18:14 +0000 (17:18 -0700)
committerH. Peter Anvin <[email protected]>
Sun, 13 Oct 2013 10:12:07 +0000 (03:12 -0700)
commit8ab3820fd5b2896d66da7bb2a906bc382e63e7bc
tree50f6f4458f86eb66552c13bef81169e44d27dc28
parentdd78b97367bd575918204cc89107c1479d3fc1a7
x86, kaslr: Return location from decompress_kernel

This allows decompress_kernel to return a new location for the kernel to
be relocated to. Additionally, enforces CONFIG_PHYSICAL_START as the
minimum relocation position when building with CONFIG_RELOCATABLE.

With CONFIG_RANDOMIZE_BASE set, the choose_kernel_location routine
will select a new location to decompress the kernel, though here it is
presently a no-op. The kernel command line option "nokaslr" is introduced
to bypass these routines.

Signed-off-by: Kees Cook <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: H. Peter Anvin <[email protected]>
Documentation/kernel-parameters.txt
arch/x86/Kconfig
arch/x86/boot/compressed/Makefile
arch/x86/boot/compressed/aslr.c [new file with mode: 0644]
arch/x86/boot/compressed/cmdline.c
arch/x86/boot/compressed/head_32.S
arch/x86/boot/compressed/head_64.S
arch/x86/boot/compressed/misc.c
arch/x86/boot/compressed/misc.h
This page took 0.052791 seconds and 4 git commands to generate.