SIGSEGV with timeouted WiFi 6 driver

Jouni Malinen j at w1.fi
Fri Dec 22 01:27:27 PST 2023


On Wed, Dec 20, 2023 at 12:10:39PM +0100, Maciej Witkowski wrote:
> When driver mt7921u is in timeouted state, every time I start hostapd, it
> crashes with SIGSEGV.
> 
> The driver or the device is faulty [1] but it's independent to the hostapd
> issue,
> 
> because hostapd should exit normally, without memory violations.
> 
> 
> # /root/hostapd -P /run/hostapd.pid /etc/hostapd/hostapd.conf
> Could not set interface wlan1 flags (UP): Connection timed out
> nl80211: Could not set interface 'wlan1' UP
> nl80211: deinit ifname=wlan1 disabled_11b_rates=0
> nl80211: remove link (0) failed. ret=-100 (Network is down)
> Segmentation fault

Thanks for reporting this. There were a couple of regressions in the AP
mode deinit path for this type of error cases. These are now fixed in
the following commits:
https://w1.fi/cgit/hostap/commit/?id=6c3438eef6311a426c69304c0823b23f44649828
https://w1.fi/cgit/hostap/commit/?id=12a95743425fdf100dbb714416fd11c6beec9a01

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list