kmsan-core-kmsan_in_runtime-should-return-true-in-nmi-context.patch removed from -mm tree
The quilt patch titled
Subject: kmsan: core: kmsan_in_runtime() should return true in NMI context
has been removed from the -mm tree. Its filename was
kmsan-core-kmsan_in_runtime-should-return-true-in-nmi-context.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: core: kmsan_in_runtime() should return true in NMI context
Date: Wed, 2 Nov 2022 12:06:07 +0100
Without that, every call to __msan_poison_alloca() in NMI may end up allocating memory, which is NMI-unsafe.
Signed-off-by Alexander Potapenko <[email protected]>
Cc Dmitry Vyukov <[email protected]>
Cc Marco Elver <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Dave Hansen <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Kees Cook <[email protected]>
Cc Masahiro Yamada <[email protected]>
Cc Nick Desaulniers <[email protected]>
Cc Thomas Gleixner <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/kmsan/kmsan.h | 2 ++ 1 file changed, 2 insertions(+)
mm/kmsan/kmsan.h renamed from mm/kmsan/kmsan.h~kmsan-core-kmsan_in_runtime-should-return-true-in-nmi-context +2 -0
@@ -124,6 +124,8 @@ static __always_inline bool kmsan_in_run {if ((hardirq_count () >>HARDIRQ_SHIFT ) >1 )return true; +if (in_nmi ()) +return true;return kmsan_get_context ()->kmsan_in_runtime; }
_
Patches currently in -mm which might be from [email protected] are