Re: [PATCH] wifi: cfg80211: Fix an error handling path in cfg80211_wext_siwscan()
From: Markus Elfring
Date: Sat Jun 27 2026 - 07:47:05 EST
…
> The PoC uses pthread barrier synchronization to force both paths through
> the lockless check simultaneously. It runs on wlan0 created by
> mac80211_hwsim (modprobe mac80211_hwsim radios=2).
>
> Full PoC (compile with: gcc -Wall -o poc poc.c -lpthread):
Thanks for your test approach.
…
> pthread_barrier_init(&barrier_go, NULL, 2);
> pthread_create(&nt, NULL, nl_thread, NULL);
…
Can there be a need to improve error detection and corresponding exception handling?
https://cmu-sei.github.io/secure-coding-standards/sei-cert-c-coding-standard/rules/posix-pos/pos54-c
Regards,
Markus