RE: [PATCH v2 3/4] x86/split_lock: Handle #AC exception for split lock

From: Luck, Tony
Date: Fri Jun 29 2018 - 12:34:02 EST


>> + WARN_ONCE(1, "A split lock issue is detected. Please FIX it\n");
>
> But, warning here is also not super useful. Shouldn't we be dumping out
> the info in 'regs' instead of the current context? We don't care about
> the state in the #AC handler, we care about 'regs'.

Maybe:

WARN_ONCE(1, "split lock detected at %pF\n", regs[EIP]);

-Tony