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

FreeBSD/src 4fd8a69usr.sbin/pw pw_user.c, usr.sbin/pw/tests pw_useradd_test.sh

pw: fix inverted condition in shell_path error handling
DeltaFile
+1-1usr.sbin/pw/pw_user.c
+1-1usr.sbin/pw/tests/pw_useradd_test.sh
+2-22 files

FreeBSD/src 13f4a37usr.sbin/pw pw_group.c, usr.sbin/pw/tests pw_groupdel_test.sh

pw: fix uninitialized name pointer in pw_group_del

The 'name' variable could be left uninitialized if neither the
positional argument nor -n is supplied, leading to undefined
behavior when passed to getgroup().
DeltaFile
+15-1usr.sbin/pw/tests/pw_groupdel_test.sh
+1-1usr.sbin/pw/pw_group.c
+16-22 files

FreeBSD/src 1cc5684usr.sbin/pw pw.h

pw: remove duplicate pw_user_add declarations
DeltaFile
+0-3usr.sbin/pw/pw.h
+0-31 files

FreeBSD/src ba58e8alibexec/nuageinit nuage.lua nuageinit

nuageinit: implement manage_etc_hosts support

Add support for adding the instance hostname to /etc/hosts on the
127.0.0.1 and ::1 localhost lines, matching cloud-init's default
behaviour (manage_etc_hosts: true).

create a revolve_hostname helper to avoid code duplucation.
DeltaFile
+62-0libexec/nuageinit/nuage.lua
+24-6libexec/nuageinit/nuageinit
+13-0libexec/nuageinit/nuageinit.7
+99-63 files

FreeBSD/src b9be760libexec/nuageinit nuageinit nuageinit.7, libexec/rc/rc.d nuageinit

nuageinit: implement bootcmd support

Add support for the 'bootcmd' cloud-config directive, which allows
running commands very early in the boot process, before the hostname
is set and before the network is configured.

- nuageinit: bootcmd() function follows the same pattern as runcmd(),
  writing commands to /var/cache/nuageinit/bootcmds instead of runcmds.
  It is the first entry in the pre_network_calls table.

- rc.d/nuageinit: execute /var/cache/nuageinit/bootcmds immediately
  after /usr/libexec/nuageinit completes, before unmounting the config
  drive. This ensures bootcmd runs before NETWORKING per cloud-init spec.
DeltaFile
+18-0libexec/nuageinit/nuageinit
+5-0libexec/nuageinit/nuageinit.7
+4-0libexec/rc/rc.d/nuageinit
+27-03 files

FreeBSD/src f7c0bd2usr.bin/file/tests Makefile

file: normalize .result files to ensure trailing newline on install

Some upstream result files introduced in file 5.47 (e.g., bgcode.result)
lack a trailing newline, causing the contrib_file_tests ATF test to
fail with "cmp: EOF on bgcode.result".  Generate normalized copies
of the expected results and install those instead.

MFC after:      3 days
Fixes:          e949ce9dc0e6fff26e83904f1008b76d36ba0a37
DeltaFile
+12-1usr.bin/file/tests/Makefile
+12-11 files

FreeBSD/src ad52456usr.bin/limits limits.c

limits: Fix pipebuf resource type

* pipebuf is a size but is listed as a count

PR:             295623
MFC after:      1 week
Fixes:          f54f41403d14 ("usr.bin/limits: support RLIMIT_PIPEBUF")
Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D57456
DeltaFile
+1-1usr.bin/limits/limits.c
+1-11 files

FreeBSD/src a85e390usr.sbin/etcupdate etcupdate.sh

etcupdate: Make diff -l actually work

While here, remove unnecessary blank lines.

MFC after:      1 week
Fixes:          6d65c91b9a47 ("etcupdate: fix arguments order of diff command")
Reviewed by:    Boris Lytochkin <lytboris at gmail.com>
Differential Revision:  https://reviews.freebsd.org/D57330
DeltaFile
+4-14usr.sbin/etcupdate/etcupdate.sh
+4-141 files

FreeBSD/src 823d00bcontrib/telnet/libtelnet getent.c, include stdlib.h

libc: Constify the getcap API

MFC after:      1 week
Inspired by:    NetBSD
Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D57252
DeltaFile
+10-8lib/libc/gen/getcap.c
+4-4lib/libc/gen/getcap.3
+1-6libexec/getty/subr.c
+3-3include/stdlib.h
+3-3usr.bin/cap_mkdb/cap_mkdb.c
+3-3contrib/telnet/libtelnet/getent.c
+24-275 files not shown
+31-3411 files

FreeBSD/src ba0d22elib/libarchive Makefile.inc

libarchive: Fix typo in sed command

MFC after:      1 week
Fixes:          eb3a0a74a069 ("libarchive: Clean up the build configuration")
Reported by:    Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+1-1lib/libarchive/Makefile.inc
+1-11 files

FreeBSD/src ea4886fsys/fs/nfs nfs_commonkrpc.c

nfs_commonkrpc.c: Improve handling of NFSv4.1/4.2 recovery

Commit 4d80d4913e79 fixed a long standing bug in the recovery
code.  However. glebius@ reported seeing multiple
recovery cycles with this patch during an NFSv4.1/4.2
server reboot.

This commit should minimize the risk of multiple
recovery cycles.

PR:     294925
Reported by:    Jov <amutu at amutu.com>
MFC after:      2 weeks
Fixes:  4d80d4913e79 ("nfs: Fix argument typo to avoid a crash")
DeltaFile
+8-5sys/fs/nfs/nfs_commonkrpc.c
+8-51 files

FreeBSD/src 22c1f5dlibexec/nuageinit nuageinit.7 nuageinit

nuageinit: complete SSH support with ssh_deletekeys and disable_root

Add missing SSH cloud-config options from cloud-init spec:

- ssh_deletekeys: remove existing SSH host keys on first boot so
  new ones are generated automatically by sshd(8).
  Implemented as delete_ssh_host_keys() in nuage.lua using lfs.dir()
  with a directory existence guard via lfs.attributes().

- disable_root: set PermitRootLogin to 'no' (or a custom value via
  disable_root_opts) in /etc/ssh/sshd_config.

- disable_root_opts: optional string or array to override the
  PermitRootLogin value used when disable_root is true. Only the
  first array element is used.
DeltaFile
+32-0libexec/nuageinit/nuageinit.7
+24-0libexec/nuageinit/nuageinit
+14-0libexec/nuageinit/nuage.lua
+70-03 files

FreeBSD/src ea0932dlibexec/nuageinit nuage.lua

nuageinit: refactor goto abuse in chpasswd()

Replace goto next/list pattern with proper elseif/else control
structure. The goto-based flow was fragile and hard to follow;
the elseif chain makes the validation logic explicit and linear.
DeltaFile
+11-17libexec/nuageinit/nuage.lua
+11-171 files

FreeBSD/src 0ba9b7blibexec/nuageinit nuage.lua, libexec/nuageinit/tests update_sshd_config.lua

nuageinit: fix update_sshd_config crash when file does not exist

Previously update_sshd_config() would assert-fail if sshd_config did
not exist. Now it creates a new file with the given key/value.

Also replace the fragile simultaneous r+ + temp file approach with
a cleaner read-then-write pattern: read all lines into memory, modify
as needed, then write to a temp file and rename. All assert() calls
replaced with proper error handling via warnmsg().

Add test case for missing file creation.
DeltaFile
+31-12libexec/nuageinit/nuage.lua
+7-0libexec/nuageinit/tests/update_sshd_config.lua
+38-122 files

FreeBSD/src cf5722elibexec/nuageinit nuage.lua

nuageinit: fix TOCTOU in addsshkey, adddoas, addsudo

Replace check-then-create patterns with direct creation:

- addsshkey: check what exists before creation, use mkdir_p() for
  .ssh directory, handle errors with warnmsg() instead of assert().
  Apply chmod/chown only on newly created files/directories.

- adddoas: same pattern for doas.conf and the etc directory.

- addsudo: same pattern for the sudoers file and sudoers.d directory.

All three functions now use warnmsg() for error handling instead of
returning nil,err or using assert().
DeltaFile
+52-40libexec/nuageinit/nuage.lua
+52-401 files

FreeBSD/src fdff892libexec/nuageinit nuage.lua

nuageinit: fix non-standard f:close(cmd) and remove dead precmd

- f:close(cmd) -> f:close() in adduser() and exec_change_password():
  the 'cmd' argument is not standard Lua and is silently ignored.
- Remove dead 'precmd' variable in adduser().
DeltaFile
+3-4libexec/nuageinit/nuage.lua
+3-41 files