diff options
author | Ard Biesheuvel <[email protected]> | 2020-03-08 09:08:45 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2020-03-08 09:58:18 +0100 |
commit | f3fa0efce2e765f24356b70bd0786f290d84328c (patch) | |
tree | 31be3ac197f5a4a9ae6daf6a5aa8992125443352 /lib/mpi | |
parent | 81a34892c2c7c809f9c4e22c5ac936ae673fb9a2 (diff) |
efi/libstub/x86: Deal with exit() boot service returning
Even though it is uncommon, there are cases where the Exit() EFI boot
service might return, e.g., when we were booted via the EFI handover
protocol from OVMF and the kernel image was specified on the command
line, in which case Exit() attempts to terminate the boot manager,
which is not an EFI application itself.
So let's drop into an infinite loop instead of randomly executing code
that isn't expecting it.
Tested-by: Nathan Chancellor <[email protected]> # build
Signed-off-by: Ard Biesheuvel <[email protected]>
[ardb: put 'hlt' in deadloop]
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions