git: 92a00264b7ed - stable/15 - sanitizers: Provide wrappers for atomic_testandset_acq_long

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Sat, 04 Oct 2025 19:35:08 UTC
The branch stable/15 has been updated by markj:

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

commit 92a00264b7edfdad3171151b9a03a197860e71e8
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-09-19 22:54:20 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-10-04 19:34:57 +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 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);