HardenedBSD/src cf82558sys/riscv/include cpufunc.h, sys/riscv/riscv pmap.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+83-15sys/riscv/riscv/pmap.c
+7-0sys/riscv/include/cpufunc.h
+1-1sys/riscv/vmm/vmm_riscv.c
+91-163 files

HardenedBSD/ports d710956devel/py-cheetah3 Makefile, www/iridium distinfo Makefile.crates

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+337-3www/iridium/distinfo
+166-0www/iridium/Makefile.crates
+43-3www/iridium/Makefile
+0-20www/janus/files/patch-configure.ac
+12-5devel/py-cheetah3/Makefile
+7-7www/ungoogled-chromium/distinfo
+565-3827 files not shown
+660-10433 files

HardenedBSD/ports 1390aa0www/janus Makefile distinfo, www/janus/files patch-configure.ac

www/janus: update to 1.4.0.
DeltaFile
+0-20www/janus/files/patch-configure.ac
+4-4www/janus/Makefile
+3-3www/janus/distinfo
+1-0www/janus/pkg-plist
+8-274 files

HardenedBSD/ports ea1e8dbsysutils/nerdctl distinfo Makefile

sysutils/nerdctl: Update 2.2.0 => 2.2.1

Changelog:
https://github.com/containerd/nerdctl/releases/tag/v2.2.1

While here remove unnecessary MKDIR in post-install-DOCS-on.

PR:     293029
DeltaFile
+5-5sysutils/nerdctl/distinfo
+1-3sysutils/nerdctl/Makefile
+6-82 files

HardenedBSD/ports d3ca186ports-mgmt/pkg_replace distinfo Makefile

ports-mgmt/pkg_replace: Update 20260201 => 20260209

Changelog:
https://github.com/kdeguchi/pkg_replace/releases/tag/20260209

PR:     293055
DeltaFile
+3-3ports-mgmt/pkg_replace/distinfo
+1-1ports-mgmt/pkg_replace/Makefile
+4-42 files

HardenedBSD/src 32efafdsys/modules/ath10k Makefile

ath10k: modules Makefile bus attachments

Given USB in theory compiles add it to the Makefile.  The upstream
support was never finished and I see little chances it ever will be
so keep USB disabled by default.

MFC after:      3 days
DeltaFile
+12-0sys/modules/ath10k/Makefile
+12-01 files

HardenedBSD/src c45b60csys/contrib/dev/athk/ath10k pci.c core.c

ath10k: harmonize all MODULE_DEPEND to ath10k

With theoretically multiple bus attachements (unclear if we will ever
support anything but PCI) rename the module name to "ath10k" and use
it consistently.  Move the common depends to core.c and lindebugfs
and usb to their respective files.

MFC after:      3 days
DeltaFile
+0-9sys/contrib/dev/athk/ath10k/pci.c
+6-0sys/contrib/dev/athk/ath10k/core.c
+6-0sys/contrib/dev/athk/ath10k/debug.c
+3-0sys/contrib/dev/athk/ath10k/usb.c
+15-94 files

HardenedBSD/src ca83c36sys/contrib/dev/athk/ath10k usb.c

ath10k: usb: make compile using [a future] linuxkpi_usb

Make ath10k usb code compile just to gather more USB bits.

Currently (and likely forever) it is useless as the ath10k USB
implementation never got finished.
At the moment it lacks an entry for the USB bus attachment in
core.c ath10k_hw_params_list[].

ath10k_usb0 on uhub1
ath10k_usb0: <Qualcomm Atheros USBWLAN, rev 2.01/92.10, addr 6> on usbus0
ath10k_usb0: Warning: ath10k USB support is incomplete, don't expect anything to work!
ath10k_usb0: Unsupported hardware version: 0x5020001
ath10k_usb0: could not get hw params (-22)
ath10k_usb0: could not probe fw (-22)

There is another possible hardware [1] which was also never merged
upstream.
[1] https://lists.infradead.org/pipermail/ath10k/2024-August/016037.html

    [3 lines not shown]
DeltaFile
+22-0sys/contrib/dev/athk/ath10k/usb.c
+22-01 files

HardenedBSD/src db20376sys/contrib/dev/athk/ath10k mac.c htt_rx.c, sys/modules/ath10k Makefile

ath10k: cleanup some bits no longer FreeBSD-specific

We have since I did this port in 2023 added ACPI support to LinuxKPI, so
we can use it.  Also there is a linux/of.h header so we no longer need
to guard the #include.

MFC after:      3 days
DeltaFile
+1-35sys/contrib/dev/athk/ath10k/mac.c
+2-3sys/contrib/dev/athk/ath10k/htt_rx.c
+1-3sys/contrib/dev/athk/ath10k/core.c
+1-0sys/modules/ath10k/Makefile
+5-414 files

HardenedBSD/src 3139381sys/compat/linuxkpi/common/include/linux cleanup.h spinlock.h

LinuxKPI: add scoped_guard(), spinlock guard support

The "cleanup.h" implementation got a bit more complicated.

For one we now use a macro to concatenate a prefix, the name, and a
suffix for variable and function declarations.  This was triggered
by the fact that the "guard_" prefix we used was confusing.  We now
use a generic "cleanup_" which is only encoded in the single place
rather than all over the file.

As already indicated by the comment the DEFINE_LOCK_GUARD_0()
macro got split up and a _1 version which also takes a type got
implemented and is used for a spinlock variant used by rtw89(4)
via the new scoped_guard() bits.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D54808
DeltaFile
+103-32sys/compat/linuxkpi/common/include/linux/cleanup.h
+10-0sys/compat/linuxkpi/common/include/linux/spinlock.h
+113-322 files

HardenedBSD/src d3c4e89sys/contrib/dev/rtw88 rtw8812au.c rtw8814au.c

rtw88: set .bsddriver.name for USB chipsets

We use the FreeBSD-specifc bsddriver.name to get the device name;
set it everywere consistently.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D55020
DeltaFile
+3-0sys/contrib/dev/rtw88/rtw8812au.c
+3-0sys/contrib/dev/rtw88/rtw8814au.c
+3-0sys/contrib/dev/rtw88/rtw8821au.c
+1-1sys/contrib/dev/rtw88/rtw8821cu.c
+1-1sys/contrib/dev/rtw88/rtw8822bu.c
+1-1sys/contrib/dev/rtw88/rtw8822cu.c
+12-31 files not shown
+13-47 files

HardenedBSD/src 717240csys/contrib/dev/athk/ath10k fwlog.c

ath10k: add sysctl to turn on/off fwlog

FWLOG, if compiled in, was on by default without a way to stop it from
printing everything to the console.  Add a modparam to enable it with
it being disabled by default if available.

MFC after:      3 days
DeltaFile
+17-0sys/contrib/dev/athk/ath10k/fwlog.c
+17-01 files

HardenedBSD/src 6387c11sys/contrib/dev/athk/ath10k pci.c bmi.c

ath10k: fix a schedule() call

Using kern_yield does not seem ideal either for polling here;  use a
schedule_timeout() call from LinuxKPI instead and use about 100
iterations per second.

Improve an error message to include the error code so we have a better
idea of what happens.

MFC after:      3 days
DeltaFile
+5-2sys/contrib/dev/athk/ath10k/pci.c
+5-0sys/contrib/dev/athk/ath10k/bmi.c
+10-22 files

HardenedBSD/src 020ff5esys/compat/linuxkpi/common/include/linux mod_devicetable.h

LinuxKPI: mod_devicetable, add comment about [future] LinuxKPI USB

USB structures are defined with the native USB implementation.
Just leave a comment why they are not here.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    dumbbell
Differential Revision: https://reviews.freebsd.org/D54991
DeltaFile
+6-0sys/compat/linuxkpi/common/include/linux/mod_devicetable.h
+6-01 files

HardenedBSD/src 1f4fbcfsys/compat/linuxkpi/common/include/linux module.h pci.h

LinuxKPI: move MODULE_DEVICE_TABLE from pci.h to module.h

Move the MODULE_DEVICE_TABLE macro to module.h where it belongs
in preparation for different bus (e.g., USB, SDIO) support.
The various struct <bus>_device_id, if not elsewhere, should be
defined in mod_devicetable.h.

This is the next step after 2f5666c1727c.

No functional changes.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    emaste, dumbbell
Differential Revision: https://reviews.freebsd.org/D54900
DeltaFile
+18-0sys/compat/linuxkpi/common/include/linux/module.h
+0-18sys/compat/linuxkpi/common/include/linux/pci.h
+18-182 files

HardenedBSD/src 1f19fc2sys/compat/linuxkpi/common/src linux_pci.c

LinuxKPI: pci: make sure a tailq and lock are initialized

Move the initializations of the tailq and lock from
linux_pci_attach_device() into lkpifill_pci_dev() so that they are
initialized in all cases we create a device (see all the possible
callers of lkpifill_pci_dev()).

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    emaste, dumbbell
Differential Revision: https://reviews.freebsd.org/D54861
DeltaFile
+3-4sys/compat/linuxkpi/common/src/linux_pci.c
+3-41 files

HardenedBSD/ports 4beb486www/py-dj52-django-stubs-ext distinfo Makefile, www/py-dj52-django-stubs-ext/files patch-pyproject.toml

www/py-dj52-django-stubs-ext: Update to 5.2.9

- Fix error caused after uv upgrade.

Reported by:    pkg-fallout
DeltaFile
+11-0www/py-dj52-django-stubs-ext/files/patch-pyproject.toml
+3-3www/py-dj52-django-stubs-ext/distinfo
+1-1www/py-dj52-django-stubs-ext/Makefile
+15-43 files

HardenedBSD/ports f625ee8sysutils/py-rendercv Makefile, sysutils/py-rendercv/files patch-pyproject.toml

sysutils/py-rendercv: Fix error caused after uv upgrade

Reported by:    pkg-fallout
DeltaFile
+11-0sysutils/py-rendercv/files/patch-pyproject.toml
+1-0sysutils/py-rendercv/Makefile
+12-02 files

HardenedBSD/ports 36af974security/py-serpico pkg-plist distinfo

security/py-serpico: Update to 0.2.0

ChangeLog: https://github.com/DtxdF/serpico/releases/tag/v0.2.0
DeltaFile
+6-6security/py-serpico/pkg-plist
+3-3security/py-serpico/distinfo
+2-2security/py-serpico/Makefile
+11-113 files

HardenedBSD/src 840f478sys/net80211 ieee80211_freebsd.c

net80211: in net80211_vap_printf() also use vprintf()

While everything else uses vprintf() and net80211_vap_printf()
vlog() the debug output of wlandebug sessions can be weird.
For consistency use vprintf() everywhere to have homogeneous logging.

Sponosred by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    adrian
Differential Revision: https://reviews.freebsd.org/D54795
DeltaFile
+4-6sys/net80211/ieee80211_freebsd.c
+4-61 files

HardenedBSD/src b615b48sys/compat/linuxkpi/common/src linux_pci.c

LinuxKPI: expand dma_sync_single_for_cpu() in lkpi_dma_unmap()

In case lkpi_dma_unmap() would call dma_sync_single_for_cpu() we get
into a lock recursion which will trigger a panic with debug kernels.

It would be hard to provide an internal "locked" version for
dma_sync_single_for_cpu().  In the old days this would not have
been a problem but (long before we added the missing sync calls)
some locks got folded into one in a6619e8d9c1a3.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Observed with:  iwlwifi mld
Reviewed by:    dumbbell
Differential Revision:  https://reviews.freebsd.org/D54841
DeltaFile
+19-2sys/compat/linuxkpi/common/src/linux_pci.c
+19-21 files

HardenedBSD/ports 37e1f72devel/py-Js2Py Makefile distinfo

devel/py-Js2Py: Apply upstream patch for Python 3.12 support

Co-authored-by: Michael Osipov <michaelo at FreeBSD.org>
PR:             289085
MFH:            2026Q1
DeltaFile
+5-2devel/py-Js2Py/Makefile
+3-1devel/py-Js2Py/distinfo
+8-32 files

HardenedBSD/src a2eb089. UPDATING, sys/netinet6 nd6_rtr.c

sys/netinet6: switch net.inet6.ip6.use_stableaddr to on by default

This change switches to using RFC 7217 algorithm as the default to
generate SLAAC addresses for IPv6 interfaces configured with
accept_rtadv.

Reviewed by:            pouria, glebius, zlei
Approved by:            zlei
Relnotes:               yes
Differential Revision:  https://reviews.freebsd.org/D55138
DeltaFile
+9-0UPDATING
+1-1sys/netinet6/nd6_rtr.c
+10-12 files

HardenedBSD/src e912723sbin/ifconfig ifconfig.8

ifconfig.8: Start new sentence on new line

This change was forgotten by me in the previous commit to this file.

Reported by:    kib
Approved by:    implicit (change omitted from previous commit)
Fixes:          31ec8b6407fdd5a87d70265762457c67ce618283
DeltaFile
+2-1sbin/ifconfig/ifconfig.8
+2-11 files

HardenedBSD/ports 4159733www/iridium distinfo Makefile.crates, www/iridium/files patch-chrome_browser_ui_webui_settings_settings__localized__strings__provider.cc

www/iridium: update to 2026.02.144.3
DeltaFile
+337-3www/iridium/distinfo
+166-0www/iridium/Makefile.crates
+43-3www/iridium/Makefile
+2-2www/iridium/files/patch-chrome_browser_ui_webui_settings_settings__localized__strings__provider.cc
+548-84 files

HardenedBSD/ports ee7d4e6www/ungoogled-chromium distinfo Makefile, www/ungoogled-chromium/files patch-chrome_browser_ui_webui_settings_settings__localized__strings__provider.cc

www/ungoogled-chromium: update to 144.0.7559.132

Security:       https://vuxml.freebsd.org/freebsd/9bc5a730-0585-11f1-85c5-a8a1599412c6.html
DeltaFile
+7-7www/ungoogled-chromium/distinfo
+2-2www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_settings_settings__localized__strings__provider.cc
+1-1www/ungoogled-chromium/Makefile
+10-103 files

HardenedBSD/ports a03f26awww/chromium Makefile distinfo

www/chromium: use distfile directly instead of relying on devel/esbuild:patch

PR:     293064
DeltaFile
+5-5www/chromium/Makefile
+3-1www/chromium/distinfo
+8-62 files

HardenedBSD/ports 2e6d82edevel/py-cheetah3 Makefile distinfo, devel/py-cheetah3/files patch-tox.ini patch-SetupConfig.py

devel/py-cheetah3: Update to 3.4.0.post5

PR:             288781
Approved by:    FreeBSD at ShaneWare.Biz (maintainer)
MFH:            2026Q1
DeltaFile
+12-5devel/py-cheetah3/Makefile
+0-11devel/py-cheetah3/files/patch-tox.ini
+11-0devel/py-cheetah3/files/patch-SetupConfig.py
+3-3devel/py-cheetah3/distinfo
+26-194 files

HardenedBSD/src 1c9ca4c. ObsoleteFiles.inc

ObsoleteFiles.inc: remove stale allwinner pages

These were moved out of man/man4/arm into man/man4. Add entries to catch
the stale copies.

Fixes:  15c79c6fa608 ("man4: move allwinner pages and logic to a standard place")
DeltaFile
+8-0ObsoleteFiles.inc
+8-01 files

HardenedBSD/src 9c800a1. ObsoleteFiles.inc

ObsoleteFiles.inc: correct entry for zpfind.9.gz

It needs the .gz suffix.

Fixes:  2ace05b65a2c9 ("pfind(9): follow-up fixes and improvements")
DeltaFile
+1-1ObsoleteFiles.inc
+1-11 files