FreeBSD/src 4702384. ObsoleteFiles.inc

Revert "Add a few missed files to ObsoleteFiles.inc"

This reverts commit 33175a5059970bf9e888a799d3578e2902d765af, because
some of the directories and files are still being installed.
DeltaFile
+0-9ObsoleteFiles.inc
+0-91 files

FreeBSD/src d4b36d6. ObsoleteFiles.inc

Revert "Add a few missed files to ObsoleteFiles.inc"

This reverts commit 2e089a89812b56329741cd8dc2d272405a6e73ff, because
some of the directories and files are still being installed.
DeltaFile
+0-9ObsoleteFiles.inc
+0-91 files

FreeBSD/src 744cc51sys/sys mbuf.h

mbuf: Parenthesize macro arguments

MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
DeltaFile
+1-1sys/sys/mbuf.h
+1-11 files

FreeBSD/src 70509d1contrib/llvm-project/libunwind/src UnwindRegistersSave.S

Merge commit 6b0a46958c56 from llvm-project (by Piotr Kubaj):

  [libunwind][PPC64] Fix unw_getcontext corrupting callee-saved VSX registers on LE (#198371)

  This is the first of two independent fixes for libunwind on ppc64le
  (ELFv2 ABI, little-endian), where two separate bugs together cause
  SIGSEGV during backtracing. This commit addresses the VSX register
  corruption; the TOC-restore fault is handled in a follow-up. Both
  were discovered while debugging lang/rust build failures with
  RUST_BACKTRACE=1 on FreeBSD/powerpc64le (IBM POWER9).

  On ppc64le, `unw_getcontext` saves each VS register with an in-place
  `xxswapd n, n` followed by `stxvd2x`. The swap is needed because
  `stxvd2x` stores doublewords in the wrong order on LE. However, the
  macro never applies a second `xxswapd` to restore the register after
  the store, so all 64 VS registers are permanently corrupted on return
  from `unw_getcontext`.

  This affects every callee-saved VSX register: f14-f31 (VSR14-VSR31)

    [11 lines not shown]
DeltaFile
+4-0contrib/llvm-project/libunwind/src/UnwindRegistersSave.S
+4-01 files

FreeBSD/src c6f5d8fsys/arm64/arm64 trap.c

arm64: Use the fault handler when one is provided

In align_abort() and tag_check_abort(), if we got a fault while in kernel,
do not panic if a fault handler has been provided. We may get such a fault
when trying to read or write userland data, it can at least happen with
_umtx_op() if an unaligned pointer is provided. Instead, just let the
fault handler deal with it.

MFC After: 1 week
Approved by: andrew
Differential Revision: https://reviews.freebsd.org/D58426
DeltaFile
+19-0sys/arm64/arm64/trap.c
+19-01 files

FreeBSD/src 6afb2b8tests/sys/kern Makefile exterr_test.c

tests/exterr_test: use ATF_REQUIRE_FEATURE to check exterr_strings

This keeps the skipped test message consistent with others.

Reviewed by:    netchild
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 3e946566c134e039f9c777eaa1232a32e383692c)
DeltaFile
+3-2tests/sys/kern/exterr_test.c
+2-0tests/sys/kern/Makefile
+5-22 files

FreeBSD/src 81011catests/sys/kern exterr_test.c

exterror tests: harden the checks

Skip the message-content check on kernels that do not advertise the
exterr_strings feature, and pin the output format by clearing
EXTERROR_VERBOSE.

Reviewed by:            kib
MFC after:              1 week
Assisted-by:            Claude Code (Fable 5)
Differential Revision:  https://reviews.freebsd.org/D58322

(cherry picked from commit 1092aba1260ce5efb0d718352aa22158605c7506)
DeltaFile
+23-1tests/sys/kern/exterr_test.c
+23-11 files

FreeBSD/src c724b26share/man/man9 exterror.9, sys/kern sys_generic.c

exterror: advertise error strings via kern.features.exterr_strings

Allow userland, in particular test cases for EXTERROR conversions,
to detect at run time whether extended errors include the
descriptive message strings, which depends on the EXTERR_STRINGS
kernel option and cannot be probed in any other way.

Reviewed by:            kib
MFC after:              1 week
Assisted-by:            Claude Code (Fable 5)
Differential Revision:  https://reviews.freebsd.org/D58321

(cherry picked from commit c8db6d4b63f18c81557628ad0d3f715bea46cc99)
DeltaFile
+12-1share/man/man9/exterror.9
+4-0sys/kern/sys_generic.c
+16-12 files

FreeBSD/src 24983c4bin/sleep sleep.1

sleep: Fix man page about IGINFO output

Reviewed by:    des
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D58483
DeltaFile
+2-2bin/sleep/sleep.1
+2-21 files

FreeBSD/src 823e3bbusr.bin/xinstall xinstall.c

install: Code cleanup

This is mainy focused on using bool for booleans but also renames some
variables for clarity, adds some explicit comparisons, adds some braces,
with miscellanous style fixes thrown in.

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D58355

(cherry picked from commit 134ddd372f8213885dd828ab38cec2384fd451db)
DeltaFile
+106-104usr.bin/xinstall/xinstall.c
+106-1041 files

FreeBSD/src 8ba2237usr.bin/xinstall xinstall.c

install: Fix typo

MFC after:      1 week
Reported by:    markj
Fixes:          d34870708db9 ("install: Allow installing stdin")

(cherry picked from commit 0eef3d01c22a5e00cd2cf10c34871eddbfd22aa0)
DeltaFile
+1-1usr.bin/xinstall/xinstall.c
+1-11 files

FreeBSD/src eaf2b73usr.bin/xinstall install.1 xinstall.c, usr.bin/xinstall/tests install_test.sh

install: Allow installing stdin

If from_name is "/dev/stdin" or "-" and the target is not a directory,
skip the comparison and copy data from standard input to the target.

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D58348

(cherry picked from commit d34870708db9fa1eb8e29b5e085b755de1189b1f)
DeltaFile
+35-17usr.bin/xinstall/xinstall.c
+32-0usr.bin/xinstall/tests/install_test.sh
+6-1usr.bin/xinstall/install.1
+73-183 files

FreeBSD/src c8a0269usr.bin/xinstall xinstall.c

install: Code cleanup

This is mainy focused on using bool for booleans but also renames some
variables for clarity, adds some explicit comparisons, adds some braces,
with miscellanous style fixes thrown in.

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D58355

(cherry picked from commit 134ddd372f8213885dd828ab38cec2384fd451db)
DeltaFile
+106-104usr.bin/xinstall/xinstall.c
+106-1041 files

FreeBSD/src 993df54usr.bin/xinstall install.1 xinstall.c, usr.bin/xinstall/tests install_test.sh

install: Allow installing stdin

If from_name is "/dev/stdin" or "-" and the target is not a directory,
skip the comparison and copy data from standard input to the target.

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D58348

(cherry picked from commit d34870708db9fa1eb8e29b5e085b755de1189b1f)
DeltaFile
+35-17usr.bin/xinstall/xinstall.c
+32-0usr.bin/xinstall/tests/install_test.sh
+6-1usr.bin/xinstall/install.1
+73-183 files

FreeBSD/src 91110e5usr.bin/xinstall xinstall.c

install: Fix typo

MFC after:      1 week
Reported by:    markj
Fixes:          d34870708db9 ("install: Allow installing stdin")

(cherry picked from commit 0eef3d01c22a5e00cd2cf10c34871eddbfd22aa0)
DeltaFile
+1-1usr.bin/xinstall/xinstall.c
+1-11 files

FreeBSD/src a1a98ddusr.bin/xinstall install.1

install.1: Convert link flags to a table

The five link flags get lost in prose.

Reviewed by:    ziaee
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57418

(cherry picked from commit 248dd56d2dea03e4723e8225b890d02fcc10973f)
DeltaFile
+13-10usr.bin/xinstall/install.1
+13-101 files

FreeBSD/src 48e85d9usr.bin/xinstall install.1

install.1: Document options incompatible with -s

Reported by:    des
Reviewed by:    ziaee
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57409

(cherry picked from commit b49021b49a78ca6a9e3a1a59c5aa6f2fec503afb)
DeltaFile
+5-1usr.bin/xinstall/install.1
+5-11 files

FreeBSD/src 23f153ausr.bin/xinstall/tests install_test.sh

xinstall: Add test for -d -s not allowed together

Reviewed by:    des
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57403

(cherry picked from commit 4908bea5b7f5de70032e201e718958ef40bc3b03)
DeltaFile
+7-0usr.bin/xinstall/tests/install_test.sh
+7-01 files

FreeBSD/src 44eb447usr.bin/xinstall xinstall.c, usr.bin/xinstall/tests install_test.sh

xinstall: Do not allow -l and -s together

Cannot strip the target if creating a link.

Reviewed by:    des
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57398

(cherry picked from commit 521afce6a859c1d7ac9674e8f21ff45418becaf5)
DeltaFile
+6-0usr.bin/xinstall/xinstall.c
+3-0usr.bin/xinstall/tests/install_test.sh
+9-02 files

FreeBSD/src 81004eeusr.bin/xinstall Makefile install.1

install: drop obsolete file size limit for -C

Removes the file size limit for -C comparisons. The limit was
meant to prevent oversized mmap allocations, which is no longer
relevant as mmap is no longer used here (removed by
a0439a1b820fa0e742c00d095f5f5c06f5f19432, review D44809).
Credit to bdrewery.
See: https://reviews.freebsd.org/D57230

Reviewed by:    bdrewery, glebius, ziaee
Approved by:    glebius (mentor)
Obtained from:  Fudo Security
MFC after:      2 weeks
Sponsored by:   Fudo Security
Differential Revision:  https://reviews.freebsd.org/D57503

(cherry picked from commit 9d10b4d2c9e86d8f6ff1b654f468381a4a4cad6d)
DeltaFile
+45-60usr.bin/xinstall/xinstall.c
+2-11usr.bin/xinstall/install.1
+1-1usr.bin/xinstall/Makefile
+48-723 files

FreeBSD/src ce59deausr.bin/xinstall xinstall.c

install: Bump compare size limit (128MB) to support large binaries

Preserve metadata and prevent redundant disk writes during builds with
the install's -C (compare) flag.

The previous historical comparison limit of 16MB is insufficient for
modern toolchains, frequently choked or bypassed by a large base
components like LLVM/Clang, kernels, Rust apps, and large runtime
libraries.

By leaving matching files alone, install keeps their modification timestamps
intact. make(1) safely ignores those files on subsequent runs.

Base examples: 15.0 amd64 GENERIC kernel - 28MB, clang - 105MB, lldb - 97MB, etc.

Reviewed by:    glebius
Approved by:    glebius (mentor)
Obtained from:  Fudo Security
MFC after:      2 weeks

    [4 lines not shown]
DeltaFile
+1-1usr.bin/xinstall/xinstall.c
+1-11 files

FreeBSD/src 25e6632usr.bin/xinstall Makefile install.1

install: add -z <max_cmp_size> option

Introduces the -z <max_cmp_size> flag, enabling users to set a custom file
size limit for pre-installation change checks and avoiding future hard-coded
limit modifications.

Reviewed by:    glebius
Approved by:    glebius (mentor)
Obtained from:  Fudo Security
MFC after:      2 weeks
Sponsored by:   Fudo Security
Differential Revision:  https://reviews.freebsd.org/D57230

(cherry picked from commit 97cad013a50a4012328e11424ed2350c1efc036c)
DeltaFile
+14-4usr.bin/xinstall/xinstall.c
+11-2usr.bin/xinstall/install.1
+1-1usr.bin/xinstall/Makefile
+26-73 files

FreeBSD/src baf4c59usr.bin/xinstall Makefile install.1

install: drop obsolete file size limit for -C

Removes the file size limit for -C comparisons. The limit was
meant to prevent oversized mmap allocations, which is no longer
relevant as mmap is no longer used here (removed by
a0439a1b820fa0e742c00d095f5f5c06f5f19432, review D44809).
Credit to bdrewery.
See: https://reviews.freebsd.org/D57230

Reviewed by:    bdrewery, glebius, ziaee
Approved by:    glebius (mentor)
Obtained from:  Fudo Security
MFC after:      2 weeks
Sponsored by:   Fudo Security
Differential Revision:  https://reviews.freebsd.org/D57503

(cherry picked from commit 9d10b4d2c9e86d8f6ff1b654f468381a4a4cad6d)
DeltaFile
+45-60usr.bin/xinstall/xinstall.c
+2-11usr.bin/xinstall/install.1
+1-1usr.bin/xinstall/Makefile
+48-723 files

FreeBSD/src 2879ea7usr.bin/xinstall xinstall.c

install: Bump compare size limit (128MB) to support large binaries

Preserve metadata and prevent redundant disk writes during builds with
the install's -C (compare) flag.

The previous historical comparison limit of 16MB is insufficient for
modern toolchains, frequently choked or bypassed by a large base
components like LLVM/Clang, kernels, Rust apps, and large runtime
libraries.

By leaving matching files alone, install keeps their modification timestamps
intact. make(1) safely ignores those files on subsequent runs.

Base examples: 15.0 amd64 GENERIC kernel - 28MB, clang - 105MB, lldb - 97MB, etc.

Reviewed by:    glebius
Approved by:    glebius (mentor)
Obtained from:  Fudo Security
MFC after:      2 weeks

    [4 lines not shown]
DeltaFile
+1-1usr.bin/xinstall/xinstall.c
+1-11 files

FreeBSD/src 5fb6057usr.bin/xinstall Makefile install.1

install: add -z <max_cmp_size> option

Introduces the -z <max_cmp_size> flag, enabling users to set a custom file
size limit for pre-installation change checks and avoiding future hard-coded
limit modifications.

Reviewed by:    glebius
Approved by:    glebius (mentor)
Obtained from:  Fudo Security
MFC after:      2 weeks
Sponsored by:   Fudo Security
Differential Revision:  https://reviews.freebsd.org/D57230

(cherry picked from commit 97cad013a50a4012328e11424ed2350c1efc036c)
DeltaFile
+14-4usr.bin/xinstall/xinstall.c
+11-2usr.bin/xinstall/install.1
+1-1usr.bin/xinstall/Makefile
+26-73 files

FreeBSD/src 1225b47usr.sbin/wpa Makefile.inc, usr.sbin/wpa/src/utils Makefile

wpa: Define CONFIG_DEBUG_FILE globally

We defined CONFIG_DEBUG_FILE only in libwpautils, not in wpa_supplicant,
so all it did was enable code that never got called.  Enable it at the
top level so it also applies to wpa_supplicant(8), and the -f option
mentioned in the manual page now actually works.

PR:             281617
MFC after:      1 week
Reviewed by:    cy
Differential Revision:  https://reviews.freebsd.org/D57723

(cherry picked from commit 67518c9f565b61bc5eebe33b6a956e2cc9b3f223)
DeltaFile
+0-2usr.sbin/wpa/src/utils/Makefile
+1-0usr.sbin/wpa/Makefile.inc
+1-22 files

FreeBSD/src c4d8b89sys/dev/nvme nvme_ns.c

nvme: Explicitly cast caddr_t values

Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
MFC after:      1 week
Fixes:          6d0001d44490 ("nvme: add support for DIOCGIDENT")
Reviewed by:    bnovkov, imp
Differential Revision:  https://reviews.freebsd.org/D58357

(cherry picked from commit bd30d1ad78e152d0a963bc873643a911321cca6e)
DeltaFile
+1-1sys/dev/nvme/nvme_ns.c
+1-11 files

FreeBSD/src 3f99b45sys/dev/nvme nvme_ns.c

nvme: Explicitly cast caddr_t values

Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
MFC after:      1 week
Fixes:          6d0001d44490 ("nvme: add support for DIOCGIDENT")
Reviewed by:    bnovkov, imp
Differential Revision:  https://reviews.freebsd.org/D58357

(cherry picked from commit bd30d1ad78e152d0a963bc873643a911321cca6e)
DeltaFile
+1-1sys/dev/nvme/nvme_ns.c
+1-11 files

FreeBSD/src 0bed75dusr.sbin/wpa Makefile.inc, usr.sbin/wpa/src/utils Makefile

wpa: Define CONFIG_DEBUG_FILE globally

We defined CONFIG_DEBUG_FILE only in libwpautils, not in wpa_supplicant,
so all it did was enable code that never got called.  Enable it at the
top level so it also applies to wpa_supplicant(8), and the -f option
mentioned in the manual page now actually works.

PR:             281617
MFC after:      1 week
Reviewed by:    cy
Differential Revision:  https://reviews.freebsd.org/D57723

(cherry picked from commit 67518c9f565b61bc5eebe33b6a956e2cc9b3f223)
DeltaFile
+0-2usr.sbin/wpa/src/utils/Makefile
+1-0usr.sbin/wpa/Makefile.inc
+1-22 files

FreeBSD/src ee9a8a9sys/netinet tcp_hostcache.c

tcp_hostcache: explicitly typecast atomic_load_int to (int) for comparison

Sponsored by:   NetApp, Inc.
MFC after:      1 week
Reviewed By:    tuexen, #transport, markj
Differential Revision: https://reviews.freebsd.org/D58360

(cherry picked from commit f22b08443f6ae3620dd14ade4e2376b8531fd6f3)
DeltaFile
+1-1sys/netinet/tcp_hostcache.c
+1-11 files