https://github.com/torvalds/linux
Revision 15a416e8aaa758b5534f64a3972dae05275bc225 authored by Andy Lutomirski on 12 June 2020, 03:26:38 UTC, committed by Thomas Gleixner on 12 June 2020, 10:12:57 UTC
BUG/WARN are cleverly optimized using UD2 to handle the BUG/WARN out of
line in an exception fixup.

But if BUG or WARN is issued in a funny RCU context, then the
idtentry_enter...() path might helpfully WARN that the RCU context is
invalid, which results in infinite recursion.

Split the BUG/WARN handling into an nmi_enter()/nmi_exit() path in
exc_invalid_op() to increase the chance to survive the experience.

[ tglx: Make the declaration match the implementation ]

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/f8fe40e0088749734b4435b554f73eee53dcf7a8.1591932307.git.luto@kernel.org

1 parent f0178fc
History
Tip revision: 15a416e8aaa758b5534f64a3972dae05275bc225 authored by Andy Lutomirski on 12 June 2020, 03:26:38 UTC
x86/entry: Treat BUG/WARN as NMI-like entries
Tip revision: 15a416e
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 15.8 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 71 bytes
.gitattributes -rw-r--r-- 62 bytes
.gitignore -rw-r--r-- 1.8 KB
.mailmap -rw-r--r-- 15.4 KB
COPYING -rw-r--r-- 496 bytes
CREDITS -rw-r--r-- 97.4 KB
Kbuild -rw-r--r-- 1.3 KB
Kconfig -rw-r--r-- 555 bytes
MAINTAINERS -rw-r--r-- 546.7 KB
Makefile -rw-r--r-- 60.9 KB
README -rw-r--r-- 727 bytes

README

back to top