From: Tony Luck Date: Wed, 23 May 2012 21:14:22 +0000 (-0700) Subject: x86/mce: Fix check for processor context when machine check was taken. X-Git-Tag: v3.5-rc1~75^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=875e26648cf9b6db9d8dc07b7959d7c61fb3f49c;p=pandora-kernel.git 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 Cc: Signed-off-by: Tony Luck --- Reading git-diff-tree failed