x86/boot/compressed/64: Don't pre-map memory in KASLR code
authorJoerg Roedel <jroedel@suse.de>
Mon, 7 Sep 2020 13:15:18 +0000 (15:15 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 7 Sep 2020 17:45:25 +0000 (19:45 +0200)
commit8570978ea030757839747aa9944ea576708be3d4
treedb071f7629f955938db50ff11b13dbdda406e29f
parentca0e22d4f011a56e974fa3a712d76e86a791559d
x86/boot/compressed/64: Don't pre-map memory in KASLR code

With the page-fault handler in place, he identity mapping can be built
on-demand. So remove the code which manually creates the mappings and
unexport/remove the functions used for it.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/20200907131613.12703-18-joro@8bytes.org
arch/x86/boot/compressed/ident_map_64.c
arch/x86/boot/compressed/kaslr.c
arch/x86/boot/compressed/misc.h