Commit 7a0a2dff1cac1df82acfa0395bc9bc1bf0bc16ef

Authored by Andi Kleen
Committed by Andi Kleen
1 parent aecc63615e

[PATCH] Add a missing check for irq flags tracing in NMI

NMIs are not supposed to track the irq flags, but TRACE_IRQS_IRETQ
did it anyways. Add a check.

Cc: mingo@elte.hu

Signed-off-by: Andi Kleen <ak@suse.de>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

arch/x86_64/kernel/entry.S
... ... @@ -773,7 +773,9 @@
773 773 testl $3,CS(%rsp)
774 774 jnz paranoid_userspace\trace
775 775 paranoid_swapgs\trace:
  776 + .if \trace
776 777 TRACE_IRQS_IRETQ 0
  778 + .endif
777 779 swapgs
778 780 paranoid_restore\trace:
779 781 RESTORE_ALL 8