MCE: Fix vm86 handling for 32bit mce handler
authorAndi Kleen <andi@firstfloor.org>
Fri, 19 Nov 2010 12:16:22 +0000 (13:16 +0100)
committerTony Luck <tony.luck@intel.com>
Wed, 23 May 2012 21:22:37 +0000 (14:22 -0700)
commita129a7c84582629741e5fa6f40026efcd7a65bd4
treecbb2d4dcf002406e8fdcff07d05ae39477469669
parent8571723a698dcc0ee16c1c63908aa99dd940ce5c
MCE: Fix vm86 handling for 32bit mce handler

When running on 32bit the mce handler could misinterpret
vm86 mode as ring 0. This can affect whether it does recovery
or not; it was possible to panic when recovery was actually
possible.

Fix this by always forcing vm86 to look like ring 3.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/x86/kernel/cpu/mcheck/mce.c