]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Fix NMI vs IRQ state tracking
authorPeter Zijlstra <peterz@infradead.org>
Wed, 27 May 2020 13:50:29 +0000 (15:50 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 10 Jul 2020 10:00:01 +0000 (12:00 +0200)
commit68e0860a4838c0b9bd05653e84d09e169f6e6f6c
treed46ece3c91564b177457203613c172059cae4cc0
parent460e7f8d66abdf4ba6bf0412b82cc7ed4b31cca1
x86/entry: Fix NMI vs IRQ state tracking

While the nmi_enter() users did
trace_hardirqs_{off_prepare,on_finish}() there was no matching
lockdep_hardirqs_*() calls to complete the picture.

Introduce idtentry_{enter,exit}_nmi() to enable proper IRQ state
tracking across the NMIs.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/20200623083721.216740948@infradead.org
arch/x86/entry/common.c
arch/x86/include/asm/idtentry.h
arch/x86/kernel/nmi.c
arch/x86/kernel/traps.c
include/linux/hardirq.h