x86/oops: Show the correct CS value in show_regs()
authorAndy Lutomirski <luto@kernel.org>
Wed, 21 Nov 2018 23:11:24 +0000 (15:11 -0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 Nov 2018 08:23:01 +0000 (09:23 +0100)
commitd38bc89c72e7235ac889ae64fe7828e2e61a18af
tree9bebad1404127d17d84d5a40d4abea096eab8e33
parentebb53e2597e2dc7637ab213df006e99681b6ee25
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 <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yu-cheng Yu <yu-cheng.yu@intel.com>
Link: http://lkml.kernel.org/r/4e36812b6e1e95236a812021d35cbf22746b5af6.1542841400.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/process_64.c