linux/arch/x86/platform/efi
Andy Lutomirski c46f52231e x86/{fault,efi}: Fix and rename efi_recover_from_page_fault()
efi_recover_from_page_fault() doesn't recover -- it does a special EFI
mini-oops.  Rename it to make it clear that it crashes.

While renaming it, I noticed a blatant bug: a page fault oops in a
different thread happening concurrently with an EFI runtime service call
would be misinterpreted as an EFI page fault.  Fix that.

This isn't quite exact. The situation could be improved by using a
special CS for calls into EFI.

 [ bp: Massage commit message and simplify in interrupt check. ]

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/f43b1e80830dc78ed60ed8b0826f4f189254570c.1612924255.git.luto@kernel.org
2021-02-10 18:39:23 +01:00
..
efi_32.c efi/x86: Move 32-bit code into efi_32.c 2020-08-20 11:18:36 +02:00
efi_64.c efi/x86: Free efi_pgd with free_pages() 2020-11-10 19:18:11 +01:00
efi_stub_32.S efi/x86: Preserve %ebx correctly in efi_set_virtual_address_map() 2020-03-08 09:58:23 +01:00
efi_stub_64.S x86: Change {JMP,CALL}_NOSPEC argument 2020-04-30 20:14:34 +02:00
efi_thunk_64.S efi/x86: Check number of arguments to variadic functions 2020-01-10 18:55:04 +01:00
efi.c Merge branch 'efi/urgent' into efi/core, to pick up fixes 2020-10-12 13:38:31 +02:00
Makefile efi/x86: Disable instrumentation in the EFI runtime handling code 2020-01-25 10:14:37 +01:00
quirks.c x86/{fault,efi}: Fix and rename efi_recover_from_page_fault() 2021-02-10 18:39:23 +01:00