]> Git Repo - linux.git/commit
kernel/kexec_file.c: remove checks in kexec_purgatory_load
authorPhilipp Rudo <[email protected]>
Fri, 13 Apr 2018 22:36:13 +0000 (15:36 -0700)
committerLinus Torvalds <[email protected]>
Sat, 14 Apr 2018 00:10:28 +0000 (17:10 -0700)
commitd2b8178ca7324a21495cb71049b4e4a041ab5942
treefd3617e079d9853013d395b56ed30c5408ede97f
parentee6ebeda8ddc350700168f2c8052a97bd9c11e5b
kernel/kexec_file.c: remove checks in kexec_purgatory_load

Before the purgatory is loaded several checks are done whether the ELF
file in kexec_purgatory is valid or not.  These checks are incomplete.
For example they don't check for the total size of the sections defined
in the section header table or if the entry point actually points into
the purgatory.

On the other hand the purgatory, although an ELF file on its own, is
part of the kernel.  Thus not trusting the purgatory means not trusting
the kernel build itself.

So remove all validity checks on the purgatory and just trust the kernel
build.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Philipp Rudo <[email protected]>
Acked-by: Dave Young <[email protected]>
Cc: AKASHI Takahiro <[email protected]>
Cc: Eric Biederman <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Thiago Jung Bauermann <[email protected]>
Cc: Vivek Goyal <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/kexec_file.c
This page took 0.052602 seconds and 4 git commands to generate.