FreeBSD/src 69141e7 — usr.sbin/bhyve ipc.c

bhyve: disable SIGPIPE for IPC connections

Currently, if an IPC client (e.g. bhyvectl --get-vm-pid) exits
before reading the response, the VM crashes with SIGPIPE.
Set SO_NOSIGPIPE on a socket to prevent that.

While here, update other error paths in init_ipc_thread()
to return -1 on error instead of an error number to make error
handling consistent.

Reviewed by:    markj
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D62000
DeltaFile
+12-4usr.sbin/bhyve/ipc.c
+12-41 files

FreeBSD/src 75599b3 — sys/netpfil/pf pf_ioctl.c

pf: fix unlocked anchor access in DIOCGETETHRULESET

We accessed anchor->name and ruleset->anchor->path outside of the rules lock.
Extend the lock coverage.

Reported by:    llm-postcr
Fixes:          e732e742b37f ("pf: Initial Ethernet level filtering code")
Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+2-1sys/netpfil/pf/pf_ioctl.c
+2-11 files

FreeBSD/src c514361 — sys/netpfil/pf pf_ioctl.c

pf: fix memory leak on failure in DIOCADDETHRULE

If we fail pf_nveth_rule_to_keth_rule() we jumped to
DIOCADDETHRULE_error, which doesn't free the rule.
Free the rule directly, because pf_free_eth_rule() expects the rules
lock to be held, and at this point we've only allocated the rule itself,
not any of the child objects.

Reported by:    llm-postcr
Fixes:          e732e742b37f ("pf: Initial Ethernet level filtering code")
Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+3-1sys/netpfil/pf/pf_ioctl.c
+3-11 files

FreeBSD/src dde37e7 — sys/netpfil/pf pf_ioctl.c

pf: fix NULL dereference on failure in DIOCADDETHRULE

If the ticket or anchor check in DIOCADDETHRULE fails
we pf_free_eth_rule() on a struct pf_keth_rule with NULL
ipsrc.addr.p.tbl/ipdst.addr.p.tbl. That ends up dereferencing that NULL
pointer.

Teach pf_free_eth_rule() to check for NULL in those fields so it's safe
to free a rule we're in the process of creating.

Reported by:    llm-postcr
Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+8-4sys/netpfil/pf/pf_ioctl.c
+8-41 files

FreeBSD/src 653c5d3 — usr.sbin/bhyve pci_emul.c

bhyve: fix bootorder for PCI slots >= 10

Currently, bhyve writes slots as decimals. Firmware such as EDK2
interprets them as hexadecimals, so slot 10 becomes 16, breaking
the configured boot order.

Reviewed by:    markj
Fixes:          6632a0a4e3ab ("bhyve: add helper to create a bootorder")
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D61997
DeltaFile
+1-1usr.sbin/bhyve/pci_emul.c
+1-11 files

FreeBSD/doc d74ce7a — website/content/en/cgi man.cgi

man.cgi: fix some HTML errors
DeltaFile
+4-3website/content/en/cgi/man.cgi
+4-31 files

FreeBSD/ports 7db7103 — benchmarks/netperfmeter Makefile distinfo

benchmarks/netperfmeter: Update 2.0.16 => 2.0.18

Changelog:
https://github.com/dreibh/netperfmeter/blob/netperfmeter-2.0.18/ChangeLog

Commit log:
https://github.com/dreibh/netperfmeter/compare/netperfmeter-2.0.16...netperfmeter-2.0.18

PR:     301148
DeltaFile
+3-3benchmarks/netperfmeter/distinfo
+1-1benchmarks/netperfmeter/Makefile
+4-42 files

FreeBSD/ports 75bdaab — databases/qdrant distinfo Makefile

databases/qdrant: fix build on powerpc64*

The 1.20.1 update dropped the patches from qdrant PR #11321, which is
still open, so the build fails again in lib/quantization/build.rs.
Bring them back. The telemetry fix and the sysinfo patch stay gone,
1.20.1 and sysinfo 0.40.1 have them.
DeltaFile
+5-1databases/qdrant/distinfo
+6-0databases/qdrant/Makefile
+11-12 files

FreeBSD/ports a81ecfa — math/sdpa/files patch-mumps_Makefile

math/sdpa: fix build with CPUTYPE

The bundled MUMPS reads the compiler flags with cut -f2 -d=, which stops
at the next '='. With CPUTYPE=power9 it ends up calling cc with a bare
-mcpu. Use cut -f2- like etc/Makefile already does.

Approved by:    portmgr (blanket)
DeltaFile
+3-3math/sdpa/files/patch-mumps_Makefile
+3-31 files

FreeBSD/ports 58403c8 — biology/bifrost Makefile

biology/bifrost: fix build with CPUTYPE

COMPILATION_ARCH ends up as -march=, so the build breaks when CPUTYPE
isn't a valid -march value, like power9 on powerpc64le. CPUTYPE is
already in CFLAGS through bsd.cpu.mk, so just turn it off.
DeltaFile
+1-1biology/bifrost/Makefile
+1-11 files

FreeBSD/ports ccddaa1 — net/stu/files patch-cargo-crates_aws-lc-sys-0.27.1_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c

net/stu: fix build on powerpc64le

The bundled aws-lc-sys calls getauxval(), which FreeBSD doesn't have.
Backport aws-lc commit 2d68e783e3f8, which uses elf_aux_info() instead.
DeltaFile
+16-0net/stu/files/patch-cargo-crates_aws-lc-sys-0.27.1_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c
+16-01 files

FreeBSD/ports b28a09b — security/snort3 pkg-plist

security/snort3: fix plist without HYPERSCAN

The 3.13.2.0 update lost the %%HYPERSCAN%% markers on the hyper_* headers.
They are only installed with Hyperscan, so packaging fails when the option
is off, which is the default everywhere except amd64.

Fixes:  eaab43165ef2 ("security/snort3: Update version 3.12.4.0=>3.13.2.0")
DeltaFile
+2-2security/snort3/pkg-plist
+2-21 files

FreeBSD/ports d846eb7 — devel/libunwind-devel distinfo Makefile

devel/libunwind-devel: fix build on powerpc64*

Pull in the upstream fixes for the ppc64 build and for unwinding from
core files, which didn't work on FreeBSD at all. Coredump support now
builds on powerpc64* too, only powerpc keeps it disabled.

Approved by:    portmgr (blanket)
DeltaFile
+7-1devel/libunwind-devel/distinfo
+7-1devel/libunwind-devel/Makefile
+14-22 files

FreeBSD/ports d861ab6 — games/anki distinfo Makefile

games/anki: fix build on powerpc64le

Since 92401c33b734 the node modules archive has the architecture in its
name, so the one for powerpc64le is missing from distinfo. It's the same
file as the amd64 one, so add it under its own name.

Approved by:    portmgr (blanket)
DeltaFile
+4-3games/anki/Makefile
+2-0games/anki/distinfo
+6-32 files

FreeBSD/ports f02d11e — net-im/tuwunel distinfo Makefile, net-im/tuwunel/files patch-rust-rocksdb_librocksdb-sys_rocksdb_utilities_fault__injection__fs.h

net-im/tuwunel: enable on powerpc64*

tuwunel sizes its database thread pool by the number of CPUs and fails to
start when that goes over FreeBSD's per-process thread limit, which
happens on bigger machines, amd64 included. Cap it at
kern.threads.max_threads_per_proc. Also drop a little-endian assert from a
rocksdb test helper that breaks the build on powerpc64.

Approved by:    portmgr (blanket)
DeltaFile
+11-0net-im/tuwunel/files/patch-rust-rocksdb_librocksdb-sys_rocksdb_utilities_fault__injection__fs.h
+5-1net-im/tuwunel/Makefile
+3-1net-im/tuwunel/distinfo
+19-23 files

FreeBSD/ports b93b9aa — devel/llvm20/files patch-llvm_lib_CodeGen_SelectionDAG_LegalizeTypes.h patch-llvm_lib_CodeGen_SelectionDAG_LegalizeFloatTypes.cpp

devel/llvm20: backport fix for crashes on half freeze

LLVM 20 aborts with "Do not know how to promote this operator's result!"
when it has to promote a freeze of a half value, which happens on targets
without native half support like powerpc64. Julia's Float16 code runs
into it.

Approved by:    portmgr (blanket)
Obtained from:  https://github.com/llvm/llvm-project/commit/5b6b4fdb4b07e1d0d9a647f40a30d47f26178e09
DeltaFile
+32-0devel/llvm20/files/patch-llvm_lib_CodeGen_SelectionDAG_LegalizeFloatTypes.cpp
+13-0devel/llvm20/files/patch-llvm_lib_CodeGen_SelectionDAG_LegalizeTypes.h
+45-02 files

FreeBSD/doc 7cec909 — website/content/en/cgi man.cgi

man.cgi: fix CSS in case if nothing was found
DeltaFile
+2-1website/content/en/cgi/man.cgi
+2-11 files

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

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

mmc_host_timing() allows HS400ES only if the host supports HS400 at
both 1.2 V and 1.8 V.  A host with only 1.8 V I/O, such as the Zhihe
A210, gets plain HS400 instead, which needs tuning in HS200 first.

Accept HS400 at either voltage, as the plain HS400 check does, and use
the same rule in the sdhci capability printout.

Signed-off-by:  Han Gao <gaohan at iscas.ac.cn>
Reviewed by:    imp
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2523
DeltaFile
+2-4sys/dev/sdhci/sdhci.c
+3-2sys/dev/mmc/mmc.c
+5-62 files

FreeBSD/src c0ca537 — sys/riscv/include cpu.h, sys/riscv/riscv identcpu.c

riscv: Add the T-Head C908 and C920v2 marchid values

Older T-Head cores report a zero marchid, but the C908 and C920v2 have
their own: 0x8000000009140d00 and 0x80000000090c0d00, as read on the
Zhihe A210, whose firmware also uses them to tell its two clusters
apart.  Add them so that these cores are named instead of "Unknown".

Signed-off-by:  Han Gao <gaohan at iscas.ac.cn>
Reviewed by:    mhorne
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2584
DeltaFile
+7-1sys/riscv/riscv/identcpu.c
+4-0sys/riscv/include/cpu.h
+11-12 files

FreeBSD/src a644aba — sys/riscv/riscv locore.S

riscv: Fence after enabling the MMU in locore

Writing satp doesn't flush cached translations. If the kernel is entered
with translation already on, the hart may keep using the firmware's
mappings after locore switches page tables if they share an ASID.

Add an sfence.vma after each satp write in locore.

Signed-off-by:  Han Gao <gaohan at iscas.ac.cn>
Reviewed by:    mhorne
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2522
DeltaFile
+3-0sys/riscv/riscv/locore.S
+3-01 files

FreeBSD/src 608eb81 — sys/riscv/riscv locore.S identcpu.c

riscv: Apply the T-HEAD errata only to early cores

The XTheadMae page attributes and the vendor cache operations are needed
by the early T-HEAD cores (C906, C910, C920), which report zero marchid
and mimpid. Later cores such as the C908 and C920v2 report non-zero
values and implement the standard Svpbmt and Zicbom extensions instead.
Setting the T-HEAD memory attribute bits there makes the early page
tables use reserved PBMT encodings.

Check marchid and mimpid before applying the quirks, both in
handle_thead_quirks() and in the early PTE setup in locore.

Signed-off-by:  Han Gao <gaohan at iscas.ac.cn>
Reviewed by:    mhorne
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2522
DeltaFile
+7-6sys/riscv/riscv/identcpu.c
+5-0sys/riscv/riscv/locore.S
+12-62 files

FreeBSD/ports 9357532 — x11-wm/mango pkg-plist Makefile

x11-wm/mango: Update to 0.19.2

ChangeLog:

1. https://github.com/mangowm/mango/releases/tag/0.19.0
2. https://github.com/mangowm/mango/releases/tag/0.19.1
3. https://github.com/mangowm/mango/releases/tag/0.19.2

Reported by:    "DreamMaoMao" <notifications at github.com>
DeltaFile
+3-3x11-wm/mango/distinfo
+1-1x11-wm/mango/Makefile
+1-0x11-wm/mango/pkg-plist
+5-43 files

FreeBSD/src fbb1b88 — usr.sbin/bhyve bhyve_config.5 bhyve.8

bhyve: Reinitialise swtpm's TPM at startup

bhyve does not currently reinitialise swtpm on startup, which results in
PCRs being carried over across reboots. This means that any guest VM
implementing measured boot controls, such as Windows with BitLocker and
Secure Boot enabled, will consider the system compromised and refuse to
start or ask for a recovery key.

swtpm has a control channel that allows us to send commands for that
purpose: CMD_INIT shuts the TPM down and starts it again clearing the
PCRs in the process, like a cold boot on real hardware.

Connect a second socket when the new ctrl_path option is set and send
CMD_INIT there. Without the option nothing changes.

MFC after:      2 weeks
Sponsored by:   Defenso
Signed-off-by:  Quentin Thébault <quentin.thebault at defenso.fr>
Reviewed by:    kevans, novel
Differential Revision:  https://reviews.freebsd.org/D59322
DeltaFile
+126-7usr.sbin/bhyve/tpm_emul_swtpm.c
+18-0usr.sbin/bhyve/bhyve.8
+7-1usr.sbin/bhyve/bhyve_config.5
+151-83 files

FreeBSD/ports 6656780 — comms/serialoverip Makefile

comms/serialoverip: Deprecate/Set to expire

It hasn't been touched from upstream in 24 years.

PR:     300374
MFH:    2026Q4
(cherry picked from commit 6ab969be0860fc3f76d68b4374cecb601cd7d613)
DeltaFile
+4-0comms/serialoverip/Makefile
+4-01 files

FreeBSD/ports 6ab969b — comms/serialoverip Makefile

comms/serialoverip: Deprecate/Set to expire

It hasn't been touched from upstream in 24 years.

PR:     300374
MFH:    2026Q4
DeltaFile
+4-0comms/serialoverip/Makefile
+4-01 files

FreeBSD/ports 53be662 — www/matomo Makefile distinfo

www/matomo: Update 5.11.2 => 6.0.0

Matomo 6.0.0 is the first major release since December 2023.
It modernises the platform with PHP 8.1, MySQL 8 and a rebuilt
front-end toolchain. It also builds spam and bot filtering into
Matomo, introduces completely redrawn visitor maps, and applies
the new design system to dropdowns, search fields and report headers.

These versions have Breaking Changes:
5.13.0, 5.14.0, 5.14.1, 5.14.2, 6.0.0

No notes about database upgrade until it comes to the major version.

This release adds a consent column to the log_visit table in preparation
for consent tracking. The update runs an ALTER TABLE operation, which
may take time on installations with a large visits log.

The database upgrade also creates the log_page_view_time table to store
one row per page view. On large installations, creating this table and

    [18 lines not shown]
DeltaFile
+937-234www/matomo/pkg-plist
+3-3www/matomo/distinfo
+1-2www/matomo/Makefile
+941-2393 files

FreeBSD/ports 775ef1f — www/matomo Makefile distinfo

www/matomo: Update 5.11.2 => 6.0.0

Matomo 6.0.0 is the first major release since December 2023.
It modernises the platform with PHP 8.1, MySQL 8 and a rebuilt
front-end toolchain. It also builds spam and bot filtering into
Matomo, introduces completely redrawn visitor maps, and applies
the new design system to dropdowns, search fields and report headers.

These versions have Breaking Changes:
5.13.0, 5.14.0, 5.14.1, 5.14.2, 6.0.0

No notes about database upgrade until it comes to the major version.

This release adds a consent column to the log_visit table in preparation
for consent tracking. The update runs an ALTER TABLE operation, which
may take time on installations with a large visits log.

The database upgrade also creates the log_page_view_time table to store
one row per page view. On large installations, creating this table and

    [17 lines not shown]
DeltaFile
+937-234www/matomo/pkg-plist
+3-3www/matomo/distinfo
+1-2www/matomo/Makefile
+941-2393 files

FreeBSD/ports 6e44eec — math Makefile, math/dragonbox distinfo pkg-descr

math/dragonbox: [NEW PORT] Floating-point binary-to-decimal conversion library

Dragonbox is a float-to-string conversion algorithm, producing the
shortest decimal representation of a binary floating-point number
which still rounds back to it.  A number of ports bundle a copy of
it in their sources; this port lets them use a single shared one.

The upstream build only makes a static dragonbox_to_chars; patch
it to honor BUILD_SHARED_LIBS and to give the library a SOVERSION
-- idea from NetBSD/pkgsrc.

WWW:    https://github.com/jk-jeon/dragonbox

Co-Authored-By: Claude Opus 5.5 (effort medium)
PR:             300885
DeltaFile
+36-0math/dragonbox/files/patch-CMakeLists.txt
+26-0math/dragonbox/Makefile
+9-0math/dragonbox/pkg-plist
+8-0math/dragonbox/pkg-descr
+3-0math/dragonbox/distinfo
+1-0math/Makefile
+83-06 files

FreeBSD/src 6805375 — sys/netpfil/ipfw ip_dummynet.c, tests/sys/netpfil/common dummynet.sh

dummynet: copy only the user-visible scheduler in copy_obj()

For a DN_SCH object copy_obj() writes the whole struct dn_schk (192
bytes on amd64) into the listing buffer, but checks and advances by
o.len, which is sizeof(struct dn_sch) (92 bytes).  The extra bytes,
kernel pointers included, overrun the buffer when the scheduler is
near its end.  "ipfw pipe show" or "dnctl pipe show" is enough, from
the host or from a VNET jail; KASAN reports a 192-byte write in
copy_obj().

Keep only a struct dn_sch in the local copy, which is what the code
wrote before 0ac43d9728a7, and read siht from the struct dn_schk that
contains it.  Add a test that lists pipes and schedulers from a VNET
jail.

PR:             224485
Reported by:    david at catwhisker.org
Reviewed by:    kp
Fixes:          0ac43d9728a7 ("In dummynet(4), random chunks of memory are casted to struct dn_*,")

    [3 lines not shown]
DeltaFile
+27-0tests/sys/netpfil/common/dummynet.sh
+6-4sys/netpfil/ipfw/ip_dummynet.c
+33-42 files

FreeBSD/src b76b052 — lib/libc/stdlib tsearch.3

tdelete(3): Document return value when deleting root node

tsearch.3 said that tdelete() returns a pointer to the parent of the
deleted node, but the root has no parent.  In that case, tdelete()
returns an unspecified non-NULL pointer (currently (void *)1) which must
not be dereferenced.  Document this.

Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D61969
DeltaFile
+7-2lib/libc/stdlib/tsearch.3
+7-21 files