]> 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)
commit59d49a205ae29ea3ef06cd521641133830620581
tree0e6b3615b536ef76b4d4e0eb0f2385967cee8cb2
parent06017ee558ee7c367b89af119c7a96d4db2b4af9
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