]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mce: Fix check for processor context when machine check was taken.
authorTony Luck <tony.luck@intel.com>
Wed, 23 May 2012 21:14:22 +0000 (14:14 -0700)
committerTony Luck <tony.luck@intel.com>
Wed, 23 May 2012 21:22:44 +0000 (14:22 -0700)
commitf38ea0aeb6b53fec2ea9d9d2c45076c582f3f294
tree8854063a634093b107e15f79d8c8000b5541c7bd
parent9681d323e88e1e1a339a92e29ef5bee5a0299e3e
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: Linus Torvalds <torvalds@linuxfoundation.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/x86/kernel/cpu/mcheck/mce-severity.c