]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MCE: Fix vm86 handling for 32bit mce handler
authorAndi Kleen <andi@firstfloor.org>
Fri, 19 Nov 2010 12:16:22 +0000 (13:16 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 May 2012 23:44:02 +0000 (00:44 +0100)
commit234887cec47a1916d2bd63f9e05a5005af2f03cc
treed154630e655d8b0233cde06567cb34e0aa12f46c
parentbec60388a9d9dda194676462663838b2519bbe5b
MCE: Fix vm86 handling for 32bit mce handler

commit a129a7c84582629741e5fa6f40026efcd7a65bd4 upstream.

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>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/kernel/cpu/mcheck/mce.c