FreeBSD/src 2a5c5b8lib/libc/string swab.c

swab: Correctly treat the data as misaligned

The __aligned attribute in the previous version applied to the location
of the pointers, not the data the pointers pointed to.  While this
could be fixed by applying the attribute to a local typedef of uint16_t,
just using memcpy() for the unaligned access is simpler and ISO C.

This fixes the build on CHERI architectures which do not support
misaligned pointers and were thus failing with:

lib/libc/string/swab.c:12:18: error: alignment (1) of 'const uint16_t *' (aka 'const unsigned short *') is less than the required capability alignment (16) [-Werror,-Wcheri-capability-misuse]
   12 |         const uint16_t *f __aligned(1) = from;
      |

Co-authored by: Jessica Clarke <jrtc27 at FreeBSD.org>
Fixes:          02ebbc781f08 ("swab: Fix implementation to support overlapping copies")
Sponsored by:   AFRL, DARPA

Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D54399
DeltaFile
+10-3lib/libc/string/swab.c
+10-31 files

FreeBSD/src e96ec1alibexec/rtld-elf rtld.c rtld.h

rtld: Use uintptr_t instead of Elf_Addr for init/fini function pointers

This is a no-op on non-CHERI architectures, but is required for CHERI
where Elf_Addr is only an address and not a complete pointer.

While here, consistently use `uintptr_t *` for arrays of init/fini
function pointers.

Reviewed by:    imp, kib
Effort:         CHERI upstreaming
Obtained from:  CheriBSD
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D54711
DeltaFile
+20-22libexec/rtld-elf/rtld.c
+5-5libexec/rtld-elf/rtld.h
+25-272 files

FreeBSD/src 31a440alibexec/rtld-elf rtld.c map_object.c, libexec/rtld-elf/powerpc reloc.c

rtld: Simplify walking program headers

Store phnum in Obj_Entry instead of phsize and use that to simplify
the terminate expressions when iterating over program headers.

Reviewed by:    kib
Obtained from:  CheriBSD
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D54710
DeltaFile
+8-10libexec/rtld-elf/rtld.c
+1-3libexec/rtld-elf/powerpc64/reloc.c
+1-3libexec/rtld-elf/powerpc/reloc.c
+1-1libexec/rtld-elf/map_object.c
+1-1libexec/rtld-elf/rtld.h
+12-185 files

FreeBSD/src 3ea97c9libexec/rtld-elf debug.h

rtld: Switch to using <assert.h> for assert

The stock assert() works because rtld-libc includes a custom
implementation of __assert().

Reviewed by:    imp, kib
Obtained from:  CheriBSD
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D54712
DeltaFile
+1-4libexec/rtld-elf/debug.h
+1-41 files

FreeBSD/src fef84fdlib/libexecinfo/tests sigtramp_test.c

libexecinfo: tests: Expect failure on aarch64

Add a guard that expects a failure of the test on aarch64.

Reviewed by:    emaste
Fixes:          df1ea5887326 ("tests: Test libexecinfo backtrace call througth signal trampoline")
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54675
DeltaFile
+8-0lib/libexecinfo/tests/sigtramp_test.c
+8-01 files

FreeBSD/src fd26fb8.github CODEOWNERS

CODEOWNERS: Add jlduran as a blocklist CODEOWNER

Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D54696
DeltaFile
+4-0.github/CODEOWNERS
+4-01 files

FreeBSD/src 9c4a41dshare/man/man4 mca.4 Makefile

mca(4): Add man page

Reviewed by:    markj
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D54115
DeltaFile
+277-0share/man/man4/mca.4
+2-0share/man/man4/Makefile
+279-02 files

FreeBSD/src 6f41575share/man/man7 tuning.7

tuning.7: wording fixes

Submitted by:   markj
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D54572
DeltaFile
+2-2share/man/man7/tuning.7
+2-21 files

FreeBSD/src 8cd687ashare/man/man7 tuning.7

tuning.7: use the correct word for collapsing

Fixes: 457b940bfb6a228af1281f357b627ecf1e26fea5
Signed-off-by: Oliver Pinter <oliver.pntr+freebsd at gmail.com>
MFC after:      1 week
DeltaFile
+1-1share/man/man7/tuning.7
+1-11 files

FreeBSD/src 52d19dfcontrib/nvi/ex extern.h, contrib/nvi/vi extern.h

nvi: import version 2.2.2
DeltaFile
+0-444usr.bin/vi/extern.h
+145-0usr.bin/vi/vi_extern.h
+145-0contrib/nvi/vi/extern.h
+131-0usr.bin/vi/ex_extern.h
+131-0usr.bin/vi/common_extern.h
+131-0contrib/nvi/ex/extern.h
+683-44427 files not shown
+1,179-58133 files

FreeBSD/src b848037etc/mtree BSD.usr.dist

mtree: usr: Add missing pkg/triggers entry

Reviewed by:    ivy
Fixes:          ea5e50c2985b ("packages: Add a mandoc package")
Differential Revision:  https://reviews.freebsd.org/D54682
DeltaFile
+4-0etc/mtree/BSD.usr.dist
+4-01 files

FreeBSD/src 0d9fd06etc/mtree BSD.debug.dist

gdb: Add missing mtree debug entry

Reviewed by:    markj
Fixes:          ea675a43f09b ("libexec/kgdb: Add new modules and install them together with debug info")
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54680
DeltaFile
+2-0etc/mtree/BSD.debug.dist
+2-01 files

FreeBSD/src 3110ba7. CMakeLists.txt, common extern.h options_def.h

Vendor import nvi 2.2.2
DeltaFile
+145-0vi/extern.h
+131-0common/extern.h
+131-0ex/extern.h
+86-0common/options_def.h
+76-0ex/ex_def.h
+34-33CMakeLists.txt
+603-3320 files not shown
+740-13526 files

FreeBSD/src 68ad2b0contrib/ncurses configure aclocal.m4, contrib/ncurses/doc/html ncurses-intro.html

ncurses: merge update to ncurses 6.6

6.6 is ABI compatible with 6.5 (tested with abidiff)
Remove html documentation to ease updates

MFC After:      1 month
DeltaFile
+15,906-15,332contrib/ncurses/configure
+2,456-1,968contrib/ncurses/misc/terminfo.src
+0-3,390contrib/ncurses/doc/html/ncurses-intro.html
+0-2,282contrib/ncurses/ncurses/win32con/win_driver.c
+853-527contrib/ncurses/aclocal.m4
+639-518contrib/ncurses/announce.html.in
+19,854-24,017411 files not shown
+40,960-36,365417 files

FreeBSD/src c5a1e08. configure, Ada95 configure

Vendor import ncurses 6.6
DeltaFile
+15,906-15,332configure
+4,432-3,186Ada95/configure
+2,637-2,084test/configure
+2,456-1,968misc/terminfo.src
+2,089-1,937doc/html/NCURSES-Programming-HOWTO.html
+0-2,282ncurses/win32con/win_driver.c
+27,520-26,789756 files not shown
+62,770-50,521762 files

FreeBSD/src f213856share/misc pci_vendors

pci_vendors: update to version 2025-12-12

(cherry picked from commit 3b8e13c4696e9b3dab284842902b9f7b18073c8d)
DeltaFile
+1,079-233share/misc/pci_vendors
+1,079-2331 files

FreeBSD/src d565a5eshare/misc usb_vendors

usb_vendors: update to 2025-09-15

(cherry picked from commit 90cd623611b22e2e484b800743845b38d9c20250)
DeltaFile
+9-2share/misc/usb_vendors
+9-21 files

FreeBSD/src 23a18b7share/misc pci_vendors

pci_vendors: update to 2025-10-18

(cherry picked from commit e5f545e0d872fbfdb6c3c94ca81e7f3bce9d094a)
DeltaFile
+6-2share/misc/pci_vendors
+6-21 files

FreeBSD/src a56998elibexec/nuageinit/tests nuageinit.sh

nuageinit: fix test after recent behaviour change

with recent change nuageinit always create a "freebsd" user, if no
users are specified, which means we do need to get the rootdir in the
testsuite containing a group file otherwise pw complains and the tests
fails.

(cherry picked from commit 65e77d34fdff9065616cfaedef3ef53329cdad26)
DeltaFile
+4-0libexec/nuageinit/tests/nuageinit.sh
+4-01 files

FreeBSD/src 14f366blibexec/nuageinit nuageinit

nuageinit: set the hostname when user-data is missing

This address the situation reported here
https://github.com/freebsd/freebsd-src/pull/1952#issuecomment-3720210259

The user-data file was missing and the `sethostname` function is never
called. This commit adjusts slightly the logic to avoid the `exit()` call
when the `user-data` file is missing.

MFC After:      1 week
Signed-off-by: Gonéri Le Bouder <goneri at lebouder.net>
Differential Revision:  https://github.com/freebsd/freebsd-src/pull/1953
(cherry picked from commit cae280931c9e1f072d8bf300c377ae120300b898)
DeltaFile
+67-46libexec/nuageinit/nuageinit
+67-461 files

FreeBSD/src d375999release/tools arm.subr vagrant.conf

release: make sh the default shell

The default shell for root has been changed to sh(1) followup changing
in release images sh(1) the shell for the "freebsd" user.

MFC After:      1 week
Reviewed by:    manu, emaste (re)
Approved by:    manu, emaste (re)
Differential Revision:  https://reviews.freebsd.org/D54602

(cherry picked from commit d64db8892f8519f108d838f8d7e1d3b675ed37cd)
DeltaFile
+1-1release/tools/arm.subr
+1-1release/tools/vagrant.conf
+2-22 files

FreeBSD/src 9f5c4fbrelease Makefile, release/tools openstack.conf vagrant.conf

release: stop disabling sendmail

sendmail is already disabled by default everywhere since 14.0

MFC After:      1 week
Approved by:    emaste (re)
Reviewed by:    emaste (re)
Differential Revision:  https://reviews.freebsd.org/D54575

(cherry picked from commit d07198ff72aeddc5a884cfb81b22c22f2abf88f6)
DeltaFile
+0-6release/tools/openstack.conf
+0-6release/tools/vagrant.conf
+0-4release/tools/arm.subr
+0-3release/Makefile
+0-1release/tools/oracle.conf
+0-205 files

FreeBSD/src bdc2a7clibexec/nuageinit nuageinit.7

nuageinit(7): pert mandoc linter

MFC After:      1 week

(cherry picked from commit 9ea30bbb0e3c34b3ea369e217d930e2165610c0c)
DeltaFile
+17-17libexec/nuageinit/nuageinit.7
+17-171 files

FreeBSD/src 5ba6ed8libexec/nuageinit nuageinit nuageinit.7

nuageinit: config2_network support dns service cfg

This change enhances `config2_network()` to honor the DNS
configuration, when it's defined through the `services` section.

The `network_data.json` file can hold DNS configuration at two different
places:
- within a network configuration entry
- or `dns` entry in the `services` section, in this case the configuration is global.

An example of such configuration:

{"links": [{"id": "interface0", "type": "phy",
"ethernet_mac_address": "52:54:00:01:59:03"}], "networks": [{"id": "private-ipv4-0", "type": "ipv4", "link": "interface0",
"ip_address": "192.168.123.5", "netmask": "255.255.255.0", "routes": [{"network": "0.0.0.0", "netmask": "0.0.0.0", "gateway":
"192.168.123.1"}], "network_id": "9e5b1ed9-f5e6-4941-a90f-2e06bab858de", "dns_nameservers": ["192.168.123.1"], "services": [{"type":
 "dns", "address": "192.168.123.1"}]}], "services": [{"type": "dns", "address": "192.168.123.1"}]}

See: https://docs.openstack.org/nova/latest/user/metadata.html

    [5 lines not shown]
DeltaFile
+24-1libexec/nuageinit/nuageinit
+2-0libexec/nuageinit/nuageinit.7
+26-12 files

FreeBSD/src 46eca82libexec/nuageinit nuageinit

nuageinit: only create the default user when needed

The "default" user should only be created when:

- the `users` key is missing
- or the `default` string is present in the `users` list

Since the `public_keys` is extracted from the meta-data, this patch has
to slightly adjust the way they are loaded.
The change simplify the logic around the default user SSH key injection.
Both `ssh_authorized_keys` and `public_keys` are handled at the same time.

MFC After:      1 week
Signed-off-by: Gonéri Le Bouder <goneri at lebouder.net>
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1952
(cherry picked from commit cbc00fcc2b92e6e38b0a180261547b1a22b461bd)
DeltaFile
+89-63libexec/nuageinit/nuageinit
+89-631 files

FreeBSD/src 01c811clibexec/nuageinit nuageinit.7

nuageinit/man: clarify how to enable sudo and doas

Clarify that both `sudo` and `doas` are not part of the base system and
they need to be listed in the `packages` section if the user wants to
enable them.

MFC After:      1 week
Signed-off-by: Gonéri Le Bouder <goneri at lebouder.net>
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1944
(cherry picked from commit 402f1353707783e2adc8d0bff01faf557820f6f5)
DeltaFile
+11-1libexec/nuageinit/nuageinit.7
+11-11 files

FreeBSD/src 2c5ea8fshare/misc pci_vendors

pci_vendors: update to version 2025-12-12

(cherry picked from commit 3b8e13c4696e9b3dab284842902b9f7b18073c8d)
DeltaFile
+1,079-233share/misc/pci_vendors
+1,079-2331 files

FreeBSD/src da8c96fshare/misc usb_vendors

usb_vendors: update to 2025-09-15

(cherry picked from commit 90cd623611b22e2e484b800743845b38d9c20250)
DeltaFile
+9-2share/misc/usb_vendors
+9-21 files

FreeBSD/src b1281c6share/misc pci_vendors

pci_vendors: update to 2025-10-18

(cherry picked from commit e5f545e0d872fbfdb6c3c94ca81e7f3bce9d094a)
DeltaFile
+6-2share/misc/pci_vendors
+6-21 files

FreeBSD/src c8763bdrelease/tools arm.subr vagrant.conf

release: make sh the default shell

The default shell for root has been changed to sh(1) followup changing
in release images sh(1) the shell for the "freebsd" user.

MFC After:      1 week
Reviewed by:    manu, emaste (re)
Approved by:    manu, emaste (re)
Differential Revision:  https://reviews.freebsd.org/D54602

(cherry picked from commit d64db8892f8519f108d838f8d7e1d3b675ed37cd)
DeltaFile
+1-1release/tools/arm.subr
+1-1release/tools/vagrant.conf
+2-22 files