[PATCH 0/2] ASAN related fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Benjamin Berg <benjamin.berg@xxxxxxxxx>

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@xxxxxxxxxxxxxxxx/

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


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux