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)
commitfd338e3564b0b8597a89f83941a0eda3e5092cc0
tree0e6b3615b536ef76b4d4e0eb0f2385967cee8cb2
parente1de11d4d1a64ac1b90b9833f1a3629dae18facb
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