net80211: report scan done when a foreground scan is interrupted
scan_done() skipped the scan done event whenever outgoing traffic
interrupted a scan before it covered every channel. That only makes
sense for background scans, which net80211 resumes later. A
foreground scan, such as one requested by wpa_supplicant while
associated, is never resumed, so the requester waited forever.
With wpa_supplicant this left the scan radio work open and every
later "wpa_cli scan" returned FAIL-BUSY until wpa_supplicant was
restarted. Seen on rtwn(4) with an RTL8821AU: the scan was paused on
its first of nine channels and no RTM_IEEE80211_SCAN was sent.
Send the event unless the interrupted scan is a background scan.
multimedia/libdvdcss: Update 1.5.0 => 1.6.0, take maintainership
* Use static tarballs from official CDN and site
* Add WWW for source code repository
* Simplify DOCS option handling
* Remove upstreamed patches
* Update pkg-descr
[clang][CIR] Add tests for SVE ORV intrinsics (#230082)
adds CIR tests for svorv (plain SVE) intrinsics.
Moves and adapts sve-intrinsics/acle_sve_orv.c to sve/orv.c.
Part of #223963
arm64 vfp: eliminate nested critical sections
At two out of three call sites to vfp_restore_state_common(), the caller
must use critical_{enter,exit}() to prevent preemption between its call
to vfp_restore_state_common() and other actions, notably its call to
sve_enable(). So, it is arguably better to make
vfp_restore_state_common()'s caller responsible for performing
critical_{enter,exit}() and simply perform CRITICAL_ASSERT() inside
vfp_restore_state_common().
(cherry picked from commit 189ee41b6cc3b0d92c291cc854d9781afec23ad4)
netlink: Make room for the unfinished message when growing the buffer
When a message outgrows the writer's buffer, _nlmsg_refill_buffer()
allocates a larger one and moves the unfinished message there. The new
buffer was sized for the data about to be added alone, so with enough of
the message already written the caller wrote past its end and left it
with datalen > buflen. A 20-byte message plus an attribute of 8176
bytes got a buffer of 8192 bytes for 8200 bytes of data, and reading it
panicked an INVARIANTS kernel in nl_soreceive().
Size the new buffer for both, and add a ktest for it.
Reviewed by: glebius
Fixes: 7e5bf68495cc ("netlink: add netlink support")
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D60541
netlink: Make room for the unfinished message when growing the buffer
When a message outgrows the writer's buffer, _nlmsg_refill_buffer()
allocates a larger one and moves the unfinished message there. The new
buffer was sized for the data about to be added alone, so with enough of
the message already written the caller wrote past its end and left it
with datalen > buflen. A 20-byte message plus an attribute of 8176
bytes got a buffer of 8192 bytes for 8200 bytes of data, and reading it
panicked an INVARIANTS kernel in nl_soreceive().
Size the new buffer for both, and add a ktest for it.
Reviewed by: glebius
Fixes: 7e5bf68495cc ("netlink: add netlink support")
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D60541