]> git.baikalelectronics.ru Git - kernel.git/commit
kgdb,i386: Fix corner case access to ss with NMI watch dog exception
authorJason Wessel <jason.wessel@windriver.com>
Fri, 11 Dec 2009 14:43:16 +0000 (08:43 -0600)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 11 Dec 2009 14:43:16 +0000 (08:43 -0600)
commit15201eae5dab397bf4f41f555529c5aa8124fba3
tree977a9e18167112af168ce49f95b5d26fe1bec46d
parent2fe62394ead189d16e8c2a5b44e2597d3451ccdd
kgdb,i386: Fix corner case access to ss with NMI watch dog exception

It is possible for the user_mode_vm(regs) check to return true on the
i368 arch for a non master kgdb cpu or when the master kgdb cpu
handles the NMI watch dog exception.

The solution is simply to select the correct gdb_ss location
based on the check to user_mode_vm(regs).

CC: Ingo Molnar <mingo@elte.hu>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
arch/x86/kernel/kgdb.c