Re: [PATCH] x86/entry: Treat BUG/WARN as NMI-like entries

2020-06-11 Thread Andy Lutomirski
On Thu, Jun 11, 2020 at 8:26 PM Andy Lutomirski wrote: > > If we BUG or WARN in a funny RCU context, we cleverly optimize the > BUG/WARN using the ud2 hack, which takes us through the > idtentry_enter...() paths, which might helpfully WARN that the RCU > context is invalid, which results in

[PATCH] x86/entry: Treat BUG/WARN as NMI-like entries

2020-06-11 Thread Andy Lutomirski
If we BUG or WARN in a funny RCU context, we cleverly optimize the BUG/WARN using the ud2 hack, which takes us through the idtentry_enter...() paths, which might helpfully WARN that the RCU context is invalid, which results in infinite recursion. Split the BUG/WARN handling into an