diff options
| author | Tony Luck <[email protected]> | 2012-05-23 21:14:22 +0000 |
|---|---|---|
| committer | Tony Luck <[email protected]> | 2012-05-23 21:22:44 +0000 |
| commit | 875e26648cf9b6db9d8dc07b7959d7c61fb3f49c (patch) | |
| tree | 8854063a634093b107e15f79d8c8000b5541c7bd /lib/spinlock_debug.c | |
| parent | MCE: Fix vm86 handling for 32bit mce handler (diff) | |
| download | kernel-875e26648cf9b6db9d8dc07b7959d7c61fb3f49c.tar.gz kernel-875e26648cf9b6db9d8dc07b7959d7c61fb3f49c.zip | |
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 <[email protected]>
Cc: <[email protected]>
Signed-off-by: Tony Luck <[email protected]>
Diffstat (limited to 'lib/spinlock_debug.c')
0 files changed, 0 insertions, 0 deletions
