freebsd-src/contrib
Cy Schubert 64d0220f45 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)

(cherry picked from commit 6e5d01124f)
2022-04-07 14:18:04 -07:00
..
apr apr: Merge r1889604, r1807975 from trunk: 2021-09-13 10:39:43 -04:00
apr-util
atf
bc contrib/bc: MFC version 5.2.2 2022-03-04 21:19:50 +01:00
bearssl
blacklist
bmake Merge bmake-20220208 2022-02-15 21:37:08 -08:00
bsnmp bsnmp: Fix two typos in error messages 2022-02-02 09:49:53 +01:00
byacc
bzip2 Remove FREEBSD-vendor files 2021-12-12 19:29:46 -05:00
capsicum-test
com_err
cortex-strings
dialog
diff
dma dma: limit lines to 998 characters 2022-02-05 11:26:39 -05:00
ee
elftoolchain readelf: add Arm address mask note type NT_ARM_ADDR_MASK 2022-02-28 19:24:44 -05:00
expat MFC cc68614, ac69e5d, 7ed8e14: Update contrib/expat to 2.4.7. 2022-03-31 21:38:29 -07:00
file file: upgrade to 5.41. 2022-01-17 16:43:58 -08:00
flex
gdtoa
googletest
hyperv/tools
ipfilter ipfilter: Move userland bits to sbin 2022-02-07 05:51:14 -08:00
jemalloc powerpc: enable initial-exec TLS 2022-03-08 01:28:33 +01:00
kyua
ldns
ldns-host
less
lib9p
libarchive libarchive: merge vendor bugfixes 2022-04-06 10:24:00 +02:00
libbegemot
libc-pwcache
libc-vis
libcbor Import libcbor at 'contrib/libcbor/' 2022-02-09 16:23:53 -05:00
libcxxrt Merge libcxxrt commit f2e55091e2e878386c9f7974d4922bbdc4faed84 2022-03-23 21:03:59 +01:00
libdivsufsort
libedit
libevent
libexecinfo
libfido2 libfido2: Address CHERI compatibility 2022-02-09 16:23:53 -05:00
libpcap
libucl
libxo
llvm-project powerpc: implement __clear_cache 2022-04-05 02:33:22 +02:00
lua
lutok
mandoc
mknod
mtree
ncurses ncurses: Apply a tputs() fix from patch 20210403 2021-08-13 21:13:16 -04:00
netbsd-tests time_t is pathological: use %j + cast to print it. 2022-03-02 17:39:34 -06:00
netcat Remove FREEBSD-vendor files 2021-12-12 19:29:46 -05:00
ngatm
ntp ntp: Revert "Disable ntpd stack gap. When ASLR with STACK GAP != 0 ntpd suffers SIGSEGV." 2022-01-03 15:04:05 -08:00
nvi import nvi 2.2.0-3bbdfe4 2021-09-22 12:07:48 +02:00
ofed Make CPU_SET macros compliant with other implementations 2022-01-14 18:17:30 +02:00
one-true-awk
openbsm
opencsd/decoder
openpam
openresolv
opie
pam_modules/pam_passwdqc
pf
pjdfstest
pnglite
pnpinfo
processor-trace
sendmail
serf
smbfs
sqlite3 sqlite3: Vendor import of sqlite3 3.37.2 2022-02-06 20:58:39 -08:00
subversion
tcp_wrappers tcp_wrappers: remove duplicate errno declarations 2022-03-22 19:33:33 +01:00
tcpdump pf: Introduce ridentifier 2021-11-26 04:39:05 +01:00
tcsh
telnet
terminus contrib/terminus: update to terminus-font-4.49.1 2022-02-02 17:56:00 +02:00
tnftp
traceroute
tzcode ctime.3: Add a cross-reference to clock_gettime(2) 2022-03-11 11:05:47 +01:00
tzdata contrib/tzdata: import tzdata 2022a 2022-03-21 23:26:58 +08:00
unbound unbound: Vendor import 1.15.0 2022-03-07 05:32:58 -08:00
unvis
vis
wpa wpa/hostapd: Fix 100% CPU when USB wlan NIC removed 2022-04-07 14:18:04 -07:00
xz