report bytes received in scsi_report_luns() and fail with EIO in the
impossible case
take the lun count from the smaller of the length field or bytes received
this way we avoid taking garbage from devices when we enable report luns on USB
ok miod@
Make ifconfig send WPA parameters to the kernel in one ioctl call.
When a sequence of WPA parameters needs to be set, instead of sending
each parameter via a separate get/set ioctl dance to the kernel, ifconfig
now collects all parameters and sends one ioctl to the kernel when done.
Setting any WPA parameter now enables WPA on the interface. Previously,
only the wpa, wpakey, and wpaakms "802.1x" commands enabled WPA.
As before, -wpa and -wpakey disable WPA and clear the WPA configuration.
Fixes misbehaviour where the wpaakms command would disable WPA and clear
the WPA configuration unless AKM "802.1x" was used.
Found by Spiros Thanasoulas of Radically Open Security while reviewing
and testing my WPA3 support patch.
Reset WPA AKMs to defaults if the WPA protocol version is changed and
no AKMs are provided on the subsequent command line. This will keep us
happy once WPA3 appears in the future.
ok armani@ phessler@
Rework the name2id code a bit, make internal functions static.
Introduce two helpers _namelookup() and _idlookup() to lookup a
name or id respectivly. It returns the label or NULL if not found.
Reimplement the other internal functions with these helpers.
OK tb@
Security fix for zstd
Backport upstream fix for CVE-2026-124851, where malformed input during
streaming decompression may expose uninitialized memory or data from
previous decompressions.
OK sthen@
Update to zstd-1.6.0
Fixes numerous bugs and memory safety issues, including CVE-2026-124851,
where malformed input during streaming decompression could expose
uninitialized memory. Changes:
https://github.com/meta/zstd/releases/tag/v1.6.0
OK sthen@, tb@