freebsd-nq/contrib
Cy Schubert 6e5d01124f wpa/hostapd: Fix 100% CPU when USB wlan NIC removed
hostapd calls pcap_next(3) to read the next packet off the wlan interface.
pcap_next() returns a pointer to the packet header but does not indicate
success or failure. Unfortunately this results in an infinite loop (100%
CPU) when the wlan device disappears, i.e. when a USB wlan device is
manually removed or a USB error results in the device removal. However
pcap_next_ex(3) does return success or failure. To resolve this we use
pcap_next_ex(), forcing hostapd to exit when the error is encountered.

An error message is printed to syslog or stderr when debugging (-d flag)
is enabled. Unfortunately wpa_printf() only works when debugging is enabled.

PR:		253608
Reported by:	Damjan Jovanovic <damjan.jov@gmail.com>,
		bz (privately)
MFC after:	3 days
2022-04-04 06:11:28 -07:00
..
arm-optimized-routines
atf
bc contrib/bc: include assert.h when building with C11 or newer 2022-03-09 18:57:30 +01:00
bearssl
blacklist
bmake Merge bmake-20220330 2022-04-03 12:58:43 -07:00
bsddialog bsddialog(1): Improve --hline (help subtitle) 2022-04-03 22:26:50 +02:00
bsnmp bsnmp: Use mkstemp when creating clients local socket 2022-03-15 08:20:13 +00:00
byacc
bzip2
capsicum-test
com_err
cortex-strings
dialog
diff
dma
ee
elftoolchain x86: Add a NT_X86_SEGBASES register set. 2022-03-24 11:36:19 -07:00
expat MFV 45916e7c91: libbsdxml (expat) 2.4.7 2022-03-27 22:22:07 -07:00
file
flex
gdtoa
googletest
hyperv/tools
jemalloc
kyua
ldns
ldns-host
less
lib9p
libarchive libarchive: merge vendor bugfixes 2022-04-03 14:21:28 +02:00
libbegemot
libc-pwcache
libc-vis
libcbor
libcxxrt Merge libcxxrt commit f2e55091e2e878386c9f7974d4922bbdc4faed84 2022-03-20 22:34:41 +01:00
libdivsufsort
libedit
libevent
libexecinfo
libfido2
libpcap
libucl
libxo
llvm-project powerpc: implement __clear_cache 2022-04-02 12:47:19 +02:00
lua
lutok
mandoc
mknod
mtree
ncurses
netbsd-tests
netcat
ngatm
ntp
nvi
ofed
one-true-awk
openbsm
opencsd/decoder
openpam
openresolv
opie
pam_modules/pam_passwdqc
pf
pjdfstest
pnglite
pnpinfo
processor-trace
sendmail
smbfs
sqlite3
tcp_wrappers
tcpdump
tcsh
telnet
terminus
tnftp
traceroute
tzcode
tzdata contrib/tzdata: import tzdata 2022a 2022-03-17 11:30:12 +08:00
unbound
unvis
vis
wpa wpa/hostapd: Fix 100% CPU when USB wlan NIC removed 2022-04-04 06:11:28 -07:00
xz