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
File | Mode | Size |
---|---|---|
test | ||
.gitignore | -rw-r--r-- | 106 bytes |
Makefile | -rw-r--r-- | 3.3 KB |
algos.c | -rw-r--r-- | 6.2 KB |
altivec.uc | -rw-r--r-- | 3.3 KB |
avx2.c | -rw-r--r-- | 16.9 KB |
avx512.c | -rw-r--r-- | 17.8 KB |
int.uc | -rw-r--r-- | 3.7 KB |
mktables.c | -rw-r--r-- | 3.9 KB |
mmx.c | -rw-r--r-- | 3.6 KB |
neon.c | -rw-r--r-- | 2.0 KB |
neon.uc | -rw-r--r-- | 3.8 KB |
recov.c | -rw-r--r-- | 3.3 KB |
recov_avx2.c | -rw-r--r-- | 8.8 KB |
recov_avx512.c | -rw-r--r-- | 9.4 KB |
recov_neon.c | -rw-r--r-- | 2.6 KB |
recov_neon_inner.c | -rw-r--r-- | 2.3 KB |
recov_s390xc.c | -rw-r--r-- | 2.7 KB |
recov_ssse3.c | -rw-r--r-- | 9.0 KB |
s390vx.uc | -rw-r--r-- | 3.8 KB |
sse1.c | -rw-r--r-- | 4.6 KB |
sse2.c | -rw-r--r-- | 15.8 KB |
unroll.awk | -rw-r--r-- | 423 bytes |
vpermxor.uc | -rw-r--r-- | 2.7 KB |
x86.h | -rw-r--r-- | 2.1 KB |
Computing file changes ...