Skip to content
Commit 875e2664 authored by Tony Luck's avatar Tony Luck
Browse files

x86/mce: Fix check for processor context when machine check was taken.



Linus pointed out that there was no value is checking whether m->ip
was zero - because zero is a legimate value.  If we have a reliable
(or faked in the VM86 case) "m->cs" we can use it to tell whether we
were in user mode or kernelwhen the machine check hit.

Reported-by: default avatarLinus Torvalds <torvalds@linuxfoundation.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent a129a7c8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment