]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry, nmi: Disable #DB
authorPeter Zijlstra <peterz@infradead.org>
Fri, 29 May 2020 21:27:34 +0000 (23:27 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:22 +0000 (15:15 +0200)
commit18ecbe2eaf007ec1b8fe99ffdf0859734930fed7
tree0e6b3615b536ef76b4d4e0eb0f2385967cee8cb2
parent8661bd03fcce1b14f36b9d468bd482cc8adb0770
x86/entry, nmi: Disable #DB

Instead of playing stupid games with IST stacks, fully disallow #DB
during NMIs. There is absolutely no reason to allow them, and killing
this saves a heap of trouble.

#DB is already forbidden on noinstr and CEA, so there can't be a #DB before
this. Disabling it right after nmi_enter() ensures that the full NMI code
is protected.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200529213321.069223695@infradead.org
arch/x86/kernel/nmi.c