x86/boot/compressed/64: Add page-fault handler
Install a page-fault handler to add an identity mapping to addresses not yet mapped. Also do some checking whether the error code is sane. This makes non SEV-ES machines use the exception handling infrastructure in the pre-decompressions boot code too, making it less likely to break in the future. 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-16-joro@8bytes.org
Showing
- arch/x86/boot/compressed/ident_map_64.c 39 additions, 0 deletionsarch/x86/boot/compressed/ident_map_64.c
- arch/x86/boot/compressed/idt_64.c 2 additions, 0 deletionsarch/x86/boot/compressed/idt_64.c
- arch/x86/boot/compressed/idt_handlers_64.S 2 additions, 0 deletionsarch/x86/boot/compressed/idt_handlers_64.S
- arch/x86/boot/compressed/misc.h 6 additions, 0 deletionsarch/x86/boot/compressed/misc.h
Loading
Please register or sign in to comment