s390-unwind-disable-kmsan-checks.patch removed from -mm tree
The quilt patch titled
Subject: s390/unwind: disable KMSAN checks
has been removed from the -mm tree. Its filename was
s390-unwind-disable-kmsan-checks.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Ilya Leoshkevich <[email protected]>
Subject: s390/unwind: disable KMSAN checks
Date: Fri, 21 Jun 2024 13:35:20 +0200
The unwind code can read uninitialized frames. Furthermore, even in the good case, KMSAN does not emit shadow for backchains. Therefore disable it for the unwinding functions.
Signed-off-by Ilya Leoshkevich <[email protected]>
Reviewed-by Alexander Potapenko <[email protected]>
Acked-by Heiko Carstens <[email protected]>
Cc Alexander Gordeev <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc David Rientjes <[email protected]>
Cc Dmitry Vyukov <[email protected]>
Cc Hyeonggon Yoo <[email protected]>
Cc Joonsoo Kim <[email protected]>
Cc <[email protected]>
Cc Marco Elver <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Masami Hiramatsu (Google) <[email protected]>
Cc Pekka Enberg <[email protected]>
Cc Roman Gushchin <[email protected]>
Cc Steven Rostedt (Google) <[email protected]>
Cc Sven Schnelle <[email protected]>
Cc Vasily Gorbik <[email protected]>
Cc Vlastimil Babka <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/s390/kernel/unwind_bc.c | 4 ++++ 1 file changed, 4 insertions(+)
arch/s390/kernel/unwind_bc.c renamed from arch/s390/kernel/unwind_bc.c~s390-unwind-disable-kmsan-checks +4 -0
@@ -49,6 +49,8 @@ static inline bool is_final_pt_regs(struREAD_ONCE_NOCHECK (regs->psw.mask) &PSW_MASK_PSTATE ; } +/* Avoid KMSAN false positives from touching uninitialized frames. */ +__no_kmsan_checks bool unwind_next_frame(struct unwind_state *state) {struct stack_info *info = &state->stack_info;
@@ -118,6 +120,8 @@ out_stop: }EXPORT_SYMBOL_GPL (unwind_next_frame); +/* Avoid KMSAN false positives from touching uninitialized frames. */ +__no_kmsan_checks void __unwind_start(struct unwind_state *state, struct task_struct *task,struct pt_regs *regs,unsigned long first_frame) {
_
Patches currently in -mm which might be from [email protected] are