History

kmsan: make sure PREEMPT_RT is off

As pointed out by Peter Zijlstra, __msan_poison_alloca() does not play well with IRQ code when PREEMPT_RT is on, because in that mode even GFP_ATOMIC allocations cannot be performed. Fixing this would require making stackdepot completely lockless, which is quite challenging and may be excessive for the time being. Instead, make sure KMSAN is incompatible with PREEMPT_RT, like other debug configs are.

Alexander Potapenko committed 4 years ago

Commit 83d0edf1 parent ac669981 file · +1 −0Browse files

Showing the changes to lib (1 of 1 file). Show all

Unified · Split

lib/Kconfig.kmsan+1−0
@@ -12,6 +12,7 @@ config KMSAN · 11 unmodified lines
1212 bool "KMSAN: detector of uninitialized values use"
1313 depends on HAVE_ARCH_KMSAN && HAVE_KMSAN_COMPILER
1414 depends on SLUB && DEBUG_KERNEL && !KASAN && !KCSAN
15+ depends on !PREEMPT_RT
1516 select STACKDEPOT
1617 select STACKDEPOT_ALWAYS_INIT
1718 help