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 |
---|---|---|
Kconfig | -rw-r--r-- | 1.7 KB |
Makefile | -rw-r--r-- | 218 bytes |
xz_crc32.c | -rw-r--r-- | 1.2 KB |
xz_dec_bcj.c | -rw-r--r-- | 13.6 KB |
xz_dec_lzma2.c | -rw-r--r-- | 32.7 KB |
xz_dec_stream.c | -rw-r--r-- | 19.4 KB |
xz_dec_syms.c | -rw-r--r-- | 855 bytes |
xz_dec_test.c | -rw-r--r-- | 5.2 KB |
xz_lzma2.h | -rw-r--r-- | 6.0 KB |
xz_private.h | -rw-r--r-- | 4.6 KB |
xz_stream.h | -rw-r--r-- | 1.4 KB |
Computing file changes ...