Re: Bug with changing configuration while hostapd is running

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

 



On Tue, Oct 09, 2018 at 04:55:20PM +0300, John John wrote:
> I have encountered a bug while adding/removing networks from hostapd
> configuration file.
> Happens at both 2.3 and 2.6 versions.
> 
> Removing a broadcasted network from the configuration file, while the
> hostapd process is running might crash the hostapd (SEGFAULT).
> How to reproduce:
> - running the hostapd with a configuration file containing at least 2 networks.
> - editing the configuration file, removing a broadcasted network
> - sending SIGHUP to the hostapd process to reload the configuration
> 
> Sometimes it crashes the hostapd, sometimes it doesn't.
> The problem happens at hostapd.c : hostapd_reload_config function. The
> function doesn't handled cases where networks are added/removed from
> the configuration file.

This commit fixes the cases I was able to reproduce:
https://w1.fi/cgit/hostap/commit/?id=6e7b4c45fae6333a6ab3665f27b386e83a69264a

-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
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