FreeBSD/src aa66995lib/libc/stdio xprintf_errno.c

libc printf_render_errno(): do not use strerror()

Reviewed by:    imp
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44916
DeltaFile
+4-3lib/libc/stdio/xprintf_errno.c
+4-31 files

FreeBSD/src bac9d7elib/libc/stdio xprintf_errno.c

libc: minor style, wrap long lines

Reviewed by:    imp
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44916
DeltaFile
+4-2lib/libc/stdio/xprintf_errno.c
+4-21 files

FreeBSD/src f887667lib/libc/stdio vfprintf.c

__vprintf(): switch from strerror() to strerror_rl()

This eliminates the use of non-thread-safe function in printf*() family,
and make the call locale-aware.  Also, it stops obliterating the
strerror() static buffer, which aligns with the POSIX requirement that
implementations must behave as if no standard-mandated functions call
strerror().

PR:     278556
Reported by:    Jonathan Gruber <jonathan.gruber.jg at gmail.com>
Reviewed by:    imp
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44916
DeltaFile
+5-1lib/libc/stdio/vfprintf.c
+5-11 files

FreeBSD/src 92771bclib/libc/include libc_private.h, lib/libc/string strerror.c

libc: make strerror_rl() usable for libc

Reviewed by:    imp
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44916
DeltaFile
+5-5lib/libc/string/strerror.c
+2-0lib/libc/include/libc_private.h
+7-52 files

FreeBSD/src cbbc577share/man/man5 src.conf.5

src.conf.5: Regen after removing MK_NVME
DeltaFile
+0-2share/man/man5/src.conf.5
+0-21 files

FreeBSD/src ee3187fshare/mk src.opts.mk, tools/build/options WITHOUT_NVME WITH_NVME

Remove the MK_NVME build option

The drivers and utilities are now built and installed unconditionally.

Reviewed by:    imp, emaste
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D44843
DeltaFile
+0-1share/mk/src.opts.mk
+0-1tools/build/options/WITHOUT_NVME
+0-1tools/build/options/WITH_NVME
+0-33 files

FreeBSD/src 2d51a98sbin Makefile

nvmecontrol: Always build instead of being conditional on WITH_NVME

This now builds fine on all platforms so always include it similar
to other tools such as camcontrol.

Reviewed by:    imp, emaste
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D44842
DeltaFile
+1-1sbin/Makefile
+1-11 files

FreeBSD/src 2b676a6sbin/camcontrol camcontrol.c Makefile

camcontrol: Enable WITH_NVME unconditionally

MK_NVME is no longer marked broken for any platforms, so just include
support for it always as we do for ATA and SCSI.

Reviewed by:    emaste
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D44841
DeltaFile
+0-14sbin/camcontrol/camcontrol.c
+1-3sbin/camcontrol/Makefile
+1-172 files

FreeBSD/src 86d0691. .cirrus.yml

Cirrus-CI: switch to llvm18 by default

As of commit 439352ac8257 Clang/LLVM 18 is the default in-tree compiler.
Follow suit in with the external toolchain package used by Cirrus-CI.

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit e8b7c78c1b38d0486ff12993c0529a201030bd07)
DeltaFile
+3-3.cirrus.yml
+3-31 files

FreeBSD/src f48643d. ObsoleteFiles.inc

Use MOVED_LIBS for usr/lib/libcxxrt.so.1 ObsoleteFiles.inc entry

Otherwise, the "make delete-old-libs" mechanism also deletes 32-bit
copies, such as in /usr/lib32.

Reported by:    Josef 'Jeff' Sipek <jeffpc at josefsipek.net>
Fixes:          911a6479e18b
DeltaFile
+1-1ObsoleteFiles.inc
+1-11 files

FreeBSD/src 7929070contrib/llvm-project/compiler-rt/lib/builtins/riscv save.S restore.S, contrib/llvm-project/libcxx/include stddef.h

Merge llvm-project release/18.x llvmorg-18.1.4-0-ge6c3289804a6

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/18.x llvmorg-18.1.4-0-ge6c3289804a6.

PR:             276104
MFC after:      3 days

(cherry picked from commit dfa39133b333f57ca3133bf6c71cd75be4c3e801)
DeltaFile
+9-51contrib/llvm-project/llvm/lib/Target/Mips/MipsExpandPseudo.cpp
+44-0contrib/llvm-project/llvm/lib/Target/Sparc/SparcAsmPrinter.cpp
+8-34contrib/llvm-project/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+42-0contrib/llvm-project/compiler-rt/lib/builtins/riscv/save.S
+42-0contrib/llvm-project/compiler-rt/lib/builtins/riscv/restore.S
+10-19contrib/llvm-project/libcxx/include/stddef.h
+155-10419 files not shown
+234-14025 files

FreeBSD/src 854034acontrib/llvm-project/compiler-rt/lib/builtins/riscv restore.S save.S, contrib/llvm-project/libcxx/include stddef.h

Merge llvm-project release/18.x llvmorg-18.1.4-0-ge6c3289804a6

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/18.x llvmorg-18.1.4-0-ge6c3289804a6.

PR:             276104
MFC after:      3 days

(cherry picked from commit dfa39133b333f57ca3133bf6c71cd75be4c3e801)
DeltaFile
+9-51contrib/llvm-project/llvm/lib/Target/Mips/MipsExpandPseudo.cpp
+44-0contrib/llvm-project/llvm/lib/Target/Sparc/SparcAsmPrinter.cpp
+42-0contrib/llvm-project/compiler-rt/lib/builtins/riscv/restore.S
+42-0contrib/llvm-project/compiler-rt/lib/builtins/riscv/save.S
+8-34contrib/llvm-project/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+10-19contrib/llvm-project/libcxx/include/stddef.h
+155-10419 files not shown
+234-14025 files

FreeBSD/src ca0620b. RELNOTES

RELNOTES: Add an entry for the nfs_reserved_port_only default change

Sponsored by:   The FreeBSD Foundation
DeltaFile
+9-0RELNOTES
+9-01 files

FreeBSD/src 6d5ce2blibexec/rc rc.conf, sys/fs/nfsserver nfs_nfsdkrpc.c

nfsserver: Default to nfs_reserved_port_only="YES"

This setting causes the NFS server to check that all RPCs are sent from
a privileged (<= 1023) port, rejecting those that are not.  This
slightly raises the bar for a user with network access to an
unauthenticated NFS server to access exported NFS filesystems.

Users that use traditional NFS clients (e.g., those provided by FreeBSD
or Linux) should not see any difference, assuming that unprivileged
filesystem mounting is disallowed.

Note that the setting is per-VNET, so may be overridden in VNET jails
without affecting the rest of the system.

Discussed with: freebsd-arch@
Reviewed by:    rmacklem, bz, emaste
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D44906
DeltaFile
+1-1libexec/rc/rc.conf
+1-1sys/fs/nfsserver/nfs_nfsdkrpc.c
+2-22 files

FreeBSD/src fb2ab7clib/libthr/tests pthread_sigqueue_test.c Makefile

Add test for pthread_sigqueue(3)

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44867
DeltaFile
+120-0lib/libthr/tests/pthread_sigqueue_test.c
+1-0lib/libthr/tests/Makefile
+121-02 files

FreeBSD/src 91da6beshare/man/man3 pthread_sigqueue.3 Makefile

pthread_sigqueue(3): document

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44867
DeltaFile
+102-0share/man/man3/pthread_sigqueue.3
+1-0share/man/man3/Makefile
+103-02 files

FreeBSD/src 220aa0finclude pthread.h, lib/libthr pthread.map

libthr: add pthread_sigqueue(3)

PR:     278459
Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44867
DeltaFile
+79-0lib/libthr/thread/thr_sigqueue.c
+7-0include/pthread.h
+4-0lib/libthr/pthread.map
+1-0lib/libthr/thread/thr_private.h
+1-0lib/libthr/thread/Makefile.inc
+92-05 files

FreeBSD/src 97acb35sys/sys _sigval.h signal.h

sys/signal.h: move union sigval into dedicated private header sys/_sigval.h

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44867
DeltaFile
+61-0sys/sys/_sigval.h
+1-21sys/sys/signal.h
+62-212 files

FreeBSD/src dcc180clib/libsys sigqueue.2

sigqueue(2): Document __SIGQUEUE_TID

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44867
DeltaFile
+18-1lib/libsys/sigqueue.2
+18-11 files

FreeBSD/src 53186bcsys/kern kern_sig.c, sys/sys signal.h

sigqueue(2): add impl-specific flag __SIGQUEUE_TID

The flag allows the pid argument to designate a thread from the calling
process.  The flag value is carved from the high bit of the signal
number, which slightly changes the ABI of syscall.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44867
DeltaFile
+17-5sys/kern/kern_sig.c
+4-0sys/sys/signal.h
+21-52 files

FreeBSD/src 0c11c17sys/kern kern_thr.c

kern_thr.c: normalize includes

Remove extra sys/param.h, provided by sys/systm.h.
Order the rest alphabetically.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44867
DeltaFile
+4-5sys/kern/kern_thr.c
+4-51 files

FreeBSD/src 2effad5sys/kern kern_thr.c kern_sig.c

kern_thr.c/kern_sig.c: remove sys/cdefs.h

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44867
DeltaFile
+1-1sys/kern/kern_thr.c
+0-1sys/kern/kern_sig.c
+1-22 files

FreeBSD/src 53e0938sys/kern kern_thread.c

kern_thread.c: remove unneeded include of sys/param.h

Handled by sys/systm.h already.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44867
DeltaFile
+0-1sys/kern/kern_thread.c
+0-11 files

FreeBSD/src fcdf9a1sys/net if_arp.h, sys/netinet if_ether.c

Support ARP for 802 networks

This is used by 802.3 Ethernet.  (Also be used by 802.4 Token Bus and
802.5 Token Ring, but we don't support those.)

This was accidentally removed along with FDDI support in commit
0437c8e3b198, presumably because comments implied it was used only by
FDDI or Token Ring.

Fixes: 0437c8e3b198 ("Remove support for FDDI networks.")
Reviewed-by: emaste
Signed-off-by: Denny Page <dennypage at me.com>
Pull-request: https://github.com/freebsd/freebsd-src/pull/1166
DeltaFile
+4-0sys/netinet/if_ether.c
+1-1sys/net/if_arp.h
+5-12 files

FreeBSD/src 1f940demodule/zfs arc.c

L2ARC: Cleanup buffer re-compression

When compressed ARC is disabled, we may have to re-compress when
writing into L2ARC.  If doing so we can't fit it into the original
physical size, we should just fail immediately, since even if it
may still fit into allocation size, its checksum will never match.

While there, refactor the code similar to other compression places
without using abd_return_buf_copy().

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by:  Alexander Motin <mav at FreeBSD.org>
Sponsored by:   iXsystems, Inc.
Closes #16038 
DeltaFile
+20-39module/zfs/arc.c
+20-391 files

FreeBSD/src c5989feshare/man/man9 ieee80211_vap.9

ieee80211_vap(9): fix the title

MFC after:      3 days
DeltaFile
+1-1share/man/man9/ieee80211_vap.9
+1-11 files

FreeBSD/src 96a2e03lib/libc/locale xlocale.3, share/man/man4 lagg.4

Update manual page references and macros to align to mandoc syntax

xlocale.3: Comment out reference to atof_l(3), atoi_l(3), atol_l(3), atoll_l(3)
  These manual page references do not exist.

lagg.4: Change the reference for /etc/rc.conf from a reference link
  .Xr -> .Pa based on the context within the manual page it is used.

buf.9: Remove .Xr entries from the file
  The buf.9 manual page contains a commented out .Xr reference.
  The <filmmein> 9 entry is a placeholder and has been removed for
  clarity.

Reviewed by:    mhorne
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1114
DeltaFile
+4-4lib/libc/locale/xlocale.3
+1-1share/man/man4/lagg.4
+0-2share/man/man9/buf.9
+5-73 files

FreeBSD/src 60546b6usr.sbin/mountd exports.5

exports.5: Update an example to use service(8)

MFC after:      1 week

(cherry picked from commit 88d09ddea0111abd74579e5c3c4ed029351feccb)
DeltaFile
+2-1usr.sbin/mountd/exports.5
+2-11 files

FreeBSD/src 692106asys/geom/raid3 g_raid3.c

graid3: Fix teardown in g_raid3_try_destroy()

Commit 33cb9b3c3a22 replaced a g_raid3_destroy_device() call with a
g_raid3_free_device() call, which was incorrect and could lead to a
panic if a RAID3 GEOM failed to start (e.g., due to missing disks).

Reported by:    graid3 tests
Fixes:          33cb9b3c3a22 ("graid3: Fix teardown races")
MFC after:      3 days
Sponsored by:   Klara, Inc.

(cherry picked from commit 955f213fa2f14d5b5e9b655d8922e28315eb9fa3)
DeltaFile
+1-1sys/geom/raid3/g_raid3.c
+1-11 files

FreeBSD/src 21d1f73usr.sbin/mountd exports.5

exports.5: Clarify that exported dirs should be local mount points

If not, then in general the entire filesystem containing the exported
directory is accessiable.  This may be surprising, so try to make it
more clear.

Reviewed by:    rmacklem, emaste
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D44614

(cherry picked from commit 9d975e47d5a3638d4f575b2cf97e07bf22b53c7e)
DeltaFile
+24-4usr.sbin/mountd/exports.5
+24-41 files