git: ede06b0ef3d0 - stable/14 - sanitizers: Provide wrappers for atomic_testandset_acq_long
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 05 Oct 2025 13:13:27 UTC
The branch stable/14 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=ede06b0ef3d03d9b30b6bad42c966d979aefea00
commit ede06b0ef3d03d9b30b6bad42c966d979aefea00
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-09-19 22:54:20 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-10-05 13:13:00 +0000
sanitizers: Provide wrappers for atomic_testandset_acq_long
Noticed when building a kernel with options RANDOM_FENESTRASX.
MFC after: 1 week
(cherry picked from commit 7ea59a07046a0bf25d4fccb456715dffaae52021)
---
sys/kern/subr_asan.c | 1 +
sys/kern/subr_msan.c | 1 +
2 files changed, 2 insertions(+)
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 07e894e4c3db..42d4f684b304 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);