Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2023 12:08:26 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: b534e975c2ba - stable/13 - KASAN: add bus_space*read*_8 for aarch64
Message-ID:  <202306261208.35QC8QNn082892@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=b534e975c2ba6b390db01d87a5993bb151b4ade9

commit b534e975c2ba6b390db01d87a5993bb151b4ade9
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-04-15 15:35:50 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-06-26 09:07:12 +0000

    KASAN: add bus_space*read*_8 for aarch64
    
    Add the remaining bus_space*read*_8 functions conditionally for
    only arm64 in order to not break KASAN builds with new code using
    one of them.
    
    Suggested by:   markj
    Reviewed by:    markj
    Differential Revision: https://reviews.freebsd.org/D39581
    
    (cherry picked from commit 42742fe725102a73b09800f4d041ad69b5d81edb)
---
 sys/kern/subr_asan.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys/kern/subr_asan.c b/sys/kern/subr_asan.c
index 2f0334cf52be..95b5fcc1ea2d 100644
--- a/sys/kern/subr_asan.c
+++ b/sys/kern/subr_asan.c
@@ -868,6 +868,13 @@ ASAN_BUS_READ_PTR_FUNC(region, 4, uint32_t)
 ASAN_BUS_READ_PTR_FUNC(region_stream, 4, uint32_t)
 
 ASAN_BUS_READ_FUNC(, 8, uint64_t)
+#if defined(__aarch64__)
+ASAN_BUS_READ_FUNC(_stream, 8, uint64_t)
+ASAN_BUS_READ_PTR_FUNC(multi, 8, uint64_t)
+ASAN_BUS_READ_PTR_FUNC(multi_stream, 8, uint64_t)
+ASAN_BUS_READ_PTR_FUNC(region, 8, uint64_t)
+ASAN_BUS_READ_PTR_FUNC(region_stream, 8, uint64_t)
+#endif
 
 #define	ASAN_BUS_WRITE_FUNC(func, width, type)				\
 	void kasan_bus_space_write##func##_##width(bus_space_tag_t tag,	\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306261208.35QC8QNn082892>