HardenedBSD/src adfc1e3 — sys/dev/cpufreq cpufreq_dt.h cpufreq_dt_vendor_if.m, sys/dev/nvmem nvmem.h nvmem.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+198-31sys/dev/cpufreq/cpufreq_dt.c
+99-0sys/dev/cpufreq/cpufreq_allwinner.c
+62-0sys/dev/nvmem/nvmem.c
+52-0sys/dev/cpufreq/cpufreq_dt_vendor_if.m
+47-0sys/dev/cpufreq/cpufreq_dt.h
+7-0sys/dev/nvmem/nvmem.h
+465-314 files not shown
+470-3210 files

HardenedBSD/src 9307589 — sys/dev/cpufreq cpufreq_dt.h cpufreq_dt_vendor_if.m, sys/dev/nvmem nvmem.h nvmem.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+198-31sys/dev/cpufreq/cpufreq_dt.c
+99-0sys/dev/cpufreq/cpufreq_allwinner.c
+62-0sys/dev/nvmem/nvmem.c
+52-0sys/dev/cpufreq/cpufreq_dt_vendor_if.m
+47-0sys/dev/cpufreq/cpufreq_dt.h
+7-0sys/dev/nvmem/nvmem.h
+465-314 files not shown
+470-3210 files

HardenedBSD/src 47372db — sys/ofed/drivers/infiniband/ulp/nfsclrdma clnt_rdma.c

clnt_rdma.c: Copy data into the pages before dma mapping them

Without this patch, the code would copy data into pages for
a large RPC request being done over RDMA after doing the
dma mapping of the pages. (Dma mapping of the pages includes
the dma sync for the device.)

This patch moves the data copying up to before the call
to xprt_rdma_create_chunk(), which does the dma mapping,
including the dma sync for the device.

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

HardenedBSD/src 97dfe36 — sys/dev/cpufreq cpufreq_dt.c

cpufreq_dt: Only register the first CPU of a group sharing the OPP table

The CPUs using the same OPP table share their clock and their
regulator, but each one had its own cpufreq driver looking for
cpu-supply in its own node. Some device trees only have cpu-supply
for the first CPU (for example the Pine H64), so changing the
frequency with another CPU changed it without changing the voltage.

Only register the driver of the first CPU of each group. The
dev.cpu.N.freq sysctls of the other CPUs of the group are not created
anymore, the frequency is changed with the first one for all of them.

Fixes:  41a76289e601 ("cpufreq_dt: Add operating-points-v2 support")
Tested on:      Quartz64
Reviewed by:    mmel
Differential Revision:  https://reviews.freebsd.org/D61701
DeltaFile
+20-1sys/dev/cpufreq/cpufreq_dt.c
+20-11 files

HardenedBSD/src 3df00fe — sys/conf files.arm64, sys/dev/cpufreq cpufreq_allwinner.c

cpufreq_allwinner: Add the hardware version of the H6

The voltage of each OPP of the H6 depends on the speed bin of the
chip, stored in an efuse referenced by the nvmem-cells property of the
OPP table. Read it and give the bin to cpufreq_dt, so it uses the
matching opp-microvolt-speed<N> property.

Tested on:      Pine H64
Reviewed by:    mmel
Differential Revision:  https://reviews.freebsd.org/D61700
DeltaFile
+99-0sys/dev/cpufreq/cpufreq_allwinner.c
+1-0sys/conf/files.arm64
+100-02 files

HardenedBSD/src 7178a47 — sys/dev/cpufreq cpufreq_dt.c

cpufreq_dt: Honor opp-supported-hw and opp-microvolt-<name>

Use the hardware version given by the SoC specific code to select
the OPPs and their voltages, as described by the OPP binding.

An OPP with opp-supported-hw is only used if one of its sub-groups
matches the hardware version, which means that each level of the
sub-group has a bit in common with the version.

The voltages are read from opp-microvolt-<name> if the SoC specific
code gives a name and the OPP has this property, from opp-microvolt
otherwise.

If no hardware version is known the OPPs with opp-supported-hw are not
used as it is not safe to use an OPP that the hardware might not
support. Setting the hw.cpufreq_dt.ignore_supported_hw loader tunable
to 1 uses them all, as it was done before.

Reviewed by:    mmel
Differential Revision:  https://reviews.freebsd.org/D61699
DeltaFile
+85-8sys/dev/cpufreq/cpufreq_dt.c
+85-81 files

HardenedBSD/src 8e918cf — sys/conf files.riscv files.arm64, sys/dev/cpufreq cpufreq_dt.c cpufreq_dt.h

cpufreq_dt: Add a hook for the SoC specific hardware version

Some SoCs select the OPPs and their voltages (opp-supported-hw and
opp-microvolt-<name>) from a hardware version, for example a speed
grade read from an efuse. How to get this version depends on the SoC
and is not described by the OPP table.

Add the cpufreq_dt_vendor kobj interface, with a method returning the
version: a bitmask for each level of version and the name to use for
opp-microvolt-<name>. The class implementing it is found from the
compatible string of the OPP table (an array of ofw_compat_data, as
the uart driver does), or with the optional match method for the SoCs
that only use the generic operating-points-v2 compatible.

The version is stored in the softc but not used yet and no class
registers, so no functional change intended.

Reviewed by:    mmel
Differential Revision:  https://reviews.freebsd.org/D61698
DeltaFile
+52-0sys/dev/cpufreq/cpufreq_dt_vendor_if.m
+47-0sys/dev/cpufreq/cpufreq_dt.h
+45-0sys/dev/cpufreq/cpufreq_dt.c
+1-0sys/conf/files.riscv
+1-0sys/conf/files.arm64
+1-0sys/conf/files.arm
+147-06 files

HardenedBSD/src 2680480 — sys/dev/nvmem nvmem.h nvmem.c

nvmem: Add functions to get the provider and the location of a cell

Some SoCs store the hardware version needed to select the CPU OPPs in an
efuse, referenced by the nvmem-cells property of the OPP table or of
the CPU node.  The nvmem_read_cell_*() functions cannot be used for this
because they need nvmem-cell-names, which these device trees do not
have, and because the way to read and decode the value depends on the
SoC.

Add nvmem_cell_get_by_ofw_idx() and nvmem_cell_get_by_ofw_name(), which
return the nvmem provider and the offset and size of a cell, so that
the caller can read it with NVMEM_READ().

Nothing uses them yet.

Reviewed by:    mmel
Differential Revision:  https://reviews.freebsd.org/D61697
DeltaFile
+62-0sys/dev/nvmem/nvmem.c
+7-0sys/dev/nvmem/nvmem.h
+69-02 files

HardenedBSD/src b95ef17 — sys/dev/cpufreq cpufreq_dt.c

cpufreq_dt: Move the parsing of opp-microvolt in its own function

Move the code that reads the voltages of an OPP in
cpufreq_dt_oppv2_parse() to a new function, so the way the voltages
are found can be changed for some SoCs.

No functional change intended.

Reviewed by:    mmel
Differential Revision:  https://reviews.freebsd.org/D61696
DeltaFile
+42-26sys/dev/cpufreq/cpufreq_dt.c
+42-261 files

HardenedBSD/src 120b4a4 — sys/dev/cpufreq cpufreq_dt.c

cpufreq_dt: Do not count the OPP table nodes that have no opp-hz

The number of OPPs was the number of children of the OPP table, but
a child without opp-hz is skipped while parsing (opp-hz is a required
property) and the index was still incremented for it. The matching
entry of the array, which is not zeroed, was then left uninitialised
and used as a valid OPP.

Only count the nodes that have opp-hz so the number of entries
matches the ones that are parsed.

Fixes:  41a76289e601 ("cpufreq_dt: Add operating-points-v2 support")
Reviewed by:    mmel
Differential Revision:  https://reviews.freebsd.org/D61695
DeltaFile
+3-1sys/dev/cpufreq/cpufreq_dt.c
+3-11 files

HardenedBSD/src b219781 — sys/dev/cpufreq cpufreq_dt.c

cpufreq_dt: Read clock-latency-ns and convert latencies to microseconds

The operating-points-v2 binding names the per-OPP latency
"clock-latency-ns", but the parser looked for "clock-latency", so the
latency of every v2 OPP was reported as unknown.

The device tree gives the latencies in nanoseconds (this is also the
case for the "clock-latency" of operating-points v1) while the cpufreq
framework wants them in microseconds. Convert them, rounding up so a
non-zero latency never becomes 0.

Fixes:  41a76289e601 ("cpufreq_dt: Add operating-points-v2 support")
Fixes:  319336a943a5 ("Add generic device-tree cpufreq driver.")
Reviewed by:    mmel
Differential Revision:  https://reviews.freebsd.org/D61694
DeltaFile
+10-2sys/dev/cpufreq/cpufreq_dt.c
+10-21 files

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