diff options
author | Jun'ichi Nomura <[email protected]> | 2023-11-29 15:44:49 -0500 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2023-11-30 09:55:40 +0100 |
commit | 78a509fba9c9b1fcb77f95b7c6be30da3d24823a (patch) | |
tree | ca40329c9ef904c228c9bdeaf0be52601984059d /tools/testing/selftests/bpf/prog_tests/recursion.c | |
parent | 2cc14f52aeb78ce3f29677c2de1f06c0e91471ab (diff) |
x86/boot: Ignore NMIs during very early boot
When there are two racing NMIs on x86, the first NMI invokes NMI handler and
the 2nd NMI is latched until IRET is executed.
If panic on NMI and panic kexec are enabled, the first NMI triggers
panic and starts booting the next kernel via kexec. Note that the 2nd
NMI is still latched. During the early boot of the next kernel, once
an IRET is executed as a result of a page fault, then the 2nd NMI is
unlatched and invokes the NMI handler.
However, NMI handler is not set up at the early stage of boot, which
results in a boot failure.
Avoid such problems by setting up a NOP handler for early NMIs.
[ mingo: Refined the changelog. ]
Signed-off-by: Jun'ichi Nomura <[email protected]>
Signed-off-by: Derek Barbosa <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions