[PATCH 0/2] ASAN related fixes
Benjamin Berg
benjamin at sipsolutions.net
Tue Mar 18 03:19:54 PDT 2025
From: Benjamin Berg <benjamin.berg at intel.com>
Hi,
I did some trail runs to enable ASAN internally for the hwsim tests
(inside a UML time-travel environment). Most issues that came up seem
already fixed upstream, but these two seem to be missing still.
Note that to run it inside UML you should use a 6.14 kernel (6.13 might
also work). I also added a patch to avoid a large slowdown due to a
broken userspace spinlock in ASAN:
https://patchwork.ozlabs.org/project/linux-um/patch/20250314130815.226872-1-benjamin@sipsolutions.net/
Other than that, I was setting these options:
UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1:log_path=/some/path
ASAN_OPTIONS=halt_on_error=1:print_stacktrace=1:log_path=/some/path:quarantine_size_mb=64
Using a log path is useful as the sanitizers try to log to stderr, but
e.g. the EHT tests launch hostapd as a daemon and do not have any stderr
available.
Reducing the quarantine_size_mb allowed me to run all tests in our setup
with 4 GiB of memory available to the VMs.
Benjamin
Benjamin Berg (2):
nl80211: fix use after free of bss
SAE: explicitly clear SAE(k)
src/common/sae.c | 9 +++++++--
src/drivers/driver_nl80211.c | 4 +++-
2 files changed, 10 insertions(+), 3 deletions(-)
--
2.48.1
More information about the Hostap
mailing list