diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2025-09-19 22:54:20 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2025-09-20 12:21:04 +0000 |
| commit | 7ea59a07046a0bf25d4fccb456715dffaae52021 (patch) | |
| tree | 906486bdb926d53b93170e42b84d3725d11d7982 | |
| parent | f0b1e0470af5c89c1deac5e6788fe7a8d0063a6f (diff) | |
sanitizers: Provide wrappers for atomic_testandset_acq_long
Noticed when building a kernel with options RANDOM_FENESTRASX.
MFC after: 1 week
| -rw-r--r-- | sys/kern/subr_asan.c | 1 | ||||
| -rw-r--r-- | sys/kern/subr_msan.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_asan.c b/sys/kern/subr_asan.c index 464efda1e91a..fee6c1a844e2 100644 --- a/sys/kern/subr_asan.c +++ b/sys/kern/subr_asan.c @@ -835,6 +835,7 @@ ASAN_ATOMIC_FUNC_TESTANDSET(32, uint32_t); ASAN_ATOMIC_FUNC_TESTANDSET(64, uint64_t); ASAN_ATOMIC_FUNC_TESTANDSET(int, u_int); ASAN_ATOMIC_FUNC_TESTANDSET(long, u_long); +ASAN_ATOMIC_FUNC_TESTANDSET(acq_long, u_long); ASAN_ATOMIC_FUNC_TESTANDSET(ptr, uintptr_t); ASAN_ATOMIC_FUNC_SWAP(32, uint32_t); diff --git a/sys/kern/subr_msan.c b/sys/kern/subr_msan.c index a3238b61482b..883dbd2b7604 100644 --- a/sys/kern/subr_msan.c +++ b/sys/kern/subr_msan.c @@ -1301,6 +1301,7 @@ MSAN_ATOMIC_FUNC_TESTANDSET(32, uint32_t); MSAN_ATOMIC_FUNC_TESTANDSET(64, uint64_t); MSAN_ATOMIC_FUNC_TESTANDSET(int, u_int); MSAN_ATOMIC_FUNC_TESTANDSET(long, u_long); +MSAN_ATOMIC_FUNC_TESTANDSET(acq_long, u_long); MSAN_ATOMIC_FUNC_TESTANDSET(ptr, uintptr_t); MSAN_ATOMIC_FUNC_SWAP(32, uint32_t); |
