netipsec: Set the IPv6 payload length before the enc(4) input hook
ipsec6_common_input_cb() corrects ip6_plen for the removed IPsec header
only after it has run the IPSEC_ENC_BEFORE hook, so enc(4) hands the
packet to bpf and pfil with the payload length of the packet as it was
received. Since cb43e97aea11 ("pf: add missing IPv6 length check") pf
drops such a packet as short, so with pf enabled on enc0 and the default
net.enc.in.ipsec_filter_mask every inbound IPv6 packet protected by IPsec
was dropped. The IPv4 path already fixes ip_len before its hook.
Set the payload length before running the hook.
Fixes: fcf596178b5f ("Merge projects/ipsec into head/.")
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
converters/p5-Encode-Punycode: Mark DEPRECATED
- Thin wrapper around Net::IDN::Punycode, use textproc/p5-Net-IDN-Encode
instead
- Set EXPIRATION_DATE 2027-01-02
- No consumers in the tree
(cherry picked from commit 1207c4be4d557aed098c997432a0610c96c12bb5)
www/p5-CGI-Application-Plugin-DebugScreen: Mark DEPRECATED
- Non-functional as required www/p5-CGI-Application-Plugin-ViewCode no
longer compiles
- Set EXPIRATION_DATE 2027-01-02
- Upstream unmaintained as last update was in 2011
(cherry picked from commit d2e61c87d621cb032fe051240472dca095fea72e)
LinuxKPI: add SPACEMIT PCI IDs
Those were found in an updated wireless driver.
MFC after: 3 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D60632
LinuxKPI: 802.11: point vif->bss_conf.bssid at vif->cfg.ap_addr
In lkpi_sta_scan_to_auth(), vif->bss_conf.bssid was assigned directly to
ni->ni_bssid inside the ephemeral struct ieee80211_node. When
lkpi_sta_auth_to_scan() (or an error path in lkpi_sta_scan_to_auth())
reset vif->cfg.ap_addr and freed ni via ieee80211_free_node(ni),
vif->bss_conf.bssid was left dangling.
Subsequent driver accesses to link_conf->bssid / vif->bss_conf.bssid
while unassociated (for example ether_addr_copy(info.tsf_bssid,
link_conf->bssid) in iwl_mld_handle_scan_complete_notif()) then
dereferenced the freed ieee80211_node, triggering a deterministic 6-byte
UMAUseAfterFree panic under KASAN (and reading freed/reused UMA memory
without KASAN).
Point vif->bss_conf.bssid at vif->cfg.ap_addr in both
lkpi_ic_vap_create() and lkpi_sta_scan_to_auth(). vif->cfg.ap_addr is
embedded in struct ieee80211_vif with the same lifetime, is initialized
to ieee80211broadcastaddr at VAP creation, updated in
[12 lines not shown]
LinuxKPI: adjust return value of __ffs64
ffsll() returns an int; there is no need for __ffs64 to return an
unsigned long; reduce it to an unsigned int which callers may expect.
As the result is undefined for no bits set we do not have to worry about
the -1.
MFC after: 3 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D60715
LinuxKPI: 802.11: remove old key from driver on re-key
On a WPA group rekey, the LinuxKPI 802.11 compat layer installs the
new key but never tells the driver to remove the old one.
With hw_crypto enabled, at least iwlwifi keeps one firmware key slot
per installed key and only has 16, so after about 14 rekeys the table
is full. The next key install fails and the card carries on decrypting
with the old group key, so broadcast and multicast traffic stop arriving.
For now remove the key immediately as net80211 tries to install a new
key in the same slot. In theory this should be a deferred operation,
so leave an IMPROVE().
PR: 301069
MFC after: 3 days
linuxulator/powerpc: fill in the machine name in uname()
It was left empty, so config.guess and everything else looking at
uname -m could not tell what it was running on.
Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D62280