HardenedBSD/src 97b3057 — share/misc committers-src.dot

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+1-1share/misc/committers-src.dot
+1-11 files

HardenedBSD/src f8a2d47 — share/misc committers-src.dot

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+1-1share/misc/committers-src.dot
+1-11 files

HardenedBSD/src 4227d7d — share/misc committers-src.dot

committers-src: Fix typo

Fixes:          dbed0e560fdb ("Add new src committer (msvoelker)")
DeltaFile
+1-1share/misc/committers-src.dot
+1-11 files

HardenedBSD/src 440e60d — sys/dev/netmap netmap_mem2.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+2-0sys/dev/netmap/netmap_mem2.c
+2-01 files

HardenedBSD/src 3dc58ed — sys/dev/netmap netmap_mem2.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+2-0sys/dev/netmap/netmap_mem2.c
+2-01 files

HardenedBSD/src a602048 — sys/dev/netmap netmap_mem2.c

netmap: Clear ni_bufs_head in a new netmap_if

netmap_mem2_if_new() does not set ni_bufs_head, and the netmap_if comes
from a pool that is not zeroed, so it starts with the head of the last
extra buffer list of whoever had that netmap_if before.  Only a
registration from userspace sets the field afterwards.  One made by the
kernel, such as attaching a NIC to a VALE switch, keeps the old value,
and so does a registration that fails after the netmap_if was created.
netmap_mem2_if_delete() then frees that list again.  When the buffer is
free this logs "ouch, double free on buffer"; when another ring has got
it in the meantime, it is freed under that ring and can be given out a
second time.

Clear the field when the netmap_if is created.

Reviewed by:            vmaffione
MFC after:              2 weeks
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D62152
DeltaFile
+2-0sys/dev/netmap/netmap_mem2.c
+2-01 files

HardenedBSD/src 98e60ac — contrib/libpcap bpf_filter.c configure, contrib/tcpdump print-ip.c configure

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+1,579-1,139contrib/libpcap/configure
+1,135-745contrib/tcpdump/configure
+391-0sys/dev/acpica/acpi_fan.c
+234-102contrib/libpcap/bpf_filter.c
+112-99contrib/tcpdump/print-ip.c
+200-0share/man/man4/acpi_fan.4
+3,651-2,08580 files not shown
+4,482-2,39586 files

HardenedBSD/src e11f034 — contrib/libpcap bpf_filter.c configure, contrib/tcpdump print-ip.c configure

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+1,579-1,139contrib/libpcap/configure
+1,135-745contrib/tcpdump/configure
+391-0sys/dev/acpica/acpi_fan.c
+234-102contrib/libpcap/bpf_filter.c
+112-99contrib/tcpdump/print-ip.c
+200-0share/man/man4/acpi_fan.4
+3,651-2,08580 files not shown
+4,482-2,39586 files

HardenedBSD/src 7dac882 — contrib/tcpdump tcpdump.c instrument-functions.c

tcpdump: Update to 4.99.7

Changes:        https://github.com/the-tcpdump-group/tcpdump/blob/tcpdump-4.99.7/CHANGES
MFC after:      3 days
Obtained from:  https://www.tcpdump.org/release/tcpdump-4.99.7.tar.xz
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D62087
Differential Revision:  https://reviews.freebsd.org/D62117
DeltaFile
+1,135-745contrib/tcpdump/configure
+112-99contrib/tcpdump/print-ip.c
+83-17contrib/tcpdump/print-mptcp.c
+42-45contrib/tcpdump/config.h.in
+35-9contrib/tcpdump/instrument-functions.c
+34-4contrib/tcpdump/tcpdump.c
+1,441-91917 files not shown
+1,531-98523 files

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/src 2bc0d7a — sys/dev/rtwn/rtl8188e/usb r88eu_attach.c, sys/dev/rtwn/rtl8188f/usb r88fu_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/rtl8188f/usb/r88fu_attach.c
+2-0sys/dev/rtwn/rtl8188e/usb/r88eu_attach.c
+49-95 files not shown
+59-911 files

HardenedBSD/src 9e2ee15 — sys/dev/acpi_support acpi_ibm.c, sys/dev/acpica acpivar.h acpi_pld.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+35-186sys/dev/usb/usb_hub_acpi.c
+164-0sys/dev/acpica/acpi_pld.c
+53-0tests/sys/posixshm/posixshm_test.c
+22-2sys/dev/acpi_support/acpi_ibm.c
+9-5sys/x86/x86/sdt_machdep.c
+6-0sys/dev/acpica/acpivar.h
+289-19316 files not shown
+336-19822 files

HardenedBSD/src 7dd44fe — sys/dev/acpi_support acpi_ibm.c, sys/dev/acpica acpivar.h acpi_pld.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+35-186sys/dev/usb/usb_hub_acpi.c
+164-0sys/dev/acpica/acpi_pld.c
+53-0tests/sys/posixshm/posixshm_test.c
+22-2sys/dev/acpi_support/acpi_ibm.c
+9-5sys/x86/x86/sdt_machdep.c
+6-0sys/dev/acpica/acpivar.h
+289-19316 files not shown
+336-19822 files

HardenedBSD/src bba88fe — sys/amd64/conf GENERIC, sys/conf NOTES

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+11-26sys/dev/nvme/nvme_qpair.c
+26-3sys/dev/gpio/gpioled_fdt.c
+8-1sys/dev/nvme/nvme_ns.c
+4-0sys/conf/NOTES
+2-0sys/amd64/conf/GENERIC
+51-305 files

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/src ef8e062 — sys/dev/rtwn if_rtwnvar.h if_rtwn_fw.c, sys/dev/rtwn/rtl8188e/pci r88ee_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/rtl8192c/pci/r92ce_attach.c
+3-0sys/dev/rtwn/rtl8188f/usb/r88fu_attach.c
+3-0sys/dev/rtwn/rtl8188e/usb/r88eu_attach.c
+3-0sys/dev/rtwn/rtl8188e/pci/r88ee_attach.c
+22-15 files not shown
+37-111 files

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/src 4100160 — share/misc organization.dot

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