FreeBSD/src 6d46c75libarchive archive_read_support_format_cab.c archive_read_support_format_7zip.c, libarchive/test test_read_format_iso_rockridge_zf_overflow.iso.uu test_read_format_cpio_symlink_trailer.cpio.uu

Update vendor/libarchive to 3.8.9

ChangeLog:
https://github.com/libarchive/libarchive/compare/v3.8.8...v3.8.9

Obtained from:          libarchive
Libarcive commit:       27cbc7827172698143e440801fc0ba39ccb4f1f5
DeltaFile
+2,919-0libarchive/test/test_read_format_cpio_symlink_trailer.cpio.uu
+556-542libarchive/archive_read_support_format_rar5.c
+1,096-0libarchive/test/test_read_format_iso_rockridge_zf_overflow.iso.uu
+462-411libarchive/archive_read_support_format_7zip.c
+497-347libarchive/archive_read_support_format_cab.c
+728-0unzip/bsdunzip_windows.c
+6,258-1,300233 files not shown
+17,454-7,685239 files

FreeBSD/src 5f02c84share/man/man4 Makefile em.4

igb(4)/igbv(4): Document SR-IOV PF and VF functionality

Document supported controllers, PF and VF naming, PCI_IOV and IOMMU
requirements, queue and lifecycle constraints, iovctl schema, filtering
and anti-spoof policy, mailbox and MDD recovery, shared hardware
limits, rate control, and statistics cadence.

Relnotes:       yes
Sponsored by:   BBOX.io
DeltaFile
+169-4share/man/man4/em.4
+2-0share/man/man4/Makefile
+171-42 files

FreeBSD/src fdce383sys/dev/e1000 if_em.h if_em.c

igbv: Retry transient VLAN admission failures

A PF mailbox NACK does not distinguish the SR-IOV VLAN request rate
limit from permanent VLVF exhaustion. Preserve desired VLAN membership
and retry four additions per 500 ms timer tick, matching the PF
sustained allowance.

Bound the whole recovery batch to eight seconds from its first failure
and consolidate restore diagnostics, so a full table cannot create a
permanent mailbox poller or repeated per-VID log bursts.

Sponsored by:   BBOX.io
DeltaFile
+92-3sys/dev/e1000/if_igbv.c
+16-5sys/dev/e1000/if_em.c
+5-0sys/dev/e1000/if_em.h
+113-83 files

FreeBSD/src d2cd0b5sys/dev/e1000 if_em.h if_igbv.c

e1000: Sample statistics at timer cadence

Mailbox and link interrupts share iflib admin service with the periodic
timer. Mark timer-driven passes explicitly and run the hardware
statistics sweep only for those samples instead of repeating 66 PF MMIO
reads for every VF mailbox message.

DTrace on the I350 DUT measured the PF sweep at about 79 us on average.
The normal hz/2 timer continues to extend clear-on-read counters
safely; exported counters may trail hardware by up to 500 ms.

Sponsored by:   BBOX.io
DeltaFile
+14-1sys/dev/e1000/if_em.c
+2-1sys/dev/e1000/if_igbv.c
+1-0sys/dev/e1000/if_em.h
+17-23 files

FreeBSD/src e8f3b96sys/dev/e1000 if_igb_iov.c

igb: Rate-limit VF VLAN rebuild requests

Give each VF a burst of 64 VLAN additions and refill it at eight
additions per second. Removals remain unrestricted, idempotent requests
consume nothing, and trusted PF-wide initialization replenishes the
burst while guest resets do not.  Checks VLVF capacity before charging
a token.

Do not apply this policy to multicast requests because Linux igbvf and
DPDK ignore their reply status; aggregate MTA write elision bounds
those updates instead.

Sponsored by:   BBOX.io
DeltaFile
+57-5sys/dev/e1000/if_igb_iov.c
+57-51 files

FreeBSD/src 5ce6c94sys/dev/e1000 if_igb_iov.c

igb: Update only changed IOV VLAN filters

Keep the full VFTA/VLVF software recomputation and clear-map-set
ordering, but compare each phase against the authoritative old value.
Write only VFTA words and VLVF slots whose effective contents change.

I350 uses its software VFTA shadow because erratum 20 makes live reads
unreliable; an invalid shadow forces a complete clear before sparse
restoration. 82576 continues to diff against live VFTA reads.

Add SDT probes for every logical write phase and the final software
images so hardware tests can verify exact elision counts. On my I350
DUT, the old full table path averaged 819 us across 31 VLAN removals
versus about 79 us for the PF statistics sweep.

Sponsored by:   BBOX.io
DeltaFile
+83-15sys/dev/e1000/if_igb_iov.c
+83-151 files

FreeBSD/src 350211asys/dev/e1000 if_em.h if_em.c

igb: Update only changed IOV multicast hashes

Build the aggregate PF/VF multicast bitmap in software and compare it
with the e1000 MTA shadow. Write only registers whose desired value
changed, while forcing a complete write after PF reset invalidates the
hardware table.

This bounds alternating VF multicast updates without NACKing them.
Linux igbvf and DPDK ignore multicast reply status, so a command-rate
limiter could otherwise acknowledge configuration while leaving
hardware state stale.

Sponsored by:   BBOX.io
DeltaFile
+29-8sys/dev/e1000/if_igb_iov.c
+2-1sys/dev/e1000/if_em.c
+1-0sys/dev/e1000/if_em.h
+32-93 files

FreeBSD/src c637d47sys/dev/e1000 if_em.c

igb: Stop writing the legacy TADV register

TADV is an em-class interrupt delay register and is absent from the
82575 and later register model. The igb attach path does not expose or
initialize that control, but transmit initialization still wrote its
zero valued storage into a reserved queue-window offset.

Apply the same igb_mac_min boundary already used for TIDV and the
absolute-delay sysctls.

MFC after:      1 week
Sponsored by:   BBOX.io
DeltaFile
+1-1sys/dev/e1000/if_em.c
+1-11 files

FreeBSD/src 9332fd5sys/dev/e1000 if_em.c e1000_vf.h

igbv: Support secondary unicast filters

Support the Linux igbvf secondary-MAC mailbox subprotocol, used by
Linux guests running MacVTap.

Replay up to three non-primary unicast addresses after reset and
whenever the address list changes, subject to PF allow-set-mac policy.

Sponsored by:   BBOX.io
DeltaFile
+66-0sys/dev/e1000/if_igbv.c
+35-0sys/dev/e1000/e1000_vf.c
+3-0sys/dev/e1000/if_em.h
+1-0sys/dev/e1000/if_em.c
+1-0sys/dev/e1000/e1000_vf.h
+1-0sys/dev/e1000/e1000_82575.h
+107-06 files

FreeBSD/src a6bb385sys/dev/e1000 if_em.h igb_txrx.c

igbv: Improve VF mailbox and status behavior

Treat VF media as fixed 1000baseT full duplex and report PF not ready
and generated MAC fallback states during attach.

After a successful reset handshake, reconcile a PF rejected MAC back
into the ifnet. If the PF is unavailable, defer MAC, multicast, VLAN,
LPE, and promiscuity replay until CTS is restored. Track a rejected
VLAN removal separately so leaked traffic remains tagged until reset
proves that the stale hardware filter is gone.

Baseline VF counters at attach, collect the four loopback packet and
octet counters with rollover-safe deltas, and account software RX
checksum offload results. Preserve accumulated statistics across PF
resets by rebasing the raw hardware counters, and sample them while
physical link is down because VF loopback can remain active.

Retain the 82576 VFMPRC hardware statistic, but do not read it on I350
VFs because specification update errata 31 says it is unavailable.

    [5 lines not shown]
DeltaFile
+168-44sys/dev/e1000/if_em.c
+115-0sys/dev/e1000/if_igbv.c
+26-8sys/dev/e1000/igb_txrx.c
+10-4sys/dev/e1000/if_em.h
+319-564 files

FreeBSD/src 316f6f2sys/dev/e1000 em_txrx.c if_em.h, sys/modules/em Makefile

igbv: Isolate VF policy and validate its registers

Give igb virtual functions a separate ifdi method table and move
VF-specific attach, reset, queue, interrupt, and diagnostic policy to
if_igbv.c. Keep shared descriptor-ring mechanisms in if_em.c.

Derive VF identity from IFLIB_IS_VF and assert that hardware
identification agrees. Under INVARIANTS, validate normal VF CSR
accesses against the sparse 82576 and I350 VF register maps.

Stop shared setup from accessing PF-only controls. Require MSI-X and
defer VF sysctls until attach succeeds so failed attachment cannot
leave handlers pointing at freed driver state.

Advertise only VF capabilities, run adaptive moderation without the
PF receive-buffer guard, enable SRRCTL.DROP_EN, and provide a VF-safe
diagnostic register view.

The moved implementation is the existing FreeBSD code. Register model

    [3 lines not shown]
DeltaFile
+361-252sys/dev/e1000/if_em.c
+205-0sys/dev/e1000/if_igbv.c
+83-1sys/dev/e1000/e1000_osdep.h
+19-0sys/dev/e1000/if_em.h
+5-0sys/dev/e1000/em_txrx.c
+1-1sys/modules/em/Makefile
+674-2541 files not shown
+676-2547 files

FreeBSD/src f879d1csys/dev/e1000 if_em.c

igb: Reprogram descriptor queues while disabled

Disable each igb-class transmit and receive queue and flush before
changing its descriptor-ring registers. Restore the head and tail
indices that Intel documents as surviving a VF reset.

Use the igb queue-enable control instead of programming legacy TXDCTL
granularity, low-water, and reserved bits that do not belong to the
82575 and later.

Sponsored by:   BBOX.io
MFC after:      1 week
DeltaFile
+21-5sys/dev/e1000/if_em.c
+21-51 files

FreeBSD/src a2ed165sys/dev/e1000 igb_txrx.c if_em.h, sys/modules/em Makefile

igb: Add SR-IOV PF support for 82576 and I350

Add the PCI IOV schema and PF control plane for up to seven VFs with
one hardware queue per pool. Implement VF mailbox handling, MAC and
VLAN assignment, multicast filtering, promiscuity policy,
anti-spoofing, malicious-driver recovery, reset replay, and queue
lifecycle management.

The basic SR-IOV and VMDq PF implementation follows DPDK Intel e1000
code, including PF pool selection, one queue per pool, mailbox
dispatch, and VF enablement. Intel FreeBSD igb-2.5.31 supplies the
older driver baseline. Linux igb and the Intel SDMs clear up lifecycle,
isolation, reset, and family-specific details absent from DPDK.

Enabling IOV requires the PF to attach with one TX and RX queue.
Systems whose defaults select RSS queues must set the documented iflib
queue override tunables before attach.

Only 82576 and I350 support SR-IOV in silicon.  The series has been

    [6 lines not shown]
DeltaFile
+1,819-0sys/dev/e1000/if_igb_iov.c
+330-48sys/dev/e1000/if_em.c
+57-0sys/dev/e1000/if_igb_iov.h
+27-0sys/dev/e1000/if_em.h
+24-1sys/dev/e1000/igb_txrx.c
+2-2sys/modules/em/Makefile
+2,259-511 files not shown
+2,261-517 files

FreeBSD/src 930f2e4sys/kern kern_exec.c

kern_execve(): avoid storing non-VDIR into p_textdvp

Reported by:    Nick Price
Tested by:      pho
Reviewed by:    jah, markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58506
DeltaFile
+36-2sys/kern/kern_exec.c
+36-21 files

FreeBSD/src bf0ffcalib/libsys mknod.2

mknod.2: properly document root requirements

PR:     297082

(cherry picked from commit a3b5937da6159bcdaf4e635a0ad20013d4c3734d)
DeltaFile
+1-1lib/libsys/mknod.2
+1-11 files

FreeBSD/src 361ee19lib/libsys mknod.2

mknod.2: update the man page

PR:     297082

(cherry picked from commit 4090d103b0c31b44b269e0ccf758be5cfba3f60c)
DeltaFile
+16-7lib/libsys/mknod.2
+16-71 files

FreeBSD/src 26cad57share/man/man3 pthread_cond_wait.3

pthread_cond_wait.3: describe spurious wakeups

(cherry picked from commit 3c6f63902b037e36648fae435d4d5f56f9dc389b)
DeltaFile
+14-1share/man/man3/pthread_cond_wait.3
+14-11 files

FreeBSD/src bcb62ecsys/dev/e1000 if_em.c

igb: Guard register dump during queue setup

The register-dump sysctl is installed before iflib allocates the queue
arrays and remains visible while they are freed. Return ENXIO outside
the queue lifetime instead of dereferencing a NULL or stale array.

Sponsored by:   BBOX.io
DeltaFile
+7-0sys/dev/e1000/if_em.c
+7-01 files

FreeBSD/src 7eb7ff6sys/dev/e1000 igb_txrx.c

igbv: Correct I350 loopback VLAN byte order

I350 loopback receive descriptors report VLAN tags byte-swapped for
both PFs and VFs. The receive path handled the PF device types but
omitted e1000_vfadapt_i350, causing an admitted VF VLAN packet to be
delivered untagged to the VF parent.

Include the I350 VF type in the existing correction. This matches the
dedicated IGB_RXQ_FLAG_LB_BSWAP_VLAN handling in DPDK igbvf.

MFC after:      1 week
Sponsored by:   BBOX.io
DeltaFile
+2-1sys/dev/e1000/igb_txrx.c
+2-11 files

FreeBSD/src 8822954stand/efi/libefi efinet.c, stand/i386/libi386 pxe.c

stand: Cleanup use of cached DHCP response packet

 - When cached response is available, actually use xid from one
instead of using its byte-swapped value for BIOS and 1 for UEFI.
 - If cached response is not available, generate pseudo-random xid,
since use of a constant may cause conflicts if two systems are
booting same time, and server sends responses as broadcast.
 - When cached response is available, skip DHCP DISCOVER/OFFER
and just send REQUEST to the DHCP server from the cached response.
We could skip this phase too and just use the cached response, but
we don't know whether firmware requested all of DHCP options we'd
like to get.

Tested on amd64 Supermicro X11DPI-NT for both BIOS and EFI, with
and without cached response packet.
DeltaFile
+105-30stand/libsa/bootp.c
+0-5stand/i386/libi386/pxe.c
+0-1stand/efi/libefi/efinet.c
+105-363 files

FreeBSD/src 100f7b8. UPDATING

UPDATING: Add entry for igbv driver split
DeltaFile
+6-0UPDATING
+6-01 files

FreeBSD/src e6b9ce2sys/dev/e1000 if_em.c, sys/modules/em Makefile

igbv: Split 82576 and I350 VF registration off igb

Register the 82576 and I350 VF PCI IDs under a separate igbv driver
while continuing to share the igb datapath implementation.

Follow the ixv driver split and give the VF context IFLIB_IS_VF so
iflib does not apply the PF SR-IOV detach guard to a child VF. Program
VTIVAR_MISC in the VF low byte so mailbox and reset notifications reach
the VF admin vector.

The split will become increasingly obvious as bug fixes land, trying to
bias everything with if (sc->vf_ifp) everywhere is error prone in two
directions.

This breaks existing naming/configurations and cannot be MFCed as-is.
I have no plans of adapting it to prior branches at the moment but it
may be possible.

Relnotes:       yes
Sponsored by:   BBOX.io
DeltaFile
+85-4sys/dev/e1000/if_em.c
+2-1sys/modules/em/Makefile
+87-52 files

FreeBSD/src 767d5fe. .mailmap

mailmap: Fix Nick Price

Somehow a few commits ended up with "null" appended to Nick's name and
email address.

Reviewed by:    Nick Price <nick at spun.io>
Differential Revision: https://reviews.freebsd.org/D58517
DeltaFile
+1-0.mailmap
+1-01 files

FreeBSD/src da41214. .mailmap

mailmap: Sort

Reviewed by:    markj
Differential Revision: https://reviews.freebsd.org/D58515
DeltaFile
+19-19.mailmap
+19-191 files

FreeBSD/src 621498bsys/dev/pci pci_iov.c

pci_iov: Clear NumVFs when configuration fails

pci_iov_config() programs NumVFs before validating the final VF RID
layout and allocating all generic resources. A subsequent error ran the
driver uninit callback but left the hardware NumVFs register programmed
while the software VF count returned to zero.

Clear NumVFs in the error path after the driver uninit callback,
matching normal SR-IOV teardown ordering. This prevents stale hardware
state after a failed configuration and permits a clean retry.

MFC after:      1 week
Sponsored by:   BBOX.io
DeltaFile
+3-1sys/dev/pci/pci_iov.c
+3-11 files

FreeBSD/src e795a31sys/dev/pci pci_iov.c

pci_iov: Permit non-ARI VFs on a secondary bus

A non-zero VF device number does not always require ARI. The Intel
82576 and I350 [1] explicitly support a non-ARI layout that places VFs
on the next bus.

Check every requested VF RID and reject a non-zero device only when it
is on the PF bus. This retains the ARI guard for invalid same-bus
layouts while permitting the documented second-bus layout.

[1] Intel I350 Datasheet, sections 7.8.2.6.1.2, 9.6.4.6

Sponsored by:   BBOX.io
DeltaFile
+18-3sys/dev/pci/pci_iov.c
+18-31 files

FreeBSD/src fd59498sys/dev/e1000 if_em.c

igb: Address queue registers by hardware queue ID

Use each ring's physical queue index for initialization, MSI-X routing,
register dumps, sysctls, and debug output instead of assuming that its
logical array index is also its hardware index.

This is a no-op for the normal queue layout.  A later SR-IOV change
moves the PF ring to hardware queue num_vfs, so its hardware ID then
differs from logical queue zero.

Sponsored by:   BBOX.io
DeltaFile
+106-55sys/dev/e1000/if_em.c
+106-551 files

FreeBSD/src ac9a6d0sys/dev/e1000 e1000_82575.h e1000_hw.h

e1000: Update shared igb SR-IOV code

Update the shared e1000 PF/VF mailbox interfaces for an in-tree igb
SR-IOV implementation.

Intel FreeBSD igb-2.5.31 and DPDK provide the older PF/VF mailbox
baseline.

The retained PF mailbox read and explicit unlock operation follow a
simple Linux igb parameter addition to make PF mailbox acquisition
nonblocking so the driver can retry outside the shared primitive.

Treating a CTS-less E1000_PF_CONTROL_MSG as a reset follows DPDK.

Sponsored by:   BBOX.io
DeltaFile
+84-23sys/dev/e1000/e1000_mbx.c
+22-7sys/dev/e1000/e1000_vf.c
+3-2sys/dev/e1000/e1000_vf.h
+4-1sys/dev/e1000/e1000_mbx.h
+2-1sys/dev/e1000/e1000_hw.h
+1-1sys/dev/e1000/e1000_82575.h
+116-356 files

FreeBSD/src f8fa2d7sys/net iflib.h iflib.c

iflib: Add restart transactions for IOV reconfiguration

Some devices remap the PF queues when entering or leaving SR-IOV. Add
opt-in PCI IOV helpers that hold the iflib context lock across the
complete stop, driver callback, and restart transaction.

Existing drivers continue to use the non-restarting helpers.

Sponsored by:   BBOX.io
DeltaFile
+53-0sys/net/iflib.c
+2-0sys/net/iflib.h
+55-02 files

FreeBSD/src 23216f6usr.sbin/certctl certctl.c

certctl: Enforce 0444 mode on new files

When writing to a file, call fchmod() to ensure the file mode matches
the intended mode, which is 0444.  This was already done when replacing
an existing file, but not when creating a new file, which meant if the
process umask was 077, the resulting certificates and bundle would be
unreadable by unprivileged users.

MFC after:      1 week
Reviewed by:    des
Differential Revision:  https://reviews.freebsd.org/D58304

(cherry picked from commit 02f174179a538f89185d275b4e64277baf3acc50)
DeltaFile
+4-0usr.sbin/certctl/certctl.c
+4-01 files