FreeBSD/src faeaa25share/man/man5 src.conf.5, share/mk bsd.debug.mk

kernel: MK_REPRODUCIBLE_PATHS for full paths vs /usr/src

There are many environments that you do not want the paths to be
canonicalized. For example, if I always build a product from a specific
path in a jail that's dependent on the product version, I don't want
that to be sanitized to /usr/src because when I have profiling tools run
against multiple kernels, I can't do A/B testing and results processing
if everything points to /usr/src (sadly, the profiling tools cannot
remap back to the original like gdb can). Since we need both active at
the same time, symbloic link fallbacks don't work.

We do want the rest of the build to be reproducible, however. We'll get
the same binaries if we rebuild later since we always rebuild with the
same path.

Turn them both on for maximum reproduction for environments where that
cannot be guaranteed.

Sponsored by:           Netflix

    [2 lines not shown]
DeltaFile
+8-1share/man/man5/src.conf.5
+6-0tools/build/options/WITH_REPRODUCIBLE_PATHS
+1-1sys/conf/kmod.mk
+1-1sys/conf/kern.post.mk
+1-1share/mk/bsd.debug.mk
+1-0sys/conf/kern.opts.mk
+18-41 files not shown
+19-47 files

FreeBSD/src 8e8d7d4stand/efi/loader/arch/amd64 multiboot2.c, stand/i386/libi386 multiboot.c elf32_freebsd.c

loader: Use C99 initializations for file_format

For greppability, use C99 initializers for the struct file_format.

Sponsored by:           Netflix
DeltaFile
+8-3stand/i386/libi386/multiboot.c
+8-2stand/userboot/userboot/elf64_freebsd.c
+8-2stand/userboot/userboot/elf32_freebsd.c
+8-2stand/efi/loader/arch/amd64/multiboot2.c
+8-2stand/i386/libi386/elf32_freebsd.c
+8-2stand/i386/libi386/elf64_freebsd.c
+48-139 files not shown
+70-3915 files

FreeBSD/src 424089astand/powerpc/ofw ppc-common.ldscript

loader: Fix powerpc64le by working around slof bug in qemu/slof

Fix powerpc 64 little endian booting by adding some padding. Due to

https://gitlab.com/slof/slof/-/blob/master/lib/libelf/elf32.c?ref_type=heads#L114
https://gitlab.com/slof/slof/-/blob/master/lib/libelf/elf32.c?ref_type=heads#L150

using <= instead of <, slof used to loop over the phdrs. It overruns by
1 and so on little endian it swizzles the first 32 bytes of .text. Work
around this by adding 32 bytes of padding after the headers. We should
fix this in slof, but it's in the just released QEMU 10.2, so we have to
pad things here for now.

Now powerpc64le + qemu works.

MFC After: 3 days (maybe EN too)
Reviewed by: adrian, jhibbits
Sponsored by: Netflix
DeltaFile
+1-1stand/powerpc/ofw/ppc-common.ldscript
+1-11 files

FreeBSD/src f22cffeshare/man/man4 vt.4

vt.4: Remove Xr to nonexistent vidcontrol(8)

PR: 291985
Fixes: a8740ba860bf ("vt.4: Document increasing scrollback size")
DeltaFile
+0-1share/man/man4/vt.4
+0-11 files

FreeBSD/src 294ba56clang/include/clang/Basic riscv_vector.td, clang/include/clang/Lex NoTrivialPPDirectiveTracer.h

Vendor import of llvm-project branch release/21.x llvmorg-21.1.7-0-gcd708029e0b2, a.k.a. 21.1.7 release.
DeltaFile
+945-4clang/lib/CodeGen/TargetBuiltins/RISCV.cpp
+77-858clang/include/clang/Basic/riscv_vector.td
+310-0clang/include/clang/Lex/NoTrivialPPDirectiveTracer.h
+132-102llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+191-26llvm/lib/Target/Mips/MipsExpandPseudo.cpp
+116-74llvm/tools/llvm-objdump/llvm-objdump.cpp
+1,771-1,064324 files not shown
+6,001-2,816330 files

FreeBSD/src e654680bin/sh options.h, bin/test test.c

sh: avoid warnings about too-long initializer strings

Mark `optletter` and `t_op::op_text` as `__non_string`, to avoid
warnings from clang 21 similar to:

    bin/sh/options.h:77:36: error: initializer-string for character array is too long, array size is 19 but initializer has size 20 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
       77 | const char optletter[NSHORTOPTS] = "efIimnsxvVECabupTPh";
          |                                    ^~~~~~~~~~~~~~~~~~~~~
    bin/test/test.c:153:3: error: initializer-string for character array is too long, array size is 2 but initializer has size 3 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
      153 |         {"==",  STREQ},
          |          ^~~~

MFC after:      3 days
Reviewed by:    jilles
Differential Revision: https://reviews.freebsd.org/D54362
DeltaFile
+1-1bin/test/test.c
+1-1bin/sh/options.h
+2-22 files

FreeBSD/src 5ea3ad0contrib/mtree mtree.c spec.c

Import latest mtree from NetBSD

Merge commit 'eb2ccba0c11b405ac613c3046997765317cc8b5c'

PR:             192839
PR:             219467
MFC after:      1 week

(cherry picked from commit f8cee1f2c2dfba6223385fd711cce9faeca76451)
DeltaFile
+22-14contrib/mtree/mtree.c
+11-14contrib/mtree/spec.c
+6-10contrib/mtree/compare.c
+4-3contrib/mtree/create.c
+43-414 files

FreeBSD/src f9d671fcontrib/mtree mtree.c spec.c

Import latest mtree from NetBSD

Merge commit 'eb2ccba0c11b405ac613c3046997765317cc8b5c'

PR:             192839
PR:             219467
MFC after:      1 week

(cherry picked from commit f8cee1f2c2dfba6223385fd711cce9faeca76451)
DeltaFile
+22-14contrib/mtree/mtree.c
+11-14contrib/mtree/spec.c
+6-10contrib/mtree/compare.c
+4-3contrib/mtree/create.c
+43-414 files

FreeBSD/src 791fb09contrib/mtree mtree.c spec.c

Import latest mtree from NetBSD

Merge commit 'eb2ccba0c11b405ac613c3046997765317cc8b5c'

PR:             192839
PR:             219467
MFC after:      1 week

(cherry picked from commit f8cee1f2c2dfba6223385fd711cce9faeca76451)
DeltaFile
+22-14contrib/mtree/mtree.c
+11-14contrib/mtree/spec.c
+6-10contrib/mtree/compare.c
+4-3contrib/mtree/create.c
+43-414 files

FreeBSD/src 086bedbtools/build Makefile

tools.build: also add sys/_visible.h to SYSINCS

This is needed since sys/cdefs.h includes sys/_visible.h.

Reported by:    kib
Fixes:          1c9ff80f0635
MFC after:      3 days
DeltaFile
+1-0tools/build/Makefile
+1-01 files

FreeBSD/src 939ac0csys/vm vnode_pager.c

vnode_pager: clean up undirty_pages()

The first (second) loop of vnode_pager_undirty_pages() includes an
if-test to test whether an iteration is the last (first). Move those
if-tests out of their loops.  That allows the compiler to unroll the
loops.

Reviewed by:    alc, kib
Differential Revision:  https://reviews.freebsd.org/D54353
DeltaFile
+37-39sys/vm/vnode_pager.c
+37-391 files

FreeBSD/src 350f319contrib/kyua/cli cmd_debug.cpp, contrib/kyua/engine scheduler.cpp scheduler.hpp

kyua: Make "debug -p" skip writing stdout/stderr to tmp files

Reviewed by:    kp, ngie
Differential Revision:  https://reviews.freebsd.org/D54363
DeltaFile
+15-5contrib/kyua/engine/scheduler.cpp
+5-1contrib/kyua/cli/cmd_debug.cpp
+5-1contrib/kyua/engine/scheduler.hpp
+25-73 files

FreeBSD/src 0d31189share/man/man4 linprocfs.4

linprocfs.4: Improve docs around pid/self entries

Mark <pid> as a placeholder and document that self is a symlink to a directory.

PR:             283080
Reviewed by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D54358
DeltaFile
+4-4share/man/man4/linprocfs.4
+4-41 files

FreeBSD/src e1bfd54usr.sbin/bhyve bhyve_config.5 bhyve.8

bhyve: Document that MAC address has to be unicast

bhyve accepts any MAC address even foreign as long it is a unicast one.

Reviewed by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D54372
DeltaFile
+8-4usr.sbin/bhyve/bhyve_config.5
+2-1usr.sbin/bhyve/bhyve.8
+10-52 files

FreeBSD/src 02376betests/ci Makefile

tests/ci: Use :H:H rather than ../..

In general we want to strip subdir components, rather than appending
`..`s.

Reviewed by:    lwhsu
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54352
DeltaFile
+1-1tests/ci/Makefile
+1-11 files

FreeBSD/src bd8296bsys/modules Makefile, sys/modules/acpi Makefile

Build acpi kernel modules on aarch64

For now, the only kernel module built is acpi_ged.ko.

Sponsored by:   Netflix
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D54315
DeltaFile
+5-1sys/modules/acpi/Makefile
+1-1sys/modules/Makefile
+6-22 files

FreeBSD/src fe74d52sys/modules/acpi Makefile

sys/modules/acpi/Makefile: One line per subdirectory

This makes diffs that add or remove modules easier to read.

Reviewed by:    imp
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D54314
DeltaFile
+15-3sys/modules/acpi/Makefile
+15-31 files

FreeBSD/src 11757b1sys/dev/acpica acpi.c

acpi: Statically initialize acpi_ioctl_hooks

Reviewed by:    imp
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D54313
DeltaFile
+6-11sys/dev/acpica/acpi.c
+6-111 files

FreeBSD/src 425b41fsys/dev/acpica acpi.c

acpi: Use M_WAITOK in acpi_register_ioctl

This function is only called from device attach routines which can
sleep.

Reviewed by:    imp
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D54312
DeltaFile
+1-2sys/dev/acpica/acpi.c
+1-21 files

FreeBSD/src 4eb560fsys/dev/acpica acpi.c

acpi: Reject duplicate handlers for ioctl commands

Reviewed by:    imp
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D54311
DeltaFile
+9-1sys/dev/acpica/acpi.c
+9-11 files

FreeBSD/src 88f8e3csys/dev/acpica acpi_apei.c

acpi_apei: Remove the hest member from the softc

This is only used during attach and freed after use, so just use a
local variable in the attach routine instead to avoid leaving a
dangling pointer around in the softc.

Reviewed by:    imp
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D54310
DeltaFile
+5-6sys/dev/acpica/acpi_apei.c
+5-61 files

FreeBSD/src 5b39245sys/dev/acpica acpi.c

acpi: Free ivars in bus_child_deleted method

Reviewed by:    imp
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D54309
DeltaFile
+1-0sys/dev/acpica/acpi.c
+1-01 files

FreeBSD/src 6b2e4dausr.sbin/acpi/acpidump acpi.c

acpidump: Extend the decoding of entries in the EINJ and ERST tables

- Decode the Action, Instruction, and Flags fields for these tables

- Omit the Flags field if it is zero

- Omit the Value field for instrunctions that do not use it

Reviewed by:    imp
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D54308
DeltaFile
+194-14usr.sbin/acpi/acpidump/acpi.c
+194-141 files

FreeBSD/src 1c9ff80tools/build Makefile

tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it

This is needed to let the legacy stage compile against newer versions of
sys/font.h, which transitively includes sys/cdefs.h, and requires the
new __nonstring macro from it.

Fixes:          e2c93ed09f25
MFC after:      3 days
DeltaFile
+4-0tools/build/Makefile
+4-01 files

FreeBSD/src 6660446usr.sbin/bhyve bhyve_config.5

bhyve_config.5: Fix consistency and terms in manpage

Correct inconsistent spelling of terms and duplication.

Reviewed by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D54370
DeltaFile
+9-8usr.sbin/bhyve/bhyve_config.5
+9-81 files

FreeBSD/src e2c93edsys/sys font.h

sys/font.h: avoid warnings about too-long initializer strings

Mark `font_header::fh_magic` as `__non_string`, to avoid a warning from
clang 21 similar to:

    /usr/src/usr.bin/vtfontcvt/vtfontcvt.c:763:15: error: initializer-string for character array is too long, array size is 8 but initializer has size 9 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
      763 |                 .fh_magic = FONT_HEADER_MAGIC,
          |                             ^~~~~~~~~~~~~~~~~
    /usr/obj/usr/src/amd64.amd64/tmp/usr/include/sys/font.h:109:27: note: expanded from macro 'FONT_HEADER_MAGIC'
      109 | #define FONT_HEADER_MAGIC       "VFNT0002"
          |                                 ^~~~~~~~~~

MFC after:      3 days
DeltaFile
+1-1sys/sys/font.h
+1-11 files

FreeBSD/src cd88001usr.sbin/pmcannotate pmcannotate.c

pmcannotate: avoid accessing uninitialized local variables

Initialize `tbfl` and `tofl` to NULL, and check whether they are
non-NULL before calling remove(3) on them, to avoid warnings from clang
21 similar to:

    usr.sbin/pmcannotate/pmcannotate.c:746:3: error: variable 'tbfl' is uninitialized when used here [-Werror,-Wuninitialized]
      746 |                 FATAL(exec, "%s: Impossible to locate the binary file\n",
          |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      747 |                     exec);
          |                     ~~~~~
    usr.sbin/pmcannotate/pmcannotate.c:57:9: note: expanded from macro 'FATAL'
       57 |         remove(tbfl);                                                   \
          |                ^~~~
    usr.sbin/pmcannotate/pmcannotate.c:695:12: note: initialize the variable 'tbfl' to silence this warning
      695 |         char *tbfl, *tofl, *tmpdir;
          |                   ^
          |                    = NULL
    usr.sbin/pmcannotate/pmcannotate.c:746:3: error: variable 'tofl' is uninitialized when used here [-Werror,-Wuninitialized]

    [13 lines not shown]
DeltaFile
+6-2usr.sbin/pmcannotate/pmcannotate.c
+6-21 files

FreeBSD/src 3054e22usr.sbin/bsnmpd/tools/libbsnmptools bsnmptc.c

bsnmpd: avoid warnings about too-long initializer strings

Mark `UTC` as `__non_string`, to avoid a warning from clang 21 similar
to:

    usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c:339:29: error: initializer-string for character array is too long, array size is 3 but initializer has size 4 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
    --- all_subdir_usr.sbin ---
      339 |         static const char UTC[3] = "UTC";
          |                                    ^~~~~

MFC after:      3 days
DeltaFile
+1-1usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
+1-11 files

FreeBSD/src eaa424eusr.sbin/bsnmpd/modules/snmp_pf pf_snmp.c

snmp_pf: remove errno usage after pfctl_get_status_h change

pfctl_get_status_h() does not set errno, so don't log it.

PR:             291936
Reviewed by:    kp
DeltaFile
+1-2usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
+1-21 files

FreeBSD/src 3e5025eusr.sbin/bhyve bhyve.8

bhyve.8: Fix consistency and terms in manpage

Correct inconsistent spelling of terms and duplication.

Reviewed by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D54332

(cherry picked from commit 5819f8b285fc55a75e5dea56ffe73b376525150c)
DeltaFile
+33-28usr.sbin/bhyve/bhyve.8
+33-281 files