Revision f2d7b53c0153f2daa8bc8f1ff29b5a1e03a36458 authored by Alexander Potapenko on 02 November 2022, 10:15:00 UTC, committed by Alexander Potapenko on 02 November 2022, 10:55:06 UTC
There is a case in exc_invalid_op handler that is executed outside the
irqentry_enter()/irqentry_exit() region when an UD2 instruction is used
to encode a call to __warn().

In that case the `struct pt_regs` passed to the interrupt handler is
never unpoisoned by KMSAN (this is normally done in irqentry_enter()),
which leads to false positives inside handle_bug().

Use kmsan_unpoison_entry_regs() to explicitly unpoison those registers
before using them.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86@kernel.org
Signed-off-by: Alexander Potapenko <glider@google.com>
1 parent 4dbc4d5
History
File Mode Size
arm
interface
acpi.h -rw-r--r-- 2.5 KB
balloon.h -rw-r--r-- 1.0 KB
events.h -rw-r--r-- 4.7 KB
features.h -rw-r--r-- 502 bytes
grant_table.h -rw-r--r-- 11.1 KB
hvc-console.h -rw-r--r-- 518 bytes
hvm.h -rw-r--r-- 1.4 KB
mem-reservation.h -rw-r--r-- 1.5 KB
page.h -rw-r--r-- 1.3 KB
pci.h -rw-r--r-- 617 bytes
platform_pci.h -rw-r--r-- 2.0 KB
swiotlb-xen.h -rw-r--r-- 483 bytes
xen-front-pgdir-shbuf.h -rw-r--r-- 2.3 KB
xen-ops.h -rw-r--r-- 7.0 KB
xen.h -rw-r--r-- 1.9 KB
xenbus.h -rw-r--r-- 8.8 KB
xenbus_dev.h -rw-r--r-- 1.8 KB

back to top