HomeFreeBSD

atomic: Fix the atomic_load_ptr() *SAN interceptor

Description

atomic: Fix the atomic_load_ptr() *SAN interceptor

The interceptor didn't handle a pointer of type "foo * const *" and in
that case we'd get compiler errors 1) an invalid cast to volatile
uintptr_t, and 2) an assignment to a variable of type "foo * const"
(__retptr).

Reported by: mjg
MFC after: 1 week

(cherry picked from commit 08b0c98006b6b9f3722df0ce462f6a4aa8ee06f2)

Details

Provenance
markjAuthored on Feb 9 2023, 2:54 PM
Parents
rG2ca516d1a670: bridge: Make the ioctl table local to if_bridge.c
Branches
Unknown
Tags
Unknown