s390-cpumf-unpoison-stcctm-output-buffer.patch removed from -mm tree
The quilt patch titled
Subject: s390/cpumf: unpoison STCCTM output buffer
has been removed from the -mm tree. Its filename was
s390-cpumf-unpoison-stcctm-output-buffer.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/cpumf: unpoison STCCTM output buffer
Date: Fri, 21 Jun 2024 13:35:11 +0200
stcctm() uses the "Q" constraint for dest, therefore KMSAN does not understand that it fills multiple doublewords pointed to by dest, not just one. This results in false positives.
Unpoison the whole dest manually with kmsan_unpoison_memory().
---
arch/s390/include/asm/cpu_mf.h | 6 ++++++ 1 file changed, 6 insertions(+)
arch/s390/include/asm/cpu_mf.h renamed from arch/s390/include/asm/cpu_mf.h~s390-cpumf-unpoison-stcctm-output-buffer +6 -0
@@ -10,6 +10,7 @@#define _ASM_S390_CPU_MF_H#include <linux/errno.h> +#include <linux/kmsan-checks.h> #include <asm/asm-extable.h> #include <asm/facility.h>
@@ -239,6 +240,11 @@ static __always_inline int stcctm(enum s : "=d" (cc) : "Q" (*dest), "d" (range), "i" (set) : "cc", "memory"); +/* +* If cc == 2, less than RANGE counters are stored, but it's not easy +* to tell how many. Always unpoison the whole range for simplicity. +*/ +kmsan_unpoison_memory (dest, range *sizeof (u64));return cc; }
_
Patches currently in -mm which might be from [email protected] are