* [PATCH 3/7] arm64/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:03 ` [PATCH 4/7] arm/word-at-a-time: " Bill Wendling
1 sibling, 0 replies; 2+ messages in thread
From: Bill Wendling @ 2026-09-11 7:03 UTC (permalink / raw)
To: linux-kernel
Cc: Bill Wendling, Catalin Marinas, Will Deacon, Mark Rutland,
linux-arm-kernel
Convert arm64 to the arch_load_unaligned_zeropad() /
load_unaligned_zeropad() split introduced for x86 in the previous
patch, so KASAN/KCSAN also see reads through load_unaligned_zeropad()
on this architecture (e.g. under CONFIG_KASAN_SW_TAGS).
Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Bill Wendling <morbo@google.com>
---
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm64/include/asm/word-at-a-time.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/include/asm/word-at-a-time.h b/arch/arm64/include/asm/word-at-a-time.h
index 824ca6987a51..656e3274ed7a 100644
--- a/arch/arm64/include/asm/word-at-a-time.h
+++ b/arch/arm64/include/asm/word-at-a-time.h
@@ -47,7 +47,7 @@ static inline unsigned long zero_bytemask(unsigned long bits)
* 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 ret;
@@ -66,4 +66,6 @@ static inline unsigned long load_unaligned_zeropad(const void *addr)
return ret;
}
+#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
* [PATCH 4/7] arm/word-at-a-time: Instrument load_unaligned_zeropad()
[not found] <20260911070346.801948-1-morbo@google.com>
2026-09-11 7:03 ` [PATCH 3/7] arm64/word-at-a-time: Instrument load_unaligned_zeropad() Bill Wendling
@ 2026-09-11 7:03 ` Bill Wendling
1 sibling, 0 replies; 2+ messages in thread
From: Bill Wendling @ 2026-09-11 7:03 UTC (permalink / raw)
To: linux-kernel
Cc: Bill Wendling, Russell King, Russell King (Oracle), Liyuan Pang,
Xie Yuanbin, linux-arm-kernel
Convert arm 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: Russell King <linux@armlinux.org.uk>
Cc: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
Cc: Liyuan Pang <pangliyuan1@huawei.com>
Cc: Xie Yuanbin <xieyuanbin1@huawei.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm/include/asm/word-at-a-time.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/word-at-a-time.h b/arch/arm/include/asm/word-at-a-time.h
index 5023f98d8293..ef0002d16dc1 100644
--- a/arch/arm/include/asm/word-at-a-time.h
+++ b/arch/arm/include/asm/word-at-a-time.h
@@ -65,7 +65,7 @@ static inline unsigned long find_zero(unsigned long mask)
* 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 ret, tmp;
@@ -96,5 +96,7 @@ static inline unsigned long load_unaligned_zeropad(const void *addr)
return ret;
}
+#include <asm-generic/word-at-a-time-instrumented.h>
+
#endif /* DCACHE_WORD_ACCESS */
#endif /* __ASM_ARM_WORD_AT_A_TIME_H */
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-11 7:04 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 3/7] arm64/word-at-a-time: Instrument load_unaligned_zeropad() Bill Wendling
2026-09-11 7:03 ` [PATCH 4/7] arm/word-at-a-time: " Bill Wendling
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox