Linux s390 Architecture development
 help / color / mirror / Atom feed
* [PATCH 6/7] s390/word-at-a-time: Instrument load_unaligned_zeropad()
       [not found] <20260911070346.801948-1-morbo@google.com>
@ 2026-09-11  7:03 ` Bill Wendling
  2026-09-11  7:09   ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Bill Wendling @ 2026-09-11  7:03 UTC (permalink / raw)
  To: linux-kernel
  Cc: Bill Wendling, Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Sven Schnelle, linux-s390

Convert s390 to the arch_load_unaligned_zeropad() /
load_unaligned_zeropad() split introduced for x86 earlier in this
series, so KASAN/KCSAN also see reads through load_unaligned_zeropad()
on this architecture.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Bill Wendling <morbo@google.com>
---
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: linux-s390@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 arch/s390/include/asm/word-at-a-time.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/s390/include/asm/word-at-a-time.h b/arch/s390/include/asm/word-at-a-time.h
index eaa19dee7699..6a055bee5ba0 100644
--- a/arch/s390/include/asm/word-at-a-time.h
+++ b/arch/s390/include/asm/word-at-a-time.h
@@ -48,7 +48,7 @@ static inline unsigned long zero_bytemask(unsigned long data)
  * and the next page not being mapped, take the exception and
  * return zeroes in the non-existing part.
  */
-static inline unsigned long load_unaligned_zeropad(const void *addr)
+static inline unsigned long arch_load_unaligned_zeropad(const void *addr)
 {
 	unsigned long data;
 
@@ -62,4 +62,6 @@ static inline unsigned long load_unaligned_zeropad(const void *addr)
 	return data;
 }
 
+#include <asm-generic/word-at-a-time-instrumented.h>
+
 #endif /* _ASM_WORD_AT_A_TIME_H */
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 6/7] s390/word-at-a-time: Instrument load_unaligned_zeropad()
  2026-09-11  7:03 ` [PATCH 6/7] s390/word-at-a-time: Instrument load_unaligned_zeropad() Bill Wendling
@ 2026-09-11  7:09   ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-09-11  7:09 UTC (permalink / raw)
  To: Bill Wendling
  Cc: Vasily Gorbik, linux-s390, Heiko Carstens, Alexander Gordeev,
	Christian Borntraeger

> Convert s390 to the arch_load_unaligned_zeropad() /
> load_unaligned_zeropad() split introduced for x86 earlier in this
> series, so KASAN/KCSAN also see reads through load_unaligned_zeropad()
> on this architecture.
> 
> Assisted-by: Claude:claude-sonnet-5
> Signed-off-by: Bill Wendling <morbo@google.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260911070346.801948-1-morbo@google.com?part=6


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-11  7:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20260911070346.801948-1-morbo@google.com>
2026-09-11  7:03 ` [PATCH 6/7] s390/word-at-a-time: Instrument load_unaligned_zeropad() Bill Wendling
2026-09-11  7:09   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox