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 Import Arm Optimized Routines v21.02 2021-07-06 11:05:34 +01:00
atf Import atf 0.22 snapshot 55c21b2c5fb189bbdfccb2b297bfa89236502542 2021-09-10 17:08:42 -06:00
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 Revert "wpa: Import wpa 2.10." 2022-01-18 08:10:33 -08:00
bzip2 Remove FREEBSD-vendor files 2021-12-06 16:36:44 -05:00
capsicum-test Re-enable network ioctls in capability mode 2021-04-23 09:22:49 -04:00
com_err
cortex-strings
dialog dialog: fix macro redefinition 2021-03-01 16:01:44 +01:00
diff Fix macro-redefined warning in gnu/diff for fputc_unlocked 2021-01-19 21:23:25 +00:00
dma dma: use canonical getline() loop 2022-02-05 21:55:03 -05:00
ee ee: restore the stdin/stdout terminal check 2021-04-12 00:48:45 +03:00
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 file: upgrade to 5.41. 2022-01-03 22:03:39 -08:00
flex contrib/flex: Drop local __dead2 patch 2021-04-21 10:54:59 +01:00
gdtoa
googletest
hyperv/tools
jemalloc powerpc: enable initial-exec TLS 2022-02-22 19:34:28 +01:00
kyua
ldns
ldns-host
less less: upgrade to v590. 2021-07-17 22:20:44 -07:00
lib9p
libarchive libarchive: merge vendor bugfixes 2022-04-03 14:21:28 +02:00
libbegemot
libc-pwcache
libc-vis vis(3): avoid out-of-bounds stack buffer reads 2021-06-16 16:27:13 +01:00
libcbor Import libcbor at 'contrib/libcbor/' 2021-10-06 20:26:10 -04:00
libcxxrt Merge libcxxrt commit f2e55091e2e878386c9f7974d4922bbdc4faed84 2022-03-20 22:34:41 +01:00
libdivsufsort
libedit libedit: import snapshot 2021-09-10 2021-09-22 10:19:43 +02:00
libevent
libexecinfo
libfido2 libfido2: Address CHERI compatibility 2021-10-06 21:40:26 -04:00
libpcap
libucl Fix build post a040967612. 2021-03-22 08:42:18 -07:00
libxo
llvm-project powerpc: implement __clear_cache 2022-04-02 12:47:19 +02:00
lua contrib/lua: update to 5.4.2 2021-01-13 23:56:18 -06:00
lutok
mandoc mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mknod
mtree fts_read: Handle error from a NULL return better. 2020-12-08 23:38:26 +00:00
ncurses ncurses: Apply a tputs() fix from patch 20210403 2021-08-11 13:08:23 -04:00
netbsd-tests newfs_msdos: connect the ATF test from NetBSD 2022-02-16 09:56:16 -06:00
netcat Remove FREEBSD-vendor files 2021-12-06 16:36:44 -05:00
ngatm
ntp ntp: Revert "Disable ntpd stack gap. When ASLR with STACK GAP != 0 ntpd suffers SIGSEGV." 2021-10-15 16:06:26 -07:00
nvi Allow building usr.bin/vi with MK_ASAN 2021-07-19 15:04:19 +01:00
ofed Make CPU_SET macros compliant with other implementations 2021-12-30 12:20:32 +01:00
one-true-awk Awk: Add error file 2021-11-06 16:24:36 -06:00
openbsm close_range: add audit support 2021-02-23 17:47:07 +00:00
opencsd/decoder
openpam Merge upstream r948: fix race condition in openpam_ttyconv(3). 2020-11-19 05:46:59 +00:00
openresolv
opie
pam_modules/pam_passwdqc
pf ftp-proxy: Revert incorrect migration to libpfctl 2021-07-01 21:34:40 +02:00
pjdfstest
pnglite pnglite: should use ntohl 2021-01-12 00:56:35 +02:00
pnpinfo
processor-trace
sendmail Update commit instructions. Still more TBD as I plan out the first 2022-01-30 22:20:12 +00:00
smbfs
sqlite3 sqlite3: Vendor import of sqlite3 3.37.2 2022-01-11 08:14:43 -08:00
tcp_wrappers tcp_wrappers: remove duplicate errno declarations 2022-02-23 16:26:14 +01:00
tcpdump pf: Introduce ridentifier 2021-11-05 09:39:56 +01:00
tcsh tcsh: update to version 6.22.04. 2021-05-20 00:12:27 +03:00
telnet telnet(1): add quiet mode ("telnet -Q") 2021-06-21 17:11:57 +01:00
terminus contrib/terminus: update to terminus-font-4.49.1 2022-02-02 15:42:18 +02:00
tnftp
traceroute ping: fix some man pages and tests after r368045 2020-11-26 04:55:02 +00:00
tzcode ctime.3: Add a cross-reference to clock_gettime(2) 2022-03-04 17:49:34 +01:00
tzdata contrib/tzdata: import tzdata 2022a 2022-03-17 11:30:12 +08:00
unbound unbound: Vendor import 1.15.0 2022-02-17 16:05:15 -08:00
unvis
vis Merge tag 'vendor/NetBSD/vis/20210621' into vis 2021-06-21 18:04:17 -06:00
wpa wpa/hostapd: Fix 100% CPU when USB wlan NIC removed 2022-04-04 06:11:28 -07:00
xz