HardenedBSD/src 59f7ac5sys/amd64/vmm/io ppt.c, sys/dev/acpica acpi.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+97-254sys/dev/qlnx/qlnxe/qlnx_os.c
+108-81sys/x86/cpufreq/hwpstate_amd.c
+111-51sys/amd64/vmm/io/ppt.c
+26-54usr.sbin/bhyve/pci_passthru.c
+21-20sys/dev/qlnx/qlnxe/ecore_l2.c
+31-4sys/dev/acpica/acpi.c
+394-46435 files not shown
+495-52341 files

HardenedBSD/src 3b7e046lib/libpmc/pmu-events/arch/x86/graniterapids uncore-cache.json uncore-interconnect.json

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+3,745-0lib/libpmc/pmu-events/arch/x86/graniterapids/uncore-cache.json
+1,979-0lib/libpmc/pmu-events/arch/x86/graniterapids/uncore-interconnect.json
+1,925-0lib/libpmc/pmu-events/arch/x86/graniterapids/uncore-io.json
+1,230-0lib/libpmc/pmu-events/arch/x86/graniterapids/cache.json
+1,145-0lib/libpmc/pmu-events/arch/x86/graniterapids/pipeline.json
+890-0lib/libpmc/pmu-events/arch/x86/graniterapids/uncore-memory.json
+10,914-010 files not shown
+12,550-016 files

HardenedBSD/ports 24b556cdevel/transient Makefile, graphics/satty distinfo Makefile.crates

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+215-277graphics/satty/distinfo
+107-138graphics/satty/Makefile.crates
+73-156x11-fonts/uw-ttyp0/pkg-plist
+45-2net/mosquitto/pkg-plist
+28-16devel/transient/Makefile
+21-6lang/gcc16-devel/files/patch-gcc_configure
+489-59548 files not shown
+675-69154 files

HardenedBSD/src f592357sys/kern uipc_socket.c

sockets: repair sctp_peeloff(2)

The shim function soattach() may be passed a non-listening socket by SCTP.

NB: the change makes soattach() more hairy, but long term plan is that
this function goes away.

PR:     293010
Fixes:  64f7e3c9c178ab35cb1f8fdf791aec74ede6f6b2
DeltaFile
+9-3sys/kern/uipc_socket.c
+9-31 files

HardenedBSD/ports 9eb294ex11/nvidia-kmod Makefile

x11/nvidia-kmod: Fix build with clang 21

PR:             292869
Reported by:    dim
Reviewed by:    ashafer
DeltaFile
+7-0x11/nvidia-kmod/Makefile
+7-01 files

HardenedBSD/ports ed93a8fnet-p2p/go-ethereum distinfo Makefile, net-p2p/go-ethereum/files patch-vendor_github.com_karalabe_hid_hid__enabled.go

net-p2p/go-ethereum: Update 1.12.2 => 1.16.8

The karalabe/hid vendored package was trying to include hidapi source
files that don't exist in the vendor directory. This patch modifies
the build to use FreeBSD's installed hidapi library instead.

Changes:
- Link against system libhidapi library.
- Use hidapi headers instead of including source.
- Add necessary C standard library headers for FreeBSD.

Changelogs:
https://github.com/ethereum/go-ethereum/releases/tag/v1.13.0
https://github.com/ethereum/go-ethereum/releases/tag/v1.13.1
https://github.com/ethereum/go-ethereum/releases/tag/v1.13.2
https://github.com/ethereum/go-ethereum/releases/tag/v1.13.3
https://github.com/ethereum/go-ethereum/releases/tag/v1.13.4
https://github.com/ethereum/go-ethereum/releases/tag/v1.13.5
https://github.com/ethereum/go-ethereum/releases/tag/v1.13.6

    [47 lines not shown]
DeltaFile
+23-0net-p2p/go-ethereum/files/patch-vendor_github.com_karalabe_hid_hid__enabled.go
+5-5net-p2p/go-ethereum/distinfo
+4-4net-p2p/go-ethereum/Makefile
+0-1net-p2p/go-ethereum/pkg-plist
+32-104 files

HardenedBSD/ports 9c4eea9net/mosquitto pkg-plist Makefile

net/mosquitto: Update pkg-plist

The PR reports that consumers of the client library were missing
include files.

PR:             293004
Reported by:    alexander at wittig.name
DeltaFile
+45-2net/mosquitto/pkg-plist
+1-0net/mosquitto/Makefile
+46-22 files

HardenedBSD/ports 00a8bc0x11-fonts/uw-ttyp0 pkg-plist Makefile, x11-fonts/uw-ttyp0/files patch-TARGETS__CONS__FREEBSD__VT.dat

x11-fonts/uw-ttyp0: Update 1.3 => 2.1, take maintainership

Changelog:
https://people.mpi-inf.mpg.de/~uwe/misc/uw-ttyp0/CHANGELOG.txt

Improve port:
- Replace PORTVERSION with DISTVERSION.
- Sort Makefile with portclippy.
- Enabled installation of FreeBSD console (vt) fonts.
- Fix MAKE_ARGS: use PREFIX=${PREFIX} instead of PREFIX=${LOCALBASE}.

PR:     292886
DeltaFile
+73-156x11-fonts/uw-ttyp0/pkg-plist
+10-7x11-fonts/uw-ttyp0/Makefile
+10-0x11-fonts/uw-ttyp0/files/patch-TARGETS__CONS__FREEBSD__VT.dat
+3-2x11-fonts/uw-ttyp0/distinfo
+96-1654 files

HardenedBSD/src 70256d2sys/dev/qlnx/qlnxe qlnx_os.c ecore_l2.c

qlnxe: Overhaul setting the multicast MAC filters

When operating the multicast MAC filters, the current usage of
ECORE_FILTER_ADD and ECORE_FILTER_REMOVE are rather misleading.
ECORE_FILTER_ADD reads "adding new filter", but it actually removes
any existing filters and then addes a new one. ECORE_FILTER_REMOVE
reads "removing a filter", but it actually removes all filters.
Let's use ECORE_FILTER_REPLACE and ECORE_FILTER_FLUSH instead to
avoid confusion.

In the current implementation, only one MAC address is passed to
ecore_sp_eth_filter_mcast() and any previously installed filters are
removed, hence it breaks the multicast function. That can be observed
via either assigning new IPv6 addresses to the interface or putting
the interface as a member of lagg(4) interface with LACP aggregation
protocol. Fix that by calculating the multicast filter bins directly
from multicast MAC addresses and replace the filters every time
the bins changes.


    [18 lines not shown]
DeltaFile
+37-153sys/dev/qlnx/qlnxe/qlnx_os.c
+21-20sys/dev/qlnx/qlnxe/ecore_l2.c
+3-8sys/dev/qlnx/qlnxe/ecore_vf.c
+4-5sys/dev/qlnx/qlnxe/ecore_l2_api.h
+1-4sys/dev/qlnx/qlnxe/qlnx_def.h
+66-1905 files

HardenedBSD/src 9686475sys/dev/qlnx/qlnxe qlnx_os.c

qlnxe: Allow tapping the TX packets

Currently only the packets in the RX path can be captured by tcpdump
as the ETHER_BPF_MTAP call in the TX path is missing. Add it so that
packets in both directions can be captured.

PR:             290973
Reviewed by:    kbowling
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D54891
DeltaFile
+1-0sys/dev/qlnx/qlnxe/qlnx_os.c
+1-01 files

HardenedBSD/src 45b1718sys/dev/qlnx/qlnxe qlnx_os.c qlnx_def.h

qlnxe: Refactor setting the promiscuous and allmulti mode

There are two entry points to set the promiscuous and allmulti mode.
One is ioctl, and another is the init routine. Given they share almost
the identical logic, refactor a little to make the code more clear.

While here, for the ioctl, translate the error to EINVAL to avoid
confusing the net stack.

Reviewed by:    kbowling
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D54890
DeltaFile
+38-46sys/dev/qlnx/qlnxe/qlnx_os.c
+0-1sys/dev/qlnx/qlnxe/qlnx_def.h
+38-472 files

HardenedBSD/src ec7950fsys/modules/qlnx/qlnxev Makefile

qlnxev: Remove now unneeded include for opt_inet.h

Since the change [1], this is not required anymore.

This change partially reverts commit 8a847947153e.

[1] 4012b63889e4 qlnxe: Let ether_ioctl() handle SIOCSIFADDR ioctl

Reviewed by:    kbowling
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D54889
DeltaFile
+0-1sys/modules/qlnx/qlnxev/Makefile
+0-11 files

HardenedBSD/src 4012b63sys/dev/qlnx/qlnxe qlnx_os.c, sys/modules/qlnx/qlnxe Makefile

qlnxe: Let ether_ioctl() handle SIOCSIFADDR ioctl

Since the change [1], the init routine qlnx_init() works as intended.
Let ether_ioctl() handle SIOCSIFADDR to simplify the code.

Combined with the change [1], this shall be a better fix for PR 287445.

[1] c10e6bc0f007 qlnxe: Avoid reinitializing the interface when it is already initialized

PR:             287445
Reviewed by:    kbowling
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D54888
DeltaFile
+0-25sys/dev/qlnx/qlnxe/qlnx_os.c
+0-1sys/modules/qlnx/qlnxe/Makefile
+0-262 files

HardenedBSD/ports ad7a878www/wt distinfo Makefile

www/wt: Uptate 4.12.1 => 4.12.2

Changelog:
https://www.webtoolkit.eu/wt/doc/reference/html/Releasenotes.html

While here sort *_DESC.

PR:     292947
DeltaFile
+3-3www/wt/distinfo
+2-2www/wt/Makefile
+1-0www/wt/pkg-plist
+6-53 files

HardenedBSD/src c10e6bcsys/dev/qlnx/qlnxe qlnx_os.c

qlnxe: Avoid reinitializing the interface when it is already initialized

qlnx_init_locked() unconditionally uninitialize the interface thus is
actually reinitializing the interface. Well the init routine qlnx_init()
is to initialize the interface by net stack when assigned with the first
inet or inet6 address. The ioctl SIOCSIFADDR for the first inet6 address
is handled by ether_ioctl() thus the interface is reinitialized no matter
it was initialized or not.

Add a driver status check for that to avoid reinitializing. Further plan
is removing SIOCSIFADDR ioctl from the driver and let ether_ioctl() handle
it.

Reviewed by:    kbowling
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D54887
DeltaFile
+2-1sys/dev/qlnx/qlnxe/qlnx_os.c
+2-11 files

HardenedBSD/src f250852sys/dev/qlnx/qlnxe qlnx_os.c

qlnxe: Fix setting the unicast MAC filter of RX path

When an Ethernet interface is added to lagg(4) as a child interface, its
type, aka if_type, is changed from IFT_ETHER to IFT_IEEE8023ADLAG. Well
changing the link-layer address of the lagg(4) interface will be
propagated to all child interfaces, hence the drivers of child interfaces
shall not presume the type of the interface will not be changed.

Meanwhile, on initializing, an ifnet has been fully attached and it is
guaranteed to have non-null link-layer address so stop NULL checking for
it.

Reviewed by:    kbowling
Fixes:          792226e53023 qlnxe: Allow MAC address override
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D54885
DeltaFile
+3-13sys/dev/qlnx/qlnxe/qlnx_os.c
+3-131 files

HardenedBSD/src 4ac3081sys/dev/qlnx/qlnxe qlnx_os.c

qlnxe: Remove a pointless copy back from the link-layer address

On ifnet attaching, ether_ifattach() makes the link-layer address by
shadow copying the ha->primary_mac. Well, the link-layer address will
not be altered during attaching, thus it is pointless to copy it back.

No functional change intended.

Reviewed by:    kbowling
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D54883
DeltaFile
+0-2sys/dev/qlnx/qlnxe/qlnx_os.c
+0-21 files

HardenedBSD/src 0df8a99sys/dev/qlnx/qlnxe qlnx_os.c

qlnxe: Prevent potential concurrency between ioctls

The driver-managed status flags should be lock protected to be touched.
Also this can serialize ioctls those check the IFF_DRV_RUNNING status.

Reviewed by:    kbowling
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D54886
DeltaFile
+9-8sys/dev/qlnx/qlnxe/qlnx_os.c
+9-81 files

HardenedBSD/src 3aeeedcsys/dev/qlnx/qlnxe qlnx_os.c qlnx_def.h

qlnxe: Avoid memcpy with same source and destination

In case the device is VF, qlnx_get_mac_addr() returns ha->primary_mac
hence it ends up memcpy with same source and destination. Refactor
slightly to avoid that.

Reviewed by:    kbowling
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D54884
DeltaFile
+7-6sys/dev/qlnx/qlnxe/qlnx_os.c
+0-1sys/dev/qlnx/qlnxe/qlnx_def.h
+7-72 files

HardenedBSD/ports fed70fedevel/transient Makefile distinfo

devel/transient: Update 0.11.0 => 0.12.0, take maintainership, improve port

Changelog:
https://github.com/magit/transient/blob/v0.12.0/CHANGELOG

Improve port:
- Add option INFO.
- DOCS, INFO and PDF build-depend on GNU sed.
- Fix build with DOCS off.
- BUILD_DEPENDS==RUN_DEPENDS => move dependencies to _BR_DEPENDS and use:
    BUILD_DEPENDS=_BR_DEPENDS
    RUN_DEPENDS=_BR_DEPENDS
- Move makeinfo from USES to DOCS_USES.
- Split long line MAKE_ENV and remove "+".
- Move pkg-plist to PLIST_FILES in Makefile - 3 files in list only.
- Remove CONFLICTS_INSTALL=transient-devel-emacs* -
  devel/transient-devel remove from tree 2025-09-01.

PR:             292945
Co-authored-by: Vladimir Druzenko <vvd at FreeBSD.org>
DeltaFile
+28-16devel/transient/Makefile
+3-3devel/transient/distinfo
+0-3devel/transient/pkg-plist
+31-223 files

HardenedBSD/ports 1755149lang/gcc16-devel distinfo Makefile, lang/gcc16-devel/files patch-gcc_configure

lang/gcc16-devel: Update to 16.0.1.s20260201

Also introduces a fix for upstream bug
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123366, authored by
Mark Millard <marklmi at yahoo.com>.

Co-authored-by: Mark Millard <marklmi at yahoo.com>
DeltaFile
+21-6lang/gcc16-devel/files/patch-gcc_configure
+3-3lang/gcc16-devel/distinfo
+1-1lang/gcc16-devel/Makefile
+25-103 files

HardenedBSD/ports a61409bwww/py-limits distinfo Makefile

www/py-limits: update to 5.8.0

Changes:        https://github.com/alisaifee/limits/releases/tag/5.8.0
DeltaFile
+3-3www/py-limits/distinfo
+1-1www/py-limits/Makefile
+4-42 files

HardenedBSD/src 0f74714sys/x86/cpufreq hwpstate_amd.c

hwpstate_amd(4): attach(): Fix style

No functional change intended.

Reviewed by:    aokblast, emaste
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D55003
DeltaFile
+2-2sys/x86/cpufreq/hwpstate_amd.c
+2-21 files

HardenedBSD/src 7bc7692sys/x86/cpufreq hwpstate_amd.c

hwpstate_amd(4): Revamp the softc

As the new CPPC and old P-states modes are exclusive, put their
respective data in a union.

Rename the field containing the content of the CPPC_REQUEST register.
It it now to be accessed using 'cppc.request'.

Use an 'unsigned int' instead of 'uint32_t' for 'flags'.  This is an
internal field whose width could be changed at will.  We only have one
flag at the moment.

No functional change intended.

Reviewed by:    aokblast
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D55004
DeltaFile
+22-15sys/x86/cpufreq/hwpstate_amd.c
+22-151 files

HardenedBSD/src fa0512fsys/x86/cpufreq hwpstate_amd.c

hwpstate_amd(4): Assert PSTATE_CPPC is on in corresponding sysctl handlers

No functional change intended.

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D55001
DeltaFile
+12-3sys/x86/cpufreq/hwpstate_amd.c
+12-31 files

HardenedBSD/src 461bac0sys/x86/cpufreq hwpstate_amd.c

hwpstate_amd(4): Rename EPP handler, convert to unsigned int

'val' is supposed to be the storage for a sysctl knob of an 'unsigned
int', so consistently don't specify its width.

While here, rename variables in the handler.  The new names feel
clearer, and the 'ret' => 'error' rename is to be more in line with our
tradition.

No functional change intended.

Reviewed by:    aokblast
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D55002
DeltaFile
+15-17sys/x86/cpufreq/hwpstate_amd.c
+15-171 files

HardenedBSD/src e938d57sys/x86/cpufreq hwpstate_amd.c

hwpstate_amd(4): Rename register dump sysctl handler

While here, rename the callback function and structure to a more
immediately informative name.

While here, remove a superfluous cast and rename the variable containing
the callback data to just 'data' instead of 'req' which can be confusing
(because of CPPC_REQUEST but also the fact that 'req' is a parameter of
sysctl handlers).

No functional change intended.

Reviewed by:    aokblast
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D55000
DeltaFile
+12-13sys/x86/cpufreq/hwpstate_amd.c
+12-131 files

HardenedBSD/src 73c9d84sys/x86/cpufreq hwpstate_amd.c

hwpstate_amd(4): Factor out printing CPPC registers, fix CPPC_REQUEST's

Factor out these printing, so they can be called from other places than
just the register dump handler.  This also makes surrounding code
clearer.

Fix inverted printing of minimum and maximum performance.

For better diagnostic, print the full raw content of each register
before printing the value of fields we know about.

As fields are printed in decimal, remove 0-padding, which could give the
impression that the numbers are printed in octal or hexadecimal.

While here, remove superfluous blank lines when printing (we use TABs
for the different registers' fields).

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D54999
DeltaFile
+43-22sys/x86/cpufreq/hwpstate_amd.c
+43-221 files

HardenedBSD/src 8043295sys/conf files.x86, sys/modules/cpufreq Makefile

hwpstate{_amd,intel}(4): Move common knobs to a separate file

Reason for doing this right now is to resolve the conflict on
'machdep.hwpstate_pkg_ctrl' between the Intel and AMD drivers, even
though I expect to remove it for hwpstate_amd(4) at some point.

More generally, this is going to be useful for some future code
factorization.  Also, the 'debug.hwpstate_verbose' knob was moved there,
as we'll likely want to use it for the Intel driver as well (which is
currently not the case).

Note for MFC: Will be partial, since `hwpstate_amd(4)` does not support
CPPC in stable/15 nor stable/14.

Reviewed by:    emaste
Fixes:          3e6e4e4a0d42 ("hwpstate: add CPPC support for pstate driver on AMD")
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D54528
DeltaFile
+22-0sys/x86/cpufreq/hwpstate_common.c
+13-0sys/x86/cpufreq/hwpstate_common.h
+2-9sys/x86/cpufreq/hwpstate_amd.c
+1-5sys/x86/cpufreq/hwpstate_intel.c
+2-1sys/modules/cpufreq/Makefile
+1-0sys/conf/files.x86
+41-156 files

HardenedBSD/src 1a446f7sys/sys sysctl.h

sys/sysctl.h: Make it self-contained when included from the kernel

MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
DeltaFile
+2-1sys/sys/sysctl.h
+2-11 files