FreeBSD/src 476a063share/colldef_unicode zh_CN.UTF-8.src ko_KR.UTF-8.src, share/ctypedef C.UTF-8.src

locale: make install Unicode 17.0.0/CLDR 48

Unicode 17.0 adds 4803 characters, for a total of 159,801 characters.
The new additions include 4 new scripts:

- Sidetic
- Tolong Siki
- Beria Erfe
- Tai Yo

https://www.unicode.org/versions/Unicode17.0.0/
(cherry picked from commit 2cfd9fe87b90eddb9d0b3df3459d923092c491fb)
DeltaFile
+42,569-43,804share/colldef_unicode/zh_CN.UTF-8.src
+20,031-20,027share/colldef_unicode/ko_KR.UTF-8.src
+8,521-8,521share/colldef_unicode/ja_JP.UTF-8.src
+9,988-0tools/tools/locale/etc/final-maps/map.UTF-8
+5,765-6share/ctypedef/C.UTF-8.src
+2,842-2,827share/colldef_unicode/hu_HU.UTF-8.src
+89,716-75,18545 files not shown
+152,537-137,46151 files

FreeBSD/src e148f05tools/tools/locale Makefile

locale: Update Unicode to CLDR 48

Reviewed by:    bapt
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53983

(cherry picked from commit d20da5c9736c3d93fc96e5e1c4dc40bed47bc419)
DeltaFile
+1-1tools/tools/locale/Makefile
+1-11 files

FreeBSD/src 6e2164btools/tools/locale Makefile

locale: Update to UCD 17.0.0

Starting with Unicode 17.0.0, the zipped versions of the data files are
only published in https://www.unicode.org/Public/<version>/ucd/

https://www.unicode.org/Public/zipped/ReadMe.txt

Reviewed by:    bapt
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53982

(cherry picked from commit 13ae4904ad7d4677a8d894c91362f2d2479965b6)
DeltaFile
+2-2tools/tools/locale/Makefile
+2-21 files

FreeBSD/src 438c324tools/tools/locale/tools finalize

locale: tools: Make finalize idempotent

The finalize script renames source files with 3 components in their name
into names with two components with an @modifier, in the process.

Running the script for a second time without cleaning will strip the
@modifier from the files, producing invalid Makefiles and unusable
locales.

Prevent this by adding a guard at the beginning of the script.

Also, use a sub-shell for directory changes to avoid working directory
issues.

Reviewed by:    bapt
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53981

(cherry picked from commit 934364da7fc8cd3ba4d030d0478163b41dda1b37)
DeltaFile
+58-53tools/tools/locale/tools/finalize
+58-531 files

FreeBSD/src bd37a9bshare/colldef_unicode Makefile, share/monetdef_unicode Makefile

locale: make install

Reviewed by:    bapt
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53962

(cherry picked from commit 36cfa8093d25f8a5b598bd8ae74d7cbaafdc1879)
DeltaFile
+2-0share/colldef_unicode/Makefile
+1-0share/monetdef_unicode/Makefile
+1-0share/numericdef_unicode/Makefile
+1-0share/msgdef_unicode/Makefile
+5-04 files

FreeBSD/src e1ab892tools/tools/locale/tools cldr2def.pl

cldr2def.pl: Fix make install

Follow up on 86c71e97d19f ("pkgbase: locales: Also tag the files dir"),
and adapt cldr2def.pl script in order to fix make install.

Reviewed by:    bapt
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53961

(cherry picked from commit 95f37aa3e51ce46821059b2c9dbb02fef5c4bec5)
DeltaFile
+2-0tools/tools/locale/tools/cldr2def.pl
+2-01 files

FreeBSD/src 5c8f96bshare/monetdef_unicode ar_AE.UTF-8.src ar_EG.UTF-8.src

locale: make posix

Run make posix to generate monetary definition files with the
international parameters missing from localeconv(3)'s lconv struct.

Manually convert the "frozen" non-unicode locales under share/monetdef.

Reviewed by:    bapt
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53917

(cherry picked from commit 9df8243a2e0ab1ef027cbfbcb4105f5f0ce108e1)
DeltaFile
+18-0share/monetdef_unicode/ar_AE.UTF-8.src
+18-0share/monetdef_unicode/ar_EG.UTF-8.src
+18-0share/monetdef_unicode/ar_JO.UTF-8.src
+18-0share/monetdef_unicode/ar_MA.UTF-8.src
+18-0share/monetdef_unicode/ar_QA.UTF-8.src
+18-0share/monetdef_unicode/ar_SA.UTF-8.src
+108-0107 files not shown
+2,034-0113 files

FreeBSD/src ca92ab6tools/tools/locale/etc/final-maps widths.txt map.UTF-8

locale: make build to bump widths.txt

Reviewed by:    bapt
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53916

(cherry picked from commit 30aa5507f349f761770c5cf49989d6cf7eb3498d)
DeltaFile
+189-1tools/tools/locale/etc/final-maps/widths.txt
+1-1tools/tools/locale/etc/final-maps/map.UTF-8
+190-22 files

FreeBSD/src 3bf4c0dtools/tools/locale/tools cldr2def.pl

cldr2def.pl: Add international currency parameters

Add the missing international monetary parameters present in the lconv
struct.

See also https://unicode-org.atlassian.net/browse/CLDR-237.

Reviewed by:    bapt
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53915

(cherry picked from commit faf33e05013fb3fc79cc035c1ff7b52f3fa1af1b)
DeltaFile
+27-15tools/tools/locale/tools/cldr2def.pl
+27-151 files

FreeBSD/src 6223511tools/tools/locale/tools cldr2def.pl

cldr2def.pl: Cleanup white space

No functional change intended.

Reviewed by:    bapt
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53914

(cherry picked from commit 09701dc19cf0d6f1a41abcae89c00122546498fb)
DeltaFile
+5-5tools/tools/locale/tools/cldr2def.pl
+5-51 files

FreeBSD/src f97082akrb5/lib/gssapi version.map

krb5: Add missing symbol

Submitted by:   lampa at fit.vutbr.cz
PR:             291565

(cherry picked from commit f825427c0ae975025e831542782d4078b063a82e)
DeltaFile
+1-0krb5/lib/gssapi/version.map
+1-01 files

FreeBSD/src c42bce2sys/net bpf.c bpfdesc.h

bpf: convert several boolean natured fields of bpf_d to flags

This shrinks the structure a bit.  Should be no functional change.

Differential Revision:  https://reviews.freebsd.org/D53870
DeltaFile
+35-34sys/net/bpf.c
+7-7sys/net/bpfdesc.h
+42-412 files

FreeBSD/src e1c985csys/dev/vt vt_core.c

vt: Allow VT_SETMODE with frsig=0

Linux does not check that any of the signals in vt_mode VT_SETMODE ioctl
(relsig, acqsig, frsig) are valid, but FreeBSD required that all three
are valid.  frsig is unusued in both Linux and FreeBSD, and software
typically leaves it unset.  To improve portability, allow frsig to be
set to zero.

PR:             289812
Reported by:    Dušan Gvozdenović
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52835

(cherry picked from commit 5198c32210039d8dc92554647384eee75688848c)
(cherry picked from commit 224d65015465d085f2e07edccef1f23a8c217b88)
DeltaFile
+3-3sys/dev/vt/vt_core.c
+3-31 files

FreeBSD/src a16fdef. RELNOTES

RELNOTES: Truncate for 16.0

Differential Revision:  https://reviews.freebsd.org/D54195
DeltaFile
+1-461RELNOTES
+1-4611 files

FreeBSD/src 929338dsys/netinet tcp_timewait.c

tpc: retire net.inet.tcp.nolocaltimewait

See c3fc0db3bc50df18a724e6e6b12ea4e060fd9255 for details.
DeltaFile
+0-42sys/netinet/tcp_timewait.c
+0-421 files

FreeBSD/src ef2d586etc/mtree BSD.include.dist

etc/mtree/BSD.include.dist: Remove libmilter-dev

When building with WITHOUT_SENDMAIL this result in a FreeBSD-libmilter-dev
package with only this directory and a dependacy on FreeBSD-libmilter which
doesn't exists.

Differential Revision:  https://reviews.freebsd.org/D54193
Fixes:          436618a427b4 ("etc/mtree: Add package tags for /usr/include")
Reviewed by:    ivy
Sponsored by:   Beckhoff Automation GMbH & Co. KG
DeltaFile
+1-1etc/mtree/BSD.include.dist
+1-11 files

FreeBSD/src c522532sys/dev/xilinx if_xae.c

xae(4): remove unused function.

Sponsored by: CHERI Research Centre
DeltaFile
+0-6sys/dev/xilinx/if_xae.c
+0-61 files

FreeBSD/src 3b8e13cshare/misc pci_vendors

pci_vendors: update to version 2025-12-12
DeltaFile
+1,079-233share/misc/pci_vendors
+1,079-2331 files

FreeBSD/src f14ca37sys/kern uipc_socket.c

splice: Fix leaks that can happen when initiating a splice

- change the state to SPLICE_EXCEPTION to allow so_unsplice() to work
  to cleanup failed splices (fixes socket reference leak)
- NULL out sp->dst when unsplicing from so_splice() before so2 has been
   been referenced.
- Deal with a null sp->dst / so2 in so_unsplice
- Fix asserts that talked about sp->state == SPLICE_INIT; that state
  is not possible here.

Differential Revision: https://reviews.freebsd.org/D54157
Reviewed by: markj
Sponsored by: Netflix
Fixes: c0c5d01e5374 ("so_splice: Synchronize so_unsplice() with so_splice()")
MFC after: 3 days

(cherry picked from commit a837d1fe49e0255d81c670dc271ff245ae960097)
DeltaFile
+27-17sys/kern/uipc_socket.c
+27-171 files

FreeBSD/src f2cb620sys/dts/arm/overlays spigen-rpi-b.dtso, sys/modules/dtb/rpi Makefile

Remove: sys/dts/arm/overlays/spigen-rpi-b.dtso

Remove SPIGEN device tree overlay used with rpi-b (BCM2835/armv6)

Approved by: manu (mentor)
Differential revision: https://reviews.freebsd.org/D54188
DeltaFile
+0-30sys/dts/arm/overlays/spigen-rpi-b.dtso
+0-1sys/modules/dtb/rpi/Makefile
+0-312 files

FreeBSD/src cd79149lib/libdiff Makefile, lib/libfido2 Makefile

*/*: remove recallocarray() compat shims following import into libc

libopenbsd retains recallocarray() during bootstrapping for now
as it is needed for mandoc.

Reviewed by:    kib
Differential Revision: https://reviews.freebsd.org/D52864

(cherry picked from commit acd546f01e58354af049455472980c6c4a52e18b)
DeltaFile
+1-2usr.bin/mandoc/Makefile
+1-1lib/libdiff/Makefile
+0-1lib/libfido2/Makefile
+0-1tests/oclo/Makefile
+2-54 files

FreeBSD/src 24ea810include stdlib.h, lib/libc/stdlib memalignment.3 memalignment.c

lib/libc: implement C23 memalignment()

This new function computes the alignment of a pointer.
It is part of ISO/IEC 9899:2024, the new C standard.
If the pointer is a null pointer, null is returned.
I have tried to write an implementation that can cope
with traditional address-based architectures, even if
size_t and uintptr_t are of different length.  Adjustments
may be needed for CHERI though.

A man page is provided, too.  No unit test for now.

Reviewed by:    kib, imp, ziaee (manpages), pauamma at gundo.com
Approved by:    markj (mentor)
MFC after:      1 month
Relnotes:       yes
Differential Revision:  https://reviews.freebsd.org/D53673

(cherry picked from commit 6c57e368eb1777f6097158eeca2fcc175d068dba)
DeltaFile
+53-0lib/libc/stdlib/memalignment.3
+28-0lib/libc/stdlib/memalignment.c
+8-0include/stdlib.h
+2-2lib/libc/stdlib/Makefile.inc
+1-0lib/libc/stdlib/Symbol.map
+92-25 files

FreeBSD/src e72536alib/libc/stdlib recallocarray.c reallocarray.3, lib/libopenbsd recallocarray.c Makefile

lib/libc: add recallocarray()

This function from OpenBSD is a hybrid of reallocarray() and calloc().
It reallocates an array, clearing any newly allocated items.
reallocarray() ultimately originates from OpenBSD.

The source is taken from lib/libopenbsd, which now no longer has the
function unless when bootstrapping (needed for mandoc).

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D52863

(cherry picked from commit 42664610795bc0a728851ba6223fcf9b93801167)
DeltaFile
+82-0lib/libc/stdlib/recallocarray.c
+0-82lib/libopenbsd/recallocarray.c
+36-1lib/libc/stdlib/reallocarray.3
+6-2lib/libopenbsd/Makefile
+4-0lib/libc/stdlib/Symbol.map
+2-1lib/libc/stdlib/Makefile.inc
+130-861 files not shown
+132-867 files

FreeBSD/src 9d2981ftools/test/stress2/misc pg_zero.sh

stress2: Fix looping at exit and fix the cleanup
DeltaFile
+2-2tools/test/stress2/misc/pg_zero.sh
+2-21 files

FreeBSD/src 5c02597sys/fs/unionfs union_vnops.c, sys/kern vfs_default.c

unionfs: Implement VOP_GETLOWVNODE

This function returns the vnode that will be used to resolve the
access type specified in the 'flags' argument, and is useful for
optimal behavior of vn_copy_file_range(). While most filesystems
can simply use the default implementation which returns the passed-
in vnode, unionfs (like nullfs) ideally should resolve the access
request to whichever base layer vnode will be used for the I/O.

For unionfs, write accesses must be resolved through the upper vnode,
while read accesses will be resolved through the upper vnode if
present or the lower vnode otherwise.  Provide a simple
unionfs_getlowvnode() implementation that reflects this policy.

Reviewed by:    kib, olce
Tested by:      pho
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53988
DeltaFile
+45-0sys/fs/unionfs/union_vnops.c
+1-2sys/kern/vfs_default.c
+1-0sys/sys/vnode.h
+47-23 files

FreeBSD/src 0247b40sys/fs/unionfs union_vfsops.c

unionfs: detect common deadlock-producing mount misconfigurations

When creating a unionfs mount, it's fairly easy to shoot oneself
in the foot by specifying upper and lower file hierarchies that
resolve back to the same vnodes.  This is fairly easy to do if
the sameness is not obvious due to aliasing through nullfs or other
unionfs mounts (as in the associated PR), and will produce either
deadlock or failed locking assertions on any attempt to use the
resulting unionfs mount.

Leverage VOP_GETLOWVNODE() to detect the most common cases of
foot-shooting at mount time and fail the mount with EDEADLK.
This is not meant to be an exhaustive check for all possible
deadlock-producing scenarios, but it is an extremely cheap and
simple approach that, unlike previous proposed fixes, also works
in the presence of nullfs aliases.

PR:             172334
Reported by:    ngie, Karlo Miličević <karlo98.m at gmail.com>

    [4 lines not shown]
DeltaFile
+25-2sys/fs/unionfs/union_vfsops.c
+25-21 files

FreeBSD/src 38d60d4sys/kern vnode_if.src

vnode_if.src: fix function name in locking annotation

getwritevnode->getlowvnode

Reviewed by:    kib, olce
Tested by:      pho
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53988
DeltaFile
+1-1sys/kern/vnode_if.src
+1-11 files

FreeBSD/src 478ac7dsys/cam/scsi scsi_xpt.c

cam: Also reduce timeout for wlun probing

wlun probing was added after my initial work on this and was overlooked
in merging forward. Add the timeout here too, for the same reasons as
for REPORT LUNS. This doesn't change the default.

Fixes: 8ac7a3801c6a cam: Reduce overly long timeout values for initial device probing
Sponsored by:           Netflix
Reviewed by:            jaeyoon
Differential Revision:  https://reviews.freebsd.org/D54184
DeltaFile
+1-1sys/cam/scsi/scsi_xpt.c
+1-11 files

FreeBSD/src 5588350. ObsoleteFiles.inc, share/man/man9 pfind.9 Makefile

pfind(9): follow-up fixes and improvements

(Found on a branch from a year ago.)

- Adjust NAMEs
- MLINKS: add pfind_any.9, pfind_any_locked.9; remove old zpfind.9
- Reword the description of pfind_any() so that it doesn't imply only
  zombie processes are returned
- Fix a comma
- Use .Dv for the macro PRS_ZOMBIE
- Move the (logically separate) final statement to a new paragraph
- .Xr to pget(9)

Reviewed by:    0mp
Fixes:  07d78399eb79 ("pfind(9): Update to recent behavior")
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D53548

(cherry picked from commit 2ace05b65a2c912888aeec921fc6f990a5c36909)
DeltaFile
+17-17share/man/man9/pfind.9
+3-0ObsoleteFiles.inc
+2-1share/man/man9/Makefile
+22-183 files

FreeBSD/src f2a21b1sys/dev/e1000 e1000_82571.c

e1000: Don't enable ASPM L1 without L0s

Reporter noted packet loss with 82583.  NVM is down level.  The
errata docs mention disabling this, which should be the firmware
default, so I am not sure why we were enabling this bit.  Linux and
OpenBSD have the same issue, while NetBSD got it right.

Reported by:    Codin <codin at nagi.ftp.sh>
Tested by:      Codin <codin at nagi.ftp.sh>

(cherry picked from commit 2ead091715dee327b3e00bc9840e1a95827b8e82)
DeltaFile
+2-1sys/dev/e1000/e1000_82571.c
+2-11 files