diff options
author | Andy Lutomirski <[email protected]> | 2018-11-21 15:11:24 -0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-11-22 09:23:01 +0100 |
commit | d38bc89c72e7235ac889ae64fe7828e2e61a18af (patch) | |
tree | 9bebad1404127d17d84d5a40d4abea096eab8e33 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | ebb53e2597e2dc7637ab213df006e99681b6ee25 (diff) |
x86/oops: Show the correct CS value in show_regs()
show_regs() shows the CS in the CPU register instead of the value in
regs. This means that we'll probably print "CS: 0010" almost all
the time regardless of what was actually in CS when the kernel
malfunctioned. This gives a particularly confusing result if we
OOPSed due to an implicit supervisor access from user mode.
Signed-off-by: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Yu-cheng Yu <[email protected]>
Link: http://lkml.kernel.org/r/4e36812b6e1e95236a812021d35cbf22746b5af6.1542841400.git.luto@kernel.org
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions