FreeBSD/src 975e360lib/geom/cache gcache.8, lib/geom/eli geli.8

geom manuals: Clarify units

The gpart manual says that sizes are specified in blocks, unless an SI
unit suffix is provided. This confuses new operators because GEOM uses
binary bytes, a large difference at modern storage pool sizes. Rewrite
suffixes in all GEOM manuals to consistently clarify this, matching what
we and the rest of the industry have been doing in other documentation.
While here, use non-breaking spaces between numbers and units, unless
they are already written with a hyphen.

MFC after:              3 days
Reviewed by:            fuz
Reported by:            bbaovanc <bbaovanc at bbaovanc.com>
Differential Revision:  https://reviews.freebsd.org/D56534
DeltaFile
+29-23lib/geom/part/gpart.8
+4-4sbin/ggate/ggatec/ggatec.8
+4-4lib/geom/eli/geli.8
+2-2sbin/ggate/ggated/ggated.8
+2-2lib/geom/cache/gcache.8
+41-355 files

FreeBSD/src 374548esys/fs/fuse fuse_vnops.c fuse_node.c

fusefs: better handling for low-memory conditions

Under conditions of low memory, getblk can fail.  fusefs was not
handling those failures very systematically.  It was always using
PCATCH, which appears to have been originally copy/pasted from the NFS
client code, but isn't always appropriate:

* During fuse_vnode_setsize_immediate, which can be called from many
  different VOPs and from the vn_delayed_setsize mechanism, remove
  PCATCH.  Some of these callers cannot tolerate allocate failure.

* In fuse_inval_buf_range, don't assume that getblk will always succeed.

* When calling fuse_inval_buf_range from VOP_ALLOCATE,
  VOP_COPY_FILE_RANGE, or VOP_WRITE (with IO_DIRECT), return EINTR if
  the allocation fails.

* When calling fuse_inval_buf_range from VOP_DEALLOCATE, remove PCATCH.
  This VOP must not fail with EINTR.

    [7 lines not shown]
DeltaFile
+17-7sys/fs/fuse/fuse_vnops.c
+1-5sys/fs/fuse/fuse_node.c
+18-122 files

FreeBSD/src c8c9324include stdbit.h, sys/sys stdint.h

include/stdbit.h: declare size_t, (u)int*_t, and (u)int_least*_t

These are required by ISO/IEC 9899:2024 § 7.18.1 ¶ 1 but were forgotten
in my initial work.

The current approach leaks intptr_t, uintptr_t, intmax_t, and uintmax_t
through <sys/_stdint.h>.  This could be avoided using a more complicated
approach if desired.

PR:             294131
Fixes:          6296500a85c8474e3ff3fe2f8e4a9d56dd0acd64
Reported by:    Collin Funk <collin.funk1 at gmail.com>
Reviewed by:    imp
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56515
DeltaFile
+21-1include/stdbit.h
+3-0sys/sys/stdint.h
+24-12 files

FreeBSD/src 1b8e5c0sys/amd64/amd64 mp_machdep.c

amd64: fix INVLPGB range invalidation

AMD64 Architecture Programmer's Manual Volume 3 says the following:

> ECX[15:0] contains a count of the number of sequential pages to
> invalidate in addition to the original virtual address, starting from
> the virtual address specified in rAX. A count of 0 invalidates a
> single page. ECX[31]=0 indicates to increment the virtual address at
> the 4K boundary. ECX[31]=1 indicates to increment the virtual address
> at the 2M boundary. The maximum count supported is reported in
> CPUID function 8000_0008h, EDX[15:0].

ECX[31] being what we call INVLPGB_2M_CNT, signaling to increment the
VA by 2M.

> This instruction invalidates the TLB entry or entries, regardless of
> the page size (4 Kbytes, 2 Mbytes, 4 Mbytes, or 1 Gbyte). [...]

Combined with this, my interpretation of the current code is: if

    [20 lines not shown]
DeltaFile
+6-19sys/amd64/amd64/mp_machdep.c
+6-191 files

FreeBSD/ports ad752f7graphics/fractgen distinfo Makefile

graphics/fractgen: Update 3.0.7 => 3.0.8

Changelog:
https://github.com/dreibh/fractgen/blob/fractgen-3.0.8/ChangeLog

Commit log:
https://github.com/dreibh/fractgen/compare/fractgen-3.0.7...fractgen-3.0.8

PR:             294670
Sponsored by:   UNIS Labs
DeltaFile
+3-3graphics/fractgen/distinfo
+1-1graphics/fractgen/Makefile
+4-42 files

FreeBSD/doc 4a8f0e9website/content/ru/copyright daemon.adoc

website/ru: Update copyright/daemon.adoc

Update to EN 989d921f5d4ac8d8b7c831c13b8954ad1901be24
DeltaFile
+12-8website/content/ru/copyright/daemon.adoc
+12-81 files

FreeBSD/ports ab13cadnet/td-system-tools pkg-plist distinfo

net/td-system-tools: Update 2.2.5 => 2.3.1

Changelog:
https://github.com/dreibh/system-tools/blob/td-system-tools-2.3.1/ChangeLog

Commit log:
https://github.com/dreibh/system-tools/compare/td-system-tools-2.2.5...td-system-tools-2.3.1

PR:             294671
Sponsored by:   UNIS Labs
DeltaFile
+11-0net/td-system-tools/pkg-plist
+3-3net/td-system-tools/distinfo
+1-1net/td-system-tools/Makefile
+15-43 files

FreeBSD/ports e4e11b9devel/p5-Module-Extract-Use distinfo Makefile

devel/p5-Module-Extract-Use: Update 1.054 => 1.055

Changelog:
https://metacpan.org/release/BRIANDFOY/Module-Extract-Use-1.055/source/Changes

PR:             294669
Sponsored by:   UNIS Labs
DeltaFile
+3-3devel/p5-Module-Extract-Use/distinfo
+2-1devel/p5-Module-Extract-Use/Makefile
+5-42 files

FreeBSD/ports 85cb5e2ports-mgmt/appstream-generator Makefile pkg-plist, ports-mgmt/appstream-generator/files poudriere-hook-bulk.sh

ports-mgmt/appstream-generator: Install the hook script into Poudriere hooks dir
DeltaFile
+28-11ports-mgmt/appstream-generator/files/poudriere-hook-bulk.sh
+4-2ports-mgmt/appstream-generator/Makefile
+1-1ports-mgmt/appstream-generator/pkg-plist
+33-143 files

FreeBSD/ports 124039bwww/hs-wai-app-static distinfo Makefile.cabal, www/hs-wai-app-static/files patch-wai-app-static.cabal

www/hs-wai-app-static: Fix the getSystemTimerManager call failure
DeltaFile
+25-39www/hs-wai-app-static/distinfo
+12-13www/hs-wai-app-static/Makefile.cabal
+10-0www/hs-wai-app-static/files/patch-wai-app-static.cabal
+1-0www/hs-wai-app-static/Makefile
+48-524 files

FreeBSD/src 324b3c2lib/libsys membarrier.2

membarrier.2: document MEMBARRIER_CMD_GET_REGISTRATIONS

Reviewed by:    markj, Ricardo Branco <rbranco at suse.com>
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56507
DeltaFile
+6-0lib/libsys/membarrier.2
+6-01 files

FreeBSD/src aaa1039sys/kern kern_membarrier.c, sys/sys membarrier.h

membarrier(2): implement the MEMBARRIER_CMD_GET_REGISTRATIONS command

Reported by:    Ricardo Branco <rbranco at suse.com>
Reviewed by:    markj, Ricardo Branco <rbranco at suse.com>
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56507
DeltaFile
+17-3sys/kern/kern_membarrier.c
+3-0sys/sys/membarrier.h
+20-32 files

FreeBSD/src 950fd59sys/kern kern_membarrier.c

membarrier(2): use atomic for lockless read of curproc->p_flag2

Reviewed by:    markj, Ricardo Branco <rbranco at suse.com>
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56507
DeltaFile
+7-6sys/kern/kern_membarrier.c
+7-61 files

FreeBSD/src 9b844b4libexec/rtld-elf rtld.c

rtld: fix processing of preloaded z_initfirst objects

After we found some preloaded z_initfirst object, we must process till
the end of the preload list still, not stopping on the first found
object.

Reported by:    des
Reviewed by:    des, markj, siderop1 at netapp.com
Fixes:  78aaab9f1cf359f3b7325e4369653f6b50593393
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56466
DeltaFile
+5-0libexec/rtld-elf/rtld.c
+5-01 files

FreeBSD/src 4b79ee8usr.sbin/ctld ctld.cc

ctld: Update nchildren directly in wait_for_children

This results in slightly less duplicated code.

Reviewed by:    asomers
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D56526
DeltaFile
+12-16usr.sbin/ctld/ctld.cc
+12-161 files

FreeBSD/src 7bb2b38usr.sbin/ctld ctld.cc ctld.hh

ctld: Support multiple physical ports in a target

PR:             293076
Reported by:    Ken J. Thomson <thomsonk at yandex.com>
Reviewed by:    asomers
Fixes:          969876fcee57 ("ctld: parse config file independently of getting kernel info")
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D55767
DeltaFile
+37-35usr.sbin/ctld/ctld.cc
+5-6usr.sbin/ctld/ctld.hh
+2-2usr.sbin/ctld/conf.cc
+1-1usr.sbin/ctld/parse.y
+1-1usr.sbin/ctld/conf.h
+1-1usr.sbin/ctld/uclparse.cc
+47-466 files

FreeBSD/src e56687busr.sbin/ctld ctld.cc

ctld: Return from the inner "main" loop on EINTR

This ensures that child processes are reaped in the outer loop in
main().

PR:             294035
Reviewed by:    asomers
Fixes:          66b107e82b2f ("ctld: Use kevent(2) for socket events rather than select(2)")
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D56525
DeltaFile
+1-1usr.sbin/ctld/ctld.cc
+1-11 files

FreeBSD/src 505f381sys/dev/cxgbe/nvmf nvmf_che.c

nvmf_che: Don't leak a socket if an error occurs finalizing the socket

If soreserve() or sosetopt() (to set TCP_NODELAY) fails after claiming
the socket from the file descriptor, explicitly close the socket
before returning failure.

Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D55493
DeltaFile
+1-0sys/dev/cxgbe/nvmf/nvmf_che.c
+1-01 files

FreeBSD/ports 040af08security/zeek distinfo Makefile

security/zeek: Update to 8.0.7

    https://github.com/zeek/zeek/releases/tag/v8.0.7

This release fixes the following potential DoS vulnerabilities:

 - A series of DNS messages containing long DNS compression chains
   can cause Zeek to spend a long time processing packets and
   potentially crash. Due to the fact that these packets can be
   received from remote hosts, this is a DoS risk.

 - A specially-crafted LDAP search request can cause Zeek to spend
   a long time processing the packet, resulting in Zeek silently
   dropping the LDAP analyzer for the connection. Due to the fact
   that these packets can be received from remote hosts, this is
   an evasion risk.

 - A specially-crafted series of ASN.1 messages in LDAP packets can
   cause Zeek to spend a long time processing the packets, resulting

    [25 lines not shown]
DeltaFile
+3-3security/zeek/distinfo
+1-2security/zeek/Makefile
+4-52 files

FreeBSD/ports 039d0a9security/vuxml/vuln 2026.xml

security/vuxml: Mark security/zeek < 8.0.7 as vulnerable as per:

    https://github.com/zeek/zeek/releases/tag/v8.0.7

This release fixes the following potential DoS vulnerabilities:

 - A series of DNS messages containing long DNS compression chains
   can cause Zeek to spend a long time processing packets and
   potentially crash. Due to the fact that these packets can be
   received from remote hosts, this is a DoS risk.

 - A specially-crafted LDAP search request can cause Zeek to spend
   a long time processing the packet, resulting in Zeek silently
   dropping the LDAP analyzer for the connection. Due to the fact
   that these packets can be received from remote hosts, this is
   an evasion risk.

 - A specially-crafted series of ASN.1 messages in LDAP packets can
   cause Zeek to spend a long time processing the packets, resulting

    [5 lines not shown]
DeltaFile
+40-0security/vuxml/vuln/2026.xml
+40-01 files

FreeBSD/ports d88b19bnet-mgmt/librenms distinfo Makefile, net-mgmt/librenms/files patch-resources_views_graphs_realtime.blade.php

net-mgmt/librenms: Update to 26.4.0

re: https://github.com/librenms/librenms/releases/tag/26.4.0

This release requires a database update.

Sponsored by:   Layla
DeltaFile
+5-5net-mgmt/librenms/distinfo
+0-8net-mgmt/librenms/files/patch-resources_views_graphs_realtime.blade.php
+2-3net-mgmt/librenms/Makefile
+7-163 files

FreeBSD/src f49f61fsys/net iflib.c

iflib: Add a missing CURVNET_RESTORE() in the error path

Signed-off-by:  Peter Ganzhorn <peter.ganzhorn at gmail.com>
Reviewed by:    zlei
Fixes:          6d49b41ee84b iflib: Add pfil hooks
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2150
DeltaFile
+3-1sys/net/iflib.c
+3-11 files

FreeBSD/src 0d16792lib/geom/part geom_part.c

geom_part: Restore the human readable format of size

Prior to the change 4f809ffec69c, the sizes are formated by
humanize_number(3) with the flag HN_DECIMAL, which displays the result
using one decimal place when it is less than 10. That is more accurate
and useful. Add equivalent field modifier hn-decimal to xo_emit() to
restore the previous behavior.

Reported by:    Mark Millard
Reviewed by:    js
Fixes:          4f809ffec69c gpart: add libxo support for "show" subcommand + man page updates
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56514
DeltaFile
+4-4lib/geom/part/geom_part.c
+4-41 files

FreeBSD/src ffad36esys/netpfil/pf pf.c

pf: Use MTX_DUPOK to initialize hash chain mutexes

pf_udp_mapping_insert() may lock more than one row at a time.

Fixes:          cd5ff4e841fb ("pf: use hashalloc(9) for key, id, src-node and udp-endpoint hashes")
Reviewed by:    kp
Differential Revision:  https://reviews.freebsd.org/D56501
DeltaFile
+1-0sys/netpfil/pf/pf.c
+1-01 files

FreeBSD/src 019a487sys/contrib/openzfs/cmd/zpool zpool_vdev.c

zfs: Fix the build on 32-bit platforms

Fixes:          d8fbbd371ca1 ("zfs: merge openzfs/zfs at 1644e2ffd")
Reported by:    Jenkins
DeltaFile
+1-1sys/contrib/openzfs/cmd/zpool/zpool_vdev.c
+1-11 files

FreeBSD/src 9592b08tests/sys/aio aio_test.c

tests/aio: Avoid skipping zvol tests

The underlying bugs which caused them to be flaky are now fixed.

PR:             258766
DeltaFile
+0-5tests/sys/aio/aio_test.c
+0-51 files

FreeBSD/ports fdf85dfsecurity/libressl Makefile distinfo

security/libressl: Update to 4.3.1
DeltaFile
+4-4security/libressl/Makefile
+3-3security/libressl/distinfo
+7-72 files

FreeBSD/ports 91b1033security/libressl-devel Makefile distinfo

security/libressl-devel: Update to 4.3.1
DeltaFile
+4-4security/libressl-devel/Makefile
+3-3security/libressl-devel/distinfo
+7-72 files

FreeBSD/ports 034cad2security/rustls-ffi pkg-plist

security/rustls-ffi: Fix plist issue
DeltaFile
+1-1security/rustls-ffi/pkg-plist
+1-11 files

FreeBSD/src c348c92lib/libsys ntp_adjtime.2

ntp_adjtime.2: Increase visibility

+ s/ntp/ntpd/ for correctness + apropos results in document description
+ silence a linter warning by escaping a period with a zero-width space

MFC after:      3 days

(cherry picked from commit b49b3ccd40bda02f530c679f23f42ba9e0e4b2e2)
DeltaFile
+3-3lib/libsys/ntp_adjtime.2
+3-31 files