FreeBSD/src 0ae946esys/dev/vt vt_buf.c vt_core.c

vt: Avoid integer overflow in CONS_HISTORY ioctl

Reviewed by:    markj, vexeduxr
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57250
DeltaFile
+4-5sys/dev/vt/vt_buf.c
+4-2sys/dev/vt/vt_core.c
+8-72 files

FreeBSD/src 641e8e3contrib/telnet/libtelnet getent.c, include stdlib.h

Revert "libc: Constify the getcap API"

This broke cross-building on Linux and macOS.

This reverts commit 823d00b2d447247f1c5860e3bbc61f6fd19a70e5.
DeltaFile
+8-10lib/libc/gen/getcap.c
+4-4lib/libc/gen/getcap.3
+6-1libexec/getty/subr.c
+3-3include/stdlib.h
+3-3contrib/telnet/libtelnet/getent.c
+3-3usr.bin/cap_mkdb/cap_mkdb.c
+27-245 files not shown
+34-3111 files

FreeBSD/src 2404d8dsys/i386/linux linux_ptrace_machdep.c

linux: Drop unneeded PHOLDs

There's no point in acquiring a hold if the proc lock isn't going to be
dropped.

Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57468
DeltaFile
+0-4sys/i386/linux/linux_ptrace_machdep.c
+0-41 files

FreeBSD/src 77fdebalib/libc/gen fts.3

fts: Correct description of fts_set

MFC after:      1 week
Sponsored by:   Klara, Inc.
Fixes:  e030e4e73fe7 ("lib/libc/gen/fts.3: use 'options' consistently in fts_set() description")
Differential Revision:  https://reviews.freebsd.org/D57326
DeltaFile
+5-4lib/libc/gen/fts.3
+5-41 files

FreeBSD/src 2ea49bbshare/man/man7 arch.7

arch.7: Remove 32-bit powerpc from tables

Most 32-bit architecture support has been deprecated for FreeBSD 16.

Reviewed by:    des
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57472
DeltaFile
+2-14share/man/man7/arch.7
+2-141 files

FreeBSD/src 5805fadshare/man/man7 arch.7

arch.7: arch.7: Add wchar_t signedness

Most architectures have the same signedness for char and wchar_t, but
powerpc has the unusual combination of unsigned char and signed wchar_t.

Reviewed by:    des, jhb, markj
Sponsored by:   The FreeBSD Foundation
DeltaFile
+14-14share/man/man7/arch.7
+14-141 files

FreeBSD/src 5cc3fa0sys/arm64/arm64 trap.c, sys/sys signalvar.h

arm64: Add exception flag for ksiginfo_t and set in trapsignal

The `ksiginfo_t` flag `KSI_TRAP` is set both for exceptions and when
copying between userspace and the kernel fails. In the latter case, the
exception syndrome register as captured in `struct trapframe` won't be
valid. That means we can't use `KSI_TRAP` to determine whether `tf_esr`
is valid. This motivates the addition of a new flag, here called
`KSI_EXCEPT`, for specifically identifying signals caused by exceptions.
It is added to `ksi_flags` via `trapsignal`.

Signed-off-by: Alex Arslan <ararslan at comcast.net>
Reported by:    andrew
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2053
DeltaFile
+1-0sys/sys/signalvar.h
+1-0sys/arm64/arm64/trap.c
+2-02 files

FreeBSD/src 0b862a7sys/arm64/arm64 exec_machdep.c, sys/arm64/include ucontext.h

arm64: Expose ESR in mcontext

At present, the exception syndrome register (ESR) is not accessible via
the user context on FreeBSD AArch64, which makes it difficult to
determine the cause of an exception. For example, a signal handler might
get a `SIGSEGV` with `SEGV_ACCERR`, but it can't know whether that
occurred due to a bad read or write. The change implemented here
includes ESR in `struct __mcontext`, thereby allowing access via
`ucontext_t` for use by signal handlers, sanitizers, debuggers, etc.

Note that this addition consumes one of the seven spare 64-bit slots in
`struct __mcontext`.

Signed-off-by: Alex Arslan <ararslan at comcast.net>
Reviewed by:    andrew
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2053
DeltaFile
+5-0sys/arm64/arm64/exec_machdep.c
+3-1sys/arm64/include/ucontext.h
+8-12 files

FreeBSD/src 8f6c577usr.sbin/bhyve bhyverun.c, usr.sbin/bhyve/aarch64 bhyverun_machdep.c

bhyve(8): allow cpu pinning using N-M:X-Y ranges

bhyve's -p allows to pin guest's virtual CPU vcpu to hostcpu, however
this becomes very tedious work when you have to pin more than a single
CPU.

This allows to pass a range to -p, e.g. -p 0-3:4-7 which will pin the
cpus 0:4, 1:5, 2:6, 3:7. The ranges must be equal and the CPU numbers
must be ascending.

Sponsored by: Armenian Bioinformatics Institute
Reviewed by:    corvink, markj
Tested by:      bnovkov
MFC after:      3 weeks
Differential Revision:  https://reviews.freebsd.org/D54937
DeltaFile
+30-8usr.sbin/bhyve/bhyverun.c
+3-2usr.sbin/bhyve/aarch64/bhyverun_machdep.c
+3-2usr.sbin/bhyve/amd64/bhyverun_machdep.c
+3-2usr.sbin/bhyve/riscv/bhyverun_machdep.c
+39-144 files

FreeBSD/src b5a9689libexec/rc rc, share/man/man8 rc.8

rc: Bail if /dev/null is not a device

On startup, check that /dev/null exists and is a character device.
Otherwise, one of two things will happen: either /dev is a writable
directory and we will immediately create /dev/null as a regular file
and dump garbage into it, or it does not and we will spit out a stream
of error messages about failing to create /dev/null.

PR:             295782
MFC after:      1 week
Reviewed by:    jhb, emaste
Differential Revision:  https://reviews.freebsd.org/D57447
DeltaFile
+11-1share/man/man8/rc.8
+5-0libexec/rc/rc
+16-12 files

FreeBSD/src ddf6fadusr.sbin/etcupdate etcupdate.8 etcupdate.sh

etcupdate: Make nobuild the default

The common case for etcupdate is to run it after building and installing
the world, in which case we already have an object directory to draw on.
Add a -b option to turn nobuild off (opposite of -B), and turn nobuild
on by default.

MFC after:      1 week
Reviewed by:    jhb, emaste
Differential Revision:  https://reviews.freebsd.org/D57306
DeltaFile
+17-13usr.sbin/etcupdate/etcupdate.8
+5-2usr.sbin/etcupdate/etcupdate.sh
+22-152 files

FreeBSD/src c606eb3lib/libc/tests/gen fts_children_test.c

fts: address post-merge feedback on fts_children_test.c

- Remove fts_check_debug() which is only needed by test cases
  that use the fts_test() helper; fts_children_test.c does not
  call fts_test()
- Remove fts_lexical_compar where traversal order does not matter
  for the test result
- Drop fts_test.h and copy fts_lexical_compar locally
- Pull up NULL argument onto same line as fts_open

Fixes:          e624417db8a1 ("lib/libc/tests/gen: add fts_children() tests")
Sponsored by:   Google LLC (GSoC 2026)
Reviewed by:    des, asomers
MFC after:      2 weeks
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2260
DeltaFile
+8-8lib/libc/tests/gen/fts_children_test.c
+8-81 files

FreeBSD/src f4424a2sbin/dhclient dhclient.conf.5

dhclient.conf.5: Correct crossreference

PR:             285614
Reviewed by:    ziaee, michaelo, jrm
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D49489
DeltaFile
+8-7sbin/dhclient/dhclient.conf.5
+8-71 files

FreeBSD/src ee21333lib/libc/tests/gen fts_set_test.c

fts: address post-merge feedback on fts_set_test.c

Per review by des@:

- Remove fts_check_debug() which has no effect in fts_set_test.c, and
  remove unused #include "fts_test.h"
- Add errno = 0 before fts_read() so errno check is meaningful
- Remove fts_lexical_compar where traversal order does not matter
- Change int boolean flags to bool throughout
- Use !saw_inside instead of saw_inside == false
- Move fts_set_clientptr/fts_get_clientptr test inside fts_read()
  loop so the pointer is exercised during active traversal

Fixes:          940142d6103 ("lib/libc/tests/gen: add fts_set() tests")
Sponsored by:   Google LLC (GSoC 2026)
Reviewed by:    des, asomers
MFC after:      2 weeks
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2258
DeltaFile
+34-27lib/libc/tests/gen/fts_set_test.c
+34-271 files

FreeBSD/src 3dfbbe8sys/fs/nfs nfsrvstate.h, sys/fs/nfsserver nfs_nfsdstate.c nfs_nfsdport.c

nfsd: Add per-MDS fs striping configuration

Commit 72e57bc26417 added support for striping to the pNFS
server when using the Flexible File layout.
It is configured globally via the following sysctls:
vfs.nfsd.pnfsstripeunit - Size (in bytes) of a stripe
vfs.nfsd.pnfsstripecnt - # of DSs to stripe across

This patch allows the above settings to be overridden
on a per-MDS exported file system basis.  With this
patch, a stripeunit can optionally be specified for
the MDS file system listed when one is listed after
a '#' in the "-p" nfsd argument.  This is done by
appending "@NNN", where NNN is the stripeunit, in bytes.

The current syntax implies that neither a '#' nor '@'
can be in the MDS mount point's directory path.

This patch does not affect current pNFS server

    [2 lines not shown]
DeltaFile
+20-1sys/fs/nfsserver/nfs_nfsdstate.c
+12-6sys/fs/nfsserver/nfs_nfsdport.c
+1-0sys/fs/nfs/nfsrvstate.h
+33-73 files

FreeBSD/src e3fa020lib/libc/net protocols

protocols: Update with IANA list

- Update /etc/protocols with IANA list updated 2026-03-09.
- Document that 240 (pfsync) is not assigned by IANA.
- Document deprecated protocols.

PR:             295739
Reviewed by:    des
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57445
DeltaFile
+11-6lib/libc/net/protocols
+11-61 files

FreeBSD/src cda79e5sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: set flag if frame should be part of an A-MPDU

In the output path where we are sending a frame to the driver mark it
if it should be part of an A-MPDU based on its tid, type, and whether
net80211 thinks that we are in the right state for this.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+12-0sys/compat/linuxkpi/common/src/linux_80211.c
+12-01 files

FreeBSD/src 259efa7sys/compat/linuxkpi/common/src linux_80211.c linux_80211.h

LinuxKPI: 802.11: make *addba* work better

Fill in more details for lkpi_ic_addba_request(), lkpi_ic_addba_response(),
and lkpi_ic_addba_response_timeout().

Migrate the ltxq flags seen_dequeue and stopped to a bitfield and add %b
support to log messages.   This seemed the better approach after needing
an additional stop field for BA while we have to hold packets from being
transmitted.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+64-15sys/compat/linuxkpi/common/src/linux_80211.c
+10-2sys/compat/linuxkpi/common/src/linux_80211.h
+74-172 files

FreeBSD/src a993d28sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: add note about rate control support under boot -v

We currently do not support rate control in LinuxKPI.  As more drivers
and chipsets gain suppport for higher throughput add a note under
bootverbose if we hit one of these cases (currently only older iwlwifi
chipsets).

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+6-0sys/compat/linuxkpi/common/src/linux_80211.c
+6-01 files

FreeBSD/src 22ac9besys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: adjust tracing for action/ampdu/addba functions

Adjust the pure debug tracing to no longer be under HT and add more
to the other functions we are interested in, so we can follow the
calls more easily.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+9-3sys/compat/linuxkpi/common/src/linux_80211.c
+9-31 files

FreeBSD/src fb97712sys/compat/linuxkpi/common/include/net mac80211.h, sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: implement ieee80211_start_tx_ba_session()

Implement ieee80211_start_tx_ba_session() as a start for rtw8x (and
select mt76 chipsets) to support more throughput.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+102-0sys/compat/linuxkpi/common/src/linux_80211.c
+3-3sys/compat/linuxkpi/common/include/net/mac80211.h
+105-32 files

FreeBSD/src ba79610sys/compat/linuxkpi/common/src linux_80211_macops.c linux_80211.h

LinuxKPI: 802.11: add three more driver downcalls

Add (*link_sta_rc_update), (*set_bitrate_mask), and
(*sta_set_decap_offload) mac80211 driver downcalls in preparation
for further work.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+57-0sys/compat/linuxkpi/common/src/linux_80211_macops.c
+7-0sys/compat/linuxkpi/common/src/linux_80211.h
+64-02 files

FreeBSD/src d798491libexec/nuageinit nuageinit nuageinit.7, libexec/nuageinit/tests nuageinit.sh

nuageinit: implement ssh_authkey_fingerprints support

Add support for the 'ssh_authkey_fingerprints' cloud-config key
which logs SSH host key fingerprints to the console via ssh-keygen.
DeltaFile
+24-0libexec/nuageinit/nuageinit
+21-0libexec/nuageinit/tests/nuageinit.sh
+5-0libexec/nuageinit/nuageinit.7
+50-03 files

FreeBSD/src 58184a3libexec/nuageinit nuageinit nuageinit.7, libexec/nuageinit/tests nuageinit.sh

nuageinit: implement keyboard support
DeltaFile
+29-1libexec/nuageinit/tests/nuageinit.sh
+24-0libexec/nuageinit/nuageinit
+20-0libexec/nuageinit/nuageinit.7
+73-13 files

FreeBSD/src 4662263libexec/nuageinit nuage.lua nuageinit.7, libexec/nuageinit/tests nuageinit.sh

nuageinit: implement resolv_conf support

Add support for the 'resolv_conf' cloud-config key which writes
directly to /etc/resolv.conf.
DeltaFile
+32-0libexec/nuageinit/tests/nuageinit.sh
+32-0libexec/nuageinit/nuage.lua
+17-0libexec/nuageinit/nuageinit.7
+6-0libexec/nuageinit/nuageinit
+87-04 files

FreeBSD/src 797dad9libexec/nuageinit nuage.lua nuageinit.7, libexec/nuageinit/tests nuageinit.sh

nuageinit: implement mounts support

Add support for the 'mounts' cloud-config key which configures
mount points by appending entries to /etc/fstab and creating
the corresponding directories.
DeltaFile
+47-1libexec/nuageinit/nuage.lua
+36-0libexec/nuageinit/nuageinit.7
+33-0libexec/nuageinit/nuageinit
+28-0libexec/nuageinit/tests/nuageinit.sh
+144-14 files

FreeBSD/src 6e54d00libexec/nuageinit/tests nuageinit.sh

nuageinit: add tests for bootcmd, ssh_deletekeys, disable_root, manage_etc_hosts
DeltaFile
+167-0libexec/nuageinit/tests/nuageinit.sh
+167-01 files

FreeBSD/src ab478deusr.sbin/pw pw_user.c

pw: fix incorrect metalog path in mkdir_home_parents
DeltaFile
+1-1usr.sbin/pw/pw_user.c
+1-11 files

FreeBSD/src fe1e912usr.sbin/pw pw_conf.c, usr.sbin/pw/tests pw_config_test.sh

pw: fix setmode(NULL) crash when homemode is a boolean value
DeltaFile
+10-4usr.sbin/pw/pw_conf.c
+12-0usr.sbin/pw/tests/pw_config_test.sh
+22-42 files

FreeBSD/src 5f9c8f1usr.sbin/pw pw_conf.c

pw: fix const qualification in unquote()

The unquote() function took a const char * parameter but modified the
string in-place (removing quote characters). Change the parameter to
char * and update callers that passed const char * to cast explicitly.
DeltaFile
+6-6usr.sbin/pw/pw_conf.c
+6-61 files