]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry/64: Don't use IST entry for #BP stack
authorAndy Lutomirski <luto@kernel.org>
Thu, 23 Jul 2015 22:37:48 +0000 (15:37 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 Mar 2018 20:10:36 +0000 (21:10 +0100)
commit0e1678c2798778674b160295e6916731566bcfc9
treefa7b9596ae52c9d63e25a151aff370a468192f68
parente6c066458e62c20076223f79219422cb481b721c
x86/entry/64: Don't use IST entry for #BP stack

There's nothing IST-worthy about #BP/int3.  We don't allow kprobes
in the small handful of places in the kernel that run at CPL0 with
an invalid stack, and 32-bit kernels have used normal interrupt
gates for #BP forever.

Furthermore, we don't allow kprobes in places that have usergs while
in kernel mode, so "paranoid" is also unnecessary.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
arch/x86/entry/entry_64.S
arch/x86/kernel/idt.c
arch/x86/kernel/traps.c