Skip to contentSkip to conversation

kmsan-make-sure-preempt_rt-is-off.patch removed from -mm tree

merged mm-hotfixes-stable Andrew Morton 1 participant 1 message Nov 8, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kmsan: make sure PREEMPT_RT is off
has been removed from the -mm tree. Its filename was
kmsan-make-sure-preempt_rt-is-off.patch

This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Alexander Potapenko <[email protected]>
Subject: kmsan: make sure PREEMPT_RT is off
Date: Wed, 2 Nov 2022 12:06:10 +0100

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.

---

 lib/Kconfig.kmsan |    1 +
 1 file changed, 1 insertion(+)
lib/Kconfig.kmsan renamed from lib/Kconfig.kmsan~kmsan-make-sure-preempt_rt-is-off +1 -0
@@ -12,6 +12,7 @@ config KMSAN
 	bool "KMSAN: detector of uninitialized values use"
 	depends on HAVE_ARCH_KMSAN && HAVE_KMSAN_COMPILER
 	depends on SLUB && DEBUG_KERNEL && !KASAN && !KCSAN
+	depends on !PREEMPT_RT
 	select STACKDEPOT
 	select STACKDEPOT_ALWAYS_INIT
 	help

_

Patches currently in -mm which might be from [email protected] are