linux/kernel/kcsan
Marco Elver a8488ecbd7 kcsan: avoid unintended access checking in NMIs
If a watcher deliberately disables interrupts (either by user choice, or
because we're dealing with a scoped reordered access) to avoid detecting
any data races in interrupts, NMIs are still able to fire.

When we set up a watchpoint on a scoped reordered access, we disabled
interrupts because the same CPU cannot observe reordering of its own
accesses. To ensure we observe no false positives from NMIs, disable
access checking for interrupt contexts as well.

Fixes: 69562e4983 ("kcsan: Add core support for a subset of weak memory modeling")
Signed-off-by: Marco Elver <elver@google.com>
2026-07-20 18:18:37 +02:00
..
.kunitconfig kcsan: test: Add a .kunitconfig to run KCSAN tests 2022-07-22 09:22:59 -06:00
core.c kcsan: avoid unintended access checking in NMIs 2026-07-20 18:18:37 +02:00
debugfs.c kcsan: Remove redundant call of kallsyms_lookup_name() 2024-10-14 16:44:56 +02:00
encoding.h
kcsan_test.c kcsan: test: Adjust "expect" allocation type for kmalloc_obj 2026-02-26 09:54:08 -08:00
kcsan.h kcsan: Add ability to pass instruction pointer of access to reporting 2021-09-13 16:41:19 -07:00
Makefile kcsan: Enable context analysis 2026-01-05 16:43:35 +01:00
permissive.h
report.c kcsan: Enable context analysis 2026-01-05 16:43:35 +01:00
selftest.c mm: delete checks for xor_unlock_is_negative_byte() 2023-10-18 14:34:17 -07:00