FreeBSD/src 6b5300e — contrib/libpcap instrument-functions.c CHANGES

libpcap: Update to 1.10.7

Changes:        https://github.com/the-tcpdump-group/libpcap/blob/libpcap-1.10.7/CHANGES
Obtained from:  https://www.tcpdump.org/release/libpcap-1.10.7.tar.xz
Security:       CVE-2026-0799
Security:       CVE-2026-6244
Security:       CVE-2026-6554
Security:       CVE-2026-18238
Security:       CVE-2026-18313
Security:       CVE-2026-31911
Security:       CVE-2026-31912
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D62079
Differential Revision:  https://reviews.freebsd.org/D62115
DeltaFile
+1,579-1,139contrib/libpcap/configure
+234-102contrib/libpcap/bpf_filter.c
+84-33contrib/libpcap/pcap-rpcap.c
+38-32contrib/libpcap/config.h.in
+42-0contrib/libpcap/CHANGES
+27-9contrib/libpcap/instrument-functions.c
+2,004-1,31538 files not shown
+2,272-1,39644 files

FreeBSD/src f41df41 — sys/ofed/drivers/infiniband/ulp/nfsclrdma xprt_verbs.c

xprt_verbs.c: Don't reset the connection for all failure stats

Without this patch, rpcrdma_unmap() fails the RDMA connection
for all RPC stat returns other than RPC_SUCCESS.

This patch allows the connection to remain for certain failures:
- RPC_AUTHERR, which can happen when a Kerberos TGT expires.
- RPC_INTR, RPC_TIMEDOUT, which can happen for "intr" or "soft"
  mounts.

Reported by:    llm-postcr
MFC after:      1 month
Fixes:  80bee4d83637 ("nfsclrdma: Add code to support client side NFS over RDMA")
DeltaFile
+2-1sys/ofed/drivers/infiniband/ulp/nfsclrdma/xprt_verbs.c
+2-11 files

FreeBSD/src b13e404 — sys/dev/hid ietp.c

ietp(4): Expect I2C address provided by iicbus(4) to be in 8-bit format

Since rGb2dbfc7b7701 ("acpi_iicbus: shift the ACPI slave address into the
form iicbus(4) stores"), iicbus_get_addr() returns an 8-bit slave address
on acpi_iicbus(4) to match iicbus(4) and ofw_iicbus(4).

iichid(4) was updated in rGafe3bfec65da, but ietp(4) still left-shifts
iicbus_get_addr(iichid) in ietp_iic_identify(), ietp_iic_read_reg(), and
ietp_iic_write_reg() before issuing I2CRDWR transfers via iichid_ioctl().
Drop the redundant shifts so the slave address is not shifted twice.

Fixes: b2dbfc7b7701 ("acpi_iicbus: shift the ACPI slave address into the form iicbus(4) stores")
Reviewed by:    wulf
Differential Revision:  https://reviews.freebsd.org/D62164
DeltaFile
+3-3sys/dev/hid/ietp.c
+3-31 files

FreeBSD/src 66f6b9f — sys/dev/sound/pci/hda pin_patch_realtek.h

sound: Add quirk to enable mic and HP redirection on HP Spectre laptops

Tested on HP AF006UR.

It was already committed in 20694769bd0a but lost.
DeltaFile
+16-0sys/dev/sound/pci/hda/pin_patch_realtek.h
+16-01 files

FreeBSD/src 96ba626 — sys/dev/usb/controller xhci.c

xhci: read HCIVERSION as part of the first capability word

Some controllers apparently do not like accesses non-aligned to 32bits,
even when only reading 8 or 16 bits.
Commit 6d5c80aee3ae made it so we unconditionally read XHCI_HCIVERSION
with a 16bits read, which panics on my Radxa Orion O6. This gives a
SError, with the firmware reporting "IDM: USB3CH0 non-secure access".

Instead, do a 32bits read on XHCI_CAPLENGTH, which is properly aligned,
and shift it to get the value of XHCI_HCIVERSION. This is what Linux
does too.

Reviewed by:    aokblast, seuros
Differential Revision:  https://reviews.freebsd.org/D62132

MFC after:      3 days (with 6d5c80aee3ae, as it gets MFC'd)
DeltaFile
+6-1sys/dev/usb/controller/xhci.c
+6-11 files

FreeBSD/src 1162164 — share/man/man4 Makefile acpi_fan.4, sys/conf files

acpi: Add acpi_fan

Implemet acpi fan driver for controlling fan device defined in ACPI
standard. We implement level mode and step mode currently and provides
sysctls to control it.

In level mode, we have exposes n numbers of level can be choosen. People
writes the Ctrl value to set_level node to get desired value.

In step mode, people can write abitrary value (automatically rounddown
to the multiple of step) to set_level.

The full spec is in:
https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/11_Thermal_Management/fan-device.html

Reviewed by:    seuros, zaiee
Tested by:      rz_fabmicro.ru
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55592
DeltaFile
+391-0sys/dev/acpica/acpi_fan.c
+200-0share/man/man4/acpi_fan.4
+1-0sys/conf/files
+1-0share/man/man4/Makefile
+593-04 files

FreeBSD/src 2bc0d7a — sys/dev/rtwn/rtl8192c/usb r92cu.h r92cu_tx.c, sys/dev/rtwn/rtl8812a/usb r12au_attach.c

rtwn: added usb tx_checksum HAL for each chipsets

Tested on RTL8188FTV, 8821AU and RTL8192FU

Sponsored by: Alchemilla Ventures Private Limited

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D62148
DeltaFile
+31-0sys/dev/rtwn/rtl8192c/usb/r92cu_tx.c
+4-9sys/dev/rtwn/usb/rtwn_usb_tx.c
+6-0sys/dev/rtwn/usb/rtwn_usb_var.h
+4-0sys/dev/rtwn/rtl8192c/usb/r92cu.h
+2-0sys/dev/rtwn/rtl8821a/usb/r21au_attach.c
+2-0sys/dev/rtwn/rtl8812a/usb/r12au_attach.c
+49-95 files not shown
+59-911 files

FreeBSD/src ef6d8eb — sys/cddl/dev/sdt sdt.c

sdt: Don't clear a probe's ID when disabling it

A thread may have jumped out of a tracepoint but not yet loaded the
probe ID when sdt_disable() clears it. It then calls dtrace_probe()
with ID 0, which reads far past the end of the probe array.

Leave the ID set. dtrace_probe() does nothing for a disabled probe,
and sdt_enable() sets the ID each time.

Reviewed by:    markj
MFC after:      1w
Co-authored-by: Claude Opus 5.5
Differential Revision:  https://reviews.freebsd.org/D62154
DeltaFile
+1-1sys/cddl/dev/sdt/sdt.c
+1-11 files

FreeBSD/src b818022 — sys/x86/x86 sdt_machdep.c

amd64/sdt: Use a single NOP for disabled probes

sdt_tracepoint_restore() wrote five one-byte NOPs.  A thread
interrupted between them could resume in the middle of the jump
written when the probe was next enabled, and run its displacement
as instructions.  Write the single five-byte NOP that the compiler
emits for _SDT_ASM_PATCH_INSTR instead.

Reviewed by:    markj
MFC after:      1w
Co-authored-by: Claude Opus 5.5
Differential Revision:  https://reviews.freebsd.org/D62153
DeltaFile
+9-5sys/x86/x86/sdt_machdep.c
+9-51 files

FreeBSD/src 3645a02 — tests/sys/posixshm posixshm_test.c

posixshm tests: Catch stale TLB entries in large page upgrades

Add a test that revokes write access to a mapped large page, reads every
base page, restores write access, and then writes every base page.  The
existing largepage_mprotect test doesn't cover this case, because it
passes PROT_NONE, which removes the mapping.

Also have largepage_mprotect_wired read every base page before
mprotect() makes its mlocked mapping writable.  It never touched the
mapping before, so no read-only TLB entry could exist when mprotect()
upgraded the mapping in place.

On arm64, before fd6a3eae051e, the writes in both tests could fault
repeatedly on stale read-only TLB entries, hanging the tests until they
timed out.

Assisted by:    Claude Code (Opus 5.5)
Reviewed by:    kib, markj
Differential Revision:  https://reviews.freebsd.org/D62143
DeltaFile
+53-0tests/sys/posixshm/posixshm_test.c
+53-01 files

FreeBSD/src 7a5d7df — sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: defer native TX sequence allocation

LinuxKPI assigns sequence numbers in lkpi_80211_txq_tx_one() before
encryption. Native net80211 encapsulation can also allocate a number
unless SEQNO_OFFLOAD is enabled, consuming two numbers for one frame.

Set IEEE80211_FEXT_SEQNO_OFFLOAD at attach so native encapsulation defers
to the existing LinuxKPI assignment. Leave its placement and locking
unchanged.

PR: kern/300730
Fixes: 9cf85457b13bc7aa125388d63c82acf2b21e9e9e
MFC after: 2 weeks

Tested:

* RTL8852BT, STA mode - 700ms RTT before, 2ms RTT after, seqno advances
  one per packet instead of two per packet.
DeltaFile
+2-0sys/compat/linuxkpi/common/src/linux_80211.c
+2-01 files

FreeBSD/src ef8e062 — sys/dev/rtwn if_rtwnvar.h if_rtwn_fw.c, sys/dev/rtwn/rtl8192e/usb r92eu_attach.c

rtwn: add sc_start_addr field and rtwn_fw_write_finish method

Added sc_start_addr field for every device and rtwn_fw_write_finish method with nop for current devices.

Tested it on rtl8188ftv and rtl8192fu

Sponsored by: Alchemilla Ventures Private Limited

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D61929
DeltaFile
+5-1sys/dev/rtwn/if_rtwn_fw.c
+5-0sys/dev/rtwn/if_rtwnvar.h
+3-0sys/dev/rtwn/rtl8821a/usb/r21au_attach.c
+3-0sys/dev/rtwn/rtl8812a/usb/r12au_attach.c
+3-0sys/dev/rtwn/rtl8723b/usb/r23bu_attach.c
+3-0sys/dev/rtwn/rtl8192e/usb/r92eu_attach.c
+22-15 files not shown
+37-111 files

FreeBSD/src 1cde8fa — share/man/man4 mgb.4

mgb.4: Include PCI11414 in supported hardware list

Reviewed by:    br
Fixes: da8a529bc01f ("mgb: support for PCI11414.")
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D62031
DeltaFile
+4-1share/man/man4/mgb.4
+4-11 files

FreeBSD/src 5ec829c — sys/dev/nvme nvme_qpair.c

nvme: complete requests when payload DMA mapping fails

bus_dmamap_load_mem() reports most mapping failures, including EFBIG,
only through its callback and then returns zero. nvme_payload_map()
logged the error without telling the submission path, so the tracker
stayed on the outstanding list with no command submitted and no
timeout armed, stalling all later I/O on the queue behind it.

Approved by: ngie (co-mentor)
MFC after:      1 week

Reviewed by:    ngie, imp
Differential Revision:  https://reviews.freebsd.org/D59151

(cherry picked from commit b90c2b13e975c803e426a6e6f080a6089d08e6ab)
DeltaFile
+11-26sys/dev/nvme/nvme_qpair.c
+11-261 files

FreeBSD/src 0f5a6a0 — sys/dev/nvme nvme_ns.c

nvme: limit namespace character-device I/O size

The namespace character device does not initialize si_iosize_max, so
physio falls back to DFLTPHYS and can produce a bio larger than the
qpair payload DMA tag on a controller whose maximum transfer size is
below 64KB. Such a bio fails DMA mapping and is never submitted.

Approved by: ngie (co-mentor)
MFC after:      1 week

Reviewed by:    ngie, imp
Differential Revision:  https://reviews.freebsd.org/D59152

(cherry picked from commit 125ec0e30785bb0cbca7aa6c0b1a34b75e53078d)
DeltaFile
+8-1sys/dev/nvme/nvme_ns.c
+8-11 files

FreeBSD/src 1a1eeea — sys/dev/gpio gpioled_fdt.c

gpioled: defer gpio pin writes to a taskqueue

led(4) invoked the led_t callback with its mutex held, including from the
blink callout, so the callback must not sleep.

PR: 251032

MFC After: 1 week

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59263

(cherry picked from commit cd7541977e2ce5aebeeeae3e8a375256ee1ecb1d)
DeltaFile
+26-3sys/dev/gpio/gpioled_fdt.c
+26-31 files

FreeBSD/src 225fadb — sys/dev/acpi_support acpi_ibm.c

acpi_ibm: handle ThinkPad programmable star key

Handle extended HKEY events separately from legacy event mask indices.
Report the programmable star key as KEY_BOOKMARKS instead of treating it
as brightness down, and preserve extended event arguments for devd.

Tested on: ThinkPad X1 Carbon Gen 9

Pull Request: https://github.com/freebsd/freebsd-src/pull/2595
MFC after:      3 days

Reviewed by:    ngie, adrian
Differential Revision:  https://reviews.freebsd.org/D62159
DeltaFile
+22-2sys/dev/acpi_support/acpi_ibm.c
+22-21 files

FreeBSD/src 4100160 — share/misc organization.dot

organization.dot: add arrowd as a new portmgr member
DeltaFile
+1-1share/misc/organization.dot
+1-11 files

FreeBSD/src c1b7d96 — share/misc organization.dot

organization.dot: add bofh as pkgmgr
DeltaFile
+1-1share/misc/organization.dot
+1-11 files

FreeBSD/src 3a171a6 — sys/amd64/conf GENERIC, sys/conf NOTES

rge: Add to amd64 GENERIC and to sys/conf/NOTES

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D54609

(cherry picked from commit e28529ca4d34084452ca9acf63aa40279787239a)
DeltaFile
+2-0sys/conf/NOTES
+1-0sys/amd64/conf/GENERIC
+3-02 files

FreeBSD/src 50b2581 — sys/amd64/conf GENERIC, sys/conf NOTES

aq: Add to amd64 GENERIC and to sys/conf/NOTES

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D54633

(cherry picked from commit c75eff16ef54aaae7b5dc52ed894cc73a855f469)
DeltaFile
+2-0sys/conf/NOTES
+1-0sys/amd64/conf/GENERIC
+3-02 files

FreeBSD/src 44de1df — sys/conf files, sys/dev/acpica acpivar.h acpi_pld.c

usb: Add PLD utility funtions and use it on usb_hub_acpi.c

Add PLD utility functions using ACPICA library functions.
Note that output format of port information sysctl is changed.
change sysctl free order.

Reviewed by: hrs
Differential Revision: https://reviews.freebsd.org/D62102
DeltaFile
+35-186sys/dev/usb/usb_hub_acpi.c
+164-0sys/dev/acpica/acpi_pld.c
+6-0sys/dev/acpica/acpivar.h
+1-0sys/conf/files
+206-1864 files

FreeBSD/src 2496a1c — usr.sbin/sysrc sysrc sysrc.subr, usr.sbin/sysrc/tests sysrc_test.sh

sysrc: Restore alignment with rc(8) boot process [again]

Fix the second issue identified in post-commit review of d0a1676:

POSTCR-68d4c95925656e301be7bcaec72a6796cc02a00b-2:
set -f in f_sysrc_service_configs stops local_startup glob expansion,
so -s/-L miss rc.conf.d files that rc(8) loads

A second partial "revert" of d0a167652278; this time with respect to
local_startup.

Add another ATF test to ensure we maintain rc(8) alignment.

Reported by:    llm-postcr
Fixes:          d0a167652278 ("sysrc: Support special characters in file names")
DeltaFile
+50-0usr.sbin/sysrc/tests/sysrc_test.sh
+6-6usr.sbin/sysrc/sysrc.subr
+1-1usr.sbin/sysrc/sysrc
+57-73 files

FreeBSD/src 056925e — sys/ofed/drivers/infiniband/ulp/nfsclrdma clnt_rdma.c

clnt_rdma.c: Change handling of a 0 credit request

Although I do not think it should ever happen, if a
server replies with an rdma_credit == 0, the Linux
client just sets it to 1.

This patch makes the FreeBSD NFS over RDMA client
do the same.

Reported by:    llm-postcr
MFC after:      1 month
Fixes:  80bee4d83637 ("nfsclrdma: Add code to support client side NFS over RDMA")
DeltaFile
+6-2sys/ofed/drivers/infiniband/ulp/nfsclrdma/clnt_rdma.c
+6-21 files

FreeBSD/src 2fb943a — sys/netpfil/ipfw ip_fw_sockopt.c ip_fw_compat.c

ipfw: fix off-by-one in the IP_FW_XADD rule count check

Restore the pre-4a77657cbc0 ">=" comparison, otherwise parse_rules_v1()
writes one rule_check_info beyond the allocated buffer.

Do the same in ip_fw_compat.c, which has a copy of the loop but is not
built at the moment.

stable/14 is not affected.

Reviewed by:    ae
Fixes:          4a77657cbc0 ("ipfw: migrate ipfw to 32-bit size rule numbers")
MFC after:      1 week
MFC to:         stable/15
Found with:     Claude Code Opus 5.5
Differential Revision:  https://reviews.freebsd.org/D61727

(cherry picked from commit 8364b6bc0c36ab66f71cb2b3e00479326132c80f)
DeltaFile
+1-1sys/netpfil/ipfw/ip_fw_sockopt.c
+1-1sys/netpfil/ipfw/ip_fw_compat.c
+2-22 files

FreeBSD/src 4ba6fd2 — sys/compat/linuxkpi/common/src linux_compat.c

linuxkpi: Bound the retries of a fault handler that inserts no page

linux_cdev_pager_populate() calls the fault handler again for as long
as it returns VM_FAULT_NOPAGE without inserting a page.  When the page
can never be inserted, for instance because another mapping of the
same buffer holds it, the thread loops in the kernel forever, about
450000 handler calls per second, and kill -9 cannot end the process.

Bound the retries in time, as vm_fault does for page allocation
(vm.pfault_oom_attempts, vm.pfault_oom_wait): after
compat.linuxkpi.fault_retry_timeout seconds the fault fails and the
thread gets SIGSEGV.  Sleep a tick before each retry.

The 30 s default is three times the 10 s after which amdgpu declares a
kernel job hung: a legitimate retry can wait for a buffer move, and a
hung move ends with that timeout and the reset.  Retries are rare:
on i915 (Raptor Lake, Meteor Lake) and amdgpu (Strix Halo), VA-API,
vkmark and llama.cpp loads gave 389768 faults and no retry.  0 fails
at once, -1 retries forever.

    [5 lines not shown]
DeltaFile
+28-2sys/compat/linuxkpi/common/src/linux_compat.c
+28-21 files

FreeBSD/src f654a8c — contrib/tzcode localtime.c

tzcode: Avoid integer truncation resulting in wrong weekday

From a report[1] on the tz mailing list:

In timesub() the weekday is stored in (int) tm_wday before reduction
modulo seven (DAYSPERWEEK).  Previously this could overflow a 32-bit
int, resulting in an incorrect weekday calculation.

Calculate two additional intermediate terms modulo seven to avoid an
intermediate value that does not fit in 32 bits.

We're committing this patch now so we can have something in place for
FreeBSD 15.2.  If a different change is committed upstream we will
replace this.

[1] https://lists.iana.org/hyperkitty/list/tz@iana.org/thread/O3RZGBKSO5GXBFDZKW2JXO3OQIIGYBF3/

PR:             300977
Requested by:   re (cperciva)

    [5 lines not shown]
DeltaFile
+2-2contrib/tzcode/localtime.c
+2-21 files

FreeBSD/src 2534dcb — usr.sbin/bhyve ipc.c

bhyve: fix VM crash on malformed IPC messages

Currently, ipc_thread() calls nvlist_get_string(nvl, "cmd") and
compares result to NULL. It is not the right way of handling
errors because nvlist_get_string() aborts if the key does not exist.
Thus, bhyve aborts for messages with a missing command name.

Fix by checking "cmd" with nvlist_exists_string().

Reviewed by:    bnovkov
Reported by:    llm-postcr
Fixes:          04811d46d3f2 ("bhyve: Generalize the IPC thread")
Differential Revision:  https://reviews.freebsd.org/D62145
DeltaFile
+2-2usr.sbin/bhyve/ipc.c
+2-21 files

FreeBSD/src 58e1a0c — etc/mtree BSD.tests.dist, tools/build/mk OptionalObsoleteFiles.inc

bhyve: add basic tests

Add sanity checks for:

 * bhyve -l help
 * bhyve -s help
 * bhyve -o help
 * bhyve -o config.dump=1

Validate that commands run successfully, have no duplicates,
sorted where applicable, and the dumped configuration can be consumed
again with the -k option.

Reviewed by:    ngie, Osvaldo Janeri Filho <ojanerif at amd.com>
Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D60981
DeltaFile
+133-0usr.sbin/bhyve/tests/bhyve_test.sh
+5-0usr.sbin/bhyve/tests/Makefile
+3-0usr.sbin/bhyve/Makefile
+3-0tools/build/mk/OptionalObsoleteFiles.inc
+2-0etc/mtree/BSD.tests.dist
+146-05 files

FreeBSD/src b9103a9 — sys/dev/mmc mmc.c, sys/dev/sdhci sdhci.c

Revert "mmc: Allow HS400ES with HS400 at a single I/O voltage"

llm-postcr reports multiple issues with this as-is.

This reverts commit e70868afa99d40087363d6478488a9904459be71.
DeltaFile
+4-2sys/dev/sdhci/sdhci.c
+2-3sys/dev/mmc/mmc.c
+6-52 files