FreeBSD/src 187da13release/pkg_repos release-dvd.conf, sys/conf newvers.sh

14.5: create releng/14.5 branch

Update from PRERELEASE to BETA1
Switch pkg(8) configuration to use the quarterly repositories
Bump __FreeBSD_version to 1405000

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+2-2release/pkg_repos/release-dvd.conf
+1-1sys/sys/param.h
+1-1sys/conf/newvers.sh
+4-43 files

FreeBSD/src 4abf6e7sys/conf newvers.sh, sys/sys param.h

Post-14.5-branch updates

Rename stable/14 to -STABLE

Bump __FreeBSD_version to 1405500

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+1-1sys/sys/param.h
+1-1sys/conf/newvers.sh
+2-22 files

FreeBSD/src e73fcd4sys/dev/evdev evdev_private.h evdev.c

evdev: add devnum sysctl

Add a sysctl entry for the evdev device number (devnum) to allow
libudev-devd to populate the corresponding device information
fields (MAJOR and MINOR) when running in a jail with no input devices
exposed through devfs.

Signed-off-by: Quentin Thébault <quentin.thebault at defenso.fr>

Reviewed by:    wulf
Sponsored by:   Defenso

(cherry picked from commit 746c374aa94b46712e6defb3ab56dd2d6ad8db64)
DeltaFile
+6-0sys/dev/evdev/evdev.c
+1-0sys/dev/evdev/evdev_private.h
+7-02 files

FreeBSD/src 6e81fbfusr.sbin/bsdinstall/scripts hardening

bsdinstall: add a hardening knob for unprivileged kenv access

It makes sense.

Reviewed by:    zleei
Differental Revision:   https://reviews.freebsd.org/D57755
DeltaFile
+4-0usr.sbin/bsdinstall/scripts/hardening
+4-01 files

FreeBSD/src b0a85cbtests/sys/kern Makefile ptrace_test.c

ptrace_test: require debug.ptrace_transparent_attach enabled for its test

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+4-0tests/sys/kern/ptrace_test.c
+1-0tests/sys/kern/Makefile
+5-02 files

FreeBSD/src 01e37e4sys/dev/iicbus/pmic/rockchip rk817.c rk808.c

rockchip: fix stack overflow in rk8xx_rtc

Presumably surfaced by -fstack-protector-strong, rk8xx_settime was
triggering SSP when ntpd set the time on the RockPro64, at the very
least.  A minor oops meant that the weeks mask was getting tossed into
the wrong field, and the mask was never populated.  The mask is 0x7 for
all three of these, thus overflowing the `data` array in settime by one
byte.

PR:             296719
Reported by:    jsm, "Tenkawa" on Discord
Reviewed by:    mmelt

(cherry picked from commit d387a43ec8e2663b2d8bc0c8cb02d3a2ff14b6e6)
DeltaFile
+2-1sys/dev/iicbus/pmic/rockchip/rk817.c
+2-1sys/dev/iicbus/pmic/rockchip/rk808.c
+2-1sys/dev/iicbus/pmic/rockchip/rk805.c
+6-33 files

FreeBSD/src 387634csys/kern kern_syscalls.c subr_syscall.c, sys/sys sysent.h

kern: syscall_thread_enter() cannot fail

Attempting to handle the error gracefully can easily result in missing
SIGSYS, so this was made to always succeed in
39024a89146 ("syscalls: fix missing SIGSYS for several ENOSYS errors")
and returns the nosys entry on failure.

Drop the pretense of returning an error and clean up a few dead error
paths.

Reviewed by:    kib, markj

(cherry picked from commit eca26803d880060555393ab89b44b967cd467a0e)
DeltaFile
+2-6sys/kern/kern_sig.c
+1-5sys/kern/subr_syscall.c
+2-3sys/kern/kern_syscalls.c
+1-1sys/sys/sysent.h
+6-154 files

FreeBSD/src e55aa7bsys/dev/evdev evdev.c

evdev: use a prometheus-safe label for ev_sysctl_tree

Prometheus doesn't allow spaces, let's normalize this to what we use
elsewhere for consistency.  The sysctl exporter could probably do this
itself, but let's decouple that from the immediate problem: matching the
label between the exported data and in-tree is nice for greppability.

PR:             296179
Reviewed by:    asomers, wulf

(cherry picked from commit cb8bda40695f5d402f334f48795b1ab27b72dce5)
DeltaFile
+1-1sys/dev/evdev/evdev.c
+1-11 files

FreeBSD/src c839c15bin/kenv kenv.1, lib/libc/sys kenv.2

kern: add a security knob to disable unprivileged access to kenv

We sometimes store sensitive things in the kenv that get zapped, but we
really shouldn't rely on that zapping to actually happen.  Most
unprivileged processes don't really need to read from the kernel
environment in the first place, so add a knob that allows it to be
disabled.

Note that we consider jailed root to be unprivileged from this
perspective; they have their own meta/env concepts and we should
encourage users to take advantage of those for passing information to
jails.

Relnotes:       yes (The capability to disable unpriv access exists)
"Hey we should do something about that":        dch
Reviewed by:    imp, ziaee, zlei (all slightly previous version)
Differential Revision:  https://reviews.freebsd.org/D57697

(cherry picked from commit 4fd518fcb2bbee4c8c41215d6993b923ef57a0e5)
DeltaFile
+40-6sys/kern/kern_environment.c
+9-1bin/kenv/kenv.1
+6-1lib/libc/sys/kenv.2
+3-1share/man/man7/security.7
+1-0sys/sys/priv.h
+59-95 files

FreeBSD/src f08af24lib/libc/sys adjtime.2

adjtime(2): document that delta can be NULL

The current verbiage somewhat indicates that always adjusts the time,
which hasn't been true as far back as I had the energy to `git blame`.

Reviewed by:    imp

(cherry picked from commit 8ed580b1d3811e73e25db3d8a9fd235156c65387)
DeltaFile
+12-2lib/libc/sys/adjtime.2
+12-21 files

FreeBSD/src 8ab54c5sys/sys capsicum.h

rights(4): fix our representation of the unused bits

The current format seems to be a little confusing, and the version of it
for index 0 was broken by the below-referenced commit.  Break our
UNUSED macros out into one per unused bit to enumerate the entirety of
the space and make it easier to claim an unused one.

Reviewed by:    oshogbo (previous version), kib, markj

(cherry picked from commit 57fefbee1f959d0c65376dbdad309d01c182d710)
DeltaFile
+57-10sys/sys/capsicum.h
+57-101 files

FreeBSD/src 74bd6fblib/libc/gen fts.c, lib/libc/tests/gen fts_regress_test.c

fts: fix fts_accpath regression after fts_children()

When fts_children() is called, sp->fts_child is set. On the
next fts_read() call, fts_safe_changedir() was incorrectly
passed p->fts_dirfd (pointing to the parent directory) instead
of -1. This caused fts to fchdir to the parent instead of the
child directory, silently skipping the contents of 3rd-level
subdirectories. This was observed as a failure in
nmtree_test:mtree_create which calls fts_children() internally.

Add regression test accpath_correct_after_descent that calls
fts_children() on each directory entry and verifies files at
depth 3 are still visited correctly. The test fails with the
unfixed libc and passes with the fix.

Reported by:    Herbert J. Skuhra <herbert at gojira.at>
Sponsored by:   Google LLC (GSoC 2026)
Reviewed by:    asomers
Fixes:          4bd01d6ae01 ("fts: refactor to use fd-relative")
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2354
DeltaFile
+60-0lib/libc/tests/gen/fts_regress_test.c
+1-2lib/libc/gen/fts.c
+61-22 files

FreeBSD/src 2abf4ceusr.sbin/iostat iostat.8

iostat.8: Expand -w description

PR:             194781
MFC after:      3 days
Reviewed by:    ziaee
Event:          Halifax Hackathon 202606

(cherry picked from commit 4d299a767acce2841ded288e789a9c36620b57d7)
DeltaFile
+6-1usr.sbin/iostat/iostat.8
+6-11 files

FreeBSD/src 0312eb4share/man/man4 tcp.4, sys/netinet tcp_fastopen.c

tcp.fastopen.client_enable: Fix documented default

The default value has been 1 since June 2018, but the docs were not
updated to reflect the change.

MFC after:      3 days
Reviewed by:    ziaee
Fixes:          af4da5865557 (Enable TCP_FASTOPEN by default)
Signed-off-by:  Matteo Riondato <matteo at FreeBSD.org>
Closes:         https://github.com/freebsd/freebsd-src/pull/2285

(cherry picked from commit 0bc852cc62afcd79fc776f784623c3f2b7691d27)
DeltaFile
+2-2share/man/man4/tcp.4
+1-1sys/netinet/tcp_fastopen.c
+3-32 files

FreeBSD/src dcffbdfstand/man loader.efi.8

loader.efi.8: hw.uart.console is explained in uart

PR:             295944
MFC to:         15
MFC after:      3 days

(cherry picked from commit a641aa1c80f80e44cd9212b95e6584db9533712c)
DeltaFile
+2-3stand/man/loader.efi.8
+2-31 files

FreeBSD/src ca5648cbin/ln symlink.7

symlink.7: Clean up markup and tag SPDX

Also unwind some parentheticals.

MFC after:      3 days

(cherry picked from commit e821152cc71dbd09f5bd28be86499165c553f3ae)
DeltaFile
+49-43bin/ln/symlink.7
+49-431 files

FreeBSD/src e2b376fsbin/mount_udf mount_udf.8

mount_udf.8: Alphabetize and align options

While here, remove "The following UDF specific options are available:".
It is unused and does not appear to have ever been used.

MFC after:      3 days

(cherry picked from commit 05f132adc530cd53203b9cd09d7e1b211d2babc4)
DeltaFile
+5-6sbin/mount_udf/mount_udf.8
+5-61 files

FreeBSD/src 4f36622contrib/mandoc mdoc.7

mdoc.7: Revert upstream changes to Lb/LIBRARY

Since this manual describes the mdoc syntax throughout the ecosystem,
I had to blend what we had before with what upstream is doing now.

Thanks:         adrian
MFC after:      3 days (we shipped this doc in 15.0/14.4)
Reviewed by:    ivy, mhorne, des, adrian
Discussed with: arch@
Differential Revision:  https://reviews.freebsd.org/D56153

(cherry picked from commit 4e2bf6e90a65bee317e4dd379e098ba2eb5d8c0d)
DeltaFile
+33-4contrib/mandoc/mdoc.7
+33-41 files

FreeBSD/src de72f76share/man/man5 style.mdoc.5

style.mdoc: Explain why not to abuse Nm

MFC after:              3 days
Reviewed by:            0mp
Differential Revision:  https://reviews.freebsd.org/D55299

(cherry picked from commit bcd50fe5c3c6e70c710e13378999814e9df43d3c)
DeltaFile
+6-0share/man/man5/style.mdoc.5
+6-01 files

FreeBSD/src 96f9f95share/man/man4 ocs_fc.4

ocs_fc.4: Cleanup

+ more consistent document description
+ enumerate available options in synopsis in vt.4 style
+ tag spdx
+ tweak list rendering
+ cleanup HARDWARE
+ reflow excessively long lines silencing linter warnings
+ fix link macros

MFC after:              3 days
Reported by:            michaelo (hardware notes)
Differential Revision:  https://reviews.freebsd.org/D56753

(cherry picked from commit dd97c3d83f9a92bbeb9740ceff4c1c74c451293e)
DeltaFile
+55-38share/man/man4/ocs_fc.4
+55-381 files

FreeBSD/src 91be228usr.sbin/nvram nvram.8

nvram.8: Align option list and tag SPDX

MFC after:      3 days

(cherry picked from commit 33fbfceeb4d9daf1145089a10ce7b25110d8840f)
DeltaFile
+4-2usr.sbin/nvram/nvram.8
+4-21 files

FreeBSD/src 5e14432share/man/man7 ports.7

ports.7/FILES: Expand and refactor into 3 tables

Add make.conf, CHANGES, CONTRIBUTING.Md, UPDATING, and Tools/scripts.
Refactor the FILES section of the ports reference manual into a bigger
table with three sections separated by root directory. Remove preceeding
article from all but "the big Kahuna", and root dirs where reasonable.

MFC after:              3 days
Relnotes:               yes
Reported by:            adamw, arrowd, linimon
Differential Revision:  https://reviews.freebsd.org/D55441

(cherry picked from commit 28deec9b7e2b08b00160eb39de84ade6f27eb125)
DeltaFile
+29-18share/man/man7/ports.7
+29-181 files

FreeBSD/src b2e845cusr.sbin/bsdinstall/scripts auto

bsdinstall: Improve auto-partition message

Manually tuning ZFS for systems with <8GB ram hasn't been necessary at
least since the switch to OpenZFS. We have users reporting using 1GB RAM
with no manual tuning/issues. Further, the page this links to is a stale
wiki page, which is causing complaints. Remove this misleading note and
replace it with a similar message for UFS. While here, reword that note
to be a bit clearer.

PR:                     287719
MFC after:              3 days
Differential Revision:  https://reviews.freebsd.org/D50971

(cherry picked from commit 5ed26c21e4ff1d478d4611abbf3dc14cc1b77244)
DeltaFile
+2-2usr.sbin/bsdinstall/scripts/auto
+2-21 files

FreeBSD/src 30c821alib/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

(cherry picked from commit 975e3605ebb15cbaf5a25c1c9d1f51aed41291d0)
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 0b35f51sys/cddl/compat/opensolaris/kern opensolaris_cmn_err.c

dtrace: Improve dmesg kernel message prefix

Provide intuitive log search keywords and increased system consistency.

MFC after:              2 weeks
Reported by:            mav
Reviewed by:            0mp, dteske
OpenZFS change:         d45c8d648 (Improve dmesg kernel message prefix)
Differential Revision:  https://reviews.freebsd.org/D55765

(cherry picked from commit 49e9b3061df036a73e8bc424c026158f3f57b183)
DeltaFile
+7-7sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c
+7-71 files

FreeBSD/src b75965elib/libc/sys 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/libc/sys/ntp_adjtime.2
+3-31 files

FreeBSD/src 21783b3share/skel dot.profile, usr.bin/apply apply.1

Bourne shell -> POSIX shell

The FreeBSD shell is a POSIX compatible shell. It evolved over several
decades from the Almquist shell, which was preceeded a decade before
that by the Bourne shell. Most readers today have never seen a Bourne
shell. If someone wants to learn to use our shell, they need to look for
tutorials on the POSIX shell. Align descriptions through out the tree
with this reality, consistent with it's manual and common parlance.

We made a similar change to the doc tree in b4d6eb01540fe.

MFC after:              3 days
Reviewed by:            carlavilla
Differential Revision:  https://reviews.freebsd.org/D56382

(cherry picked from commit dc140a9fc151f3717bce2157f49070daafa13ec0)
DeltaFile
+2-2usr.bin/script/script.1
+2-2usr.bin/fortune/datfiles/freebsd-tips
+1-1usr.sbin/adduser/adduser.8
+1-1usr.bin/chpass/chpass.1
+1-1usr.bin/apply/apply.1
+1-1share/skel/dot.profile
+8-86 files

FreeBSD/src 9bc3d8ebin/sh histedit.c

sh: Increase default history size to POSIX mandated minimum of 128

The default history size in bin/sh is currently 100 however POSIX.1-2024
mandates that a default greater than or equal to 128 shall be used,
therefore this increases the default history size in /bin/sh to 128.

POSIX standards reference:
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/sh.html#tag_20_110_08

MFC after:      3 days
Reviewed by:    emaste, jilles, jlduran, ziaee
Signed-off-by:  Kristofer Peterson <kris at tranception.com>
Closes:         https://github.com/freebsd/freebsd-src/pull/2093

(cherry picked from commit 81b2055c49dec8884d7bb23503f1dfeac37ac95d)
DeltaFile
+1-1bin/sh/histedit.c
+1-11 files

FreeBSD/src 4bcf748usr.sbin/diskinfo diskinfo.c diskinfo.8

diskinfo: Align and alphabetize options

MFC after:      3 days

(cherry picked from commit afe57c12e97d5c8773d829c2914f35462a7cdd0c)
DeltaFile
+6-6usr.sbin/diskinfo/diskinfo.8
+5-5usr.sbin/diskinfo/diskinfo.c
+11-112 files

FreeBSD/src a716cf6bin/timeout timeout.1

timeout.1: Document non-POSIX options

MFC after:              3 days
Reviewed by:            Aaron Li <aly at aaronly.me>, ziaee
Differential Revision:  https://reviews.freebsd.org/D56090

(cherry picked from commit b1bc748430b5ee79ae103c464dbf5ebc8802f782)
DeltaFile
+5-1bin/timeout/timeout.1
+5-11 files