s390-diag-unpoison-diag224-output-buffer.patch removed from -mm tree
The quilt patch titled
Subject: s390/diag: unpoison diag224() output buffer
has been removed from the -mm tree. Its filename was
s390-diag-unpoison-diag224-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/diag: unpoison diag224() output buffer
Date: Fri, 21 Jun 2024 13:35:12 +0200
Diagnose 224 stores 4k bytes, which currently cannot be deduced from the inline assembly constraints. This leads to KMSAN false positives.
Fix the constraints by using a 4k-sized struct instead of a raw pointer. While at it, prettify them too.
---
arch/s390/kernel/diag.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
arch/s390/kernel/diag.c renamed from arch/s390/kernel/diag.c~s390-diag-unpoison-diag224-output-buffer +6 -4
@@ -278,12 +278,14 @@ int diag224(void *ptr)int rc = -EOPNOTSUPP ;diag_stat_inc (DIAG_STAT_X224 ); - asmvolatile ( -" diag %1,%2,0x224\n" -"0: lhi %0,0x0\n" + asmvolatile ("\n" +" diag %[type],%[addr],0x224\n" +"0: lhi %[rc],0\n" "1:\n" EX_TABLE(0b,1b) - : "+d" (rc) :"d" (0), "d" (addr) : "memory"); + : [rc] "+d" (rc) + , "=m" (*(struct { char buf[PAGE_SIZE]; } *)ptr) + : [type] "d" (0), [addr] "d" (addr)); return rc; }EXPORT_SYMBOL (diag224);
_
Patches currently in -mm which might be from [email protected] are