FreeBSD/src cf04a77sbin/swapon swaplinux.c swapon.c

swapon: Do not overwrite Linux swap header

Reviewed by: imp, jhb
Pull Request: https://github.com/freebsd/freebsd-src/pull/1084
DeltaFile
+66-0sbin/swapon/swaplinux.c
+53-1sbin/swapon/swapon.c
+5-0sbin/swapon/extern.h
+2-0sbin/swapon/Makefile
+126-14 files

FreeBSD/src 4f223e0release/tools vmimage.subr

release: Change vmimage EFI GPT label

This matches the default bsdinstall nomenclature.

PR: 278480
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1188
DeltaFile
+2-2release/tools/vmimage.subr
+2-21 files

FreeBSD/src 14e3f2dtools/tools/nanobsd/embedded common

nanobsd: Set a GPT label for EFI and cfg partitions

Use efiboot0 for the EFI partition, the nomenclature efiboot + #index
was taken from bsdinstall (zfsboot).

Use cfg for the cfg partition.  Poudriere firmware images are already
using this label.

PR: 278480
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1187
DeltaFile
+2-2tools/tools/nanobsd/embedded/common
+2-21 files

FreeBSD/src 8a8daeasys/arm/conf std.armv6 std.armv7, sys/arm64/conf GENERIC-MMCCAM-NODEBUG GENERIC-NODEBUG

sys/*/conf: do not use "../../conf/" when including std.*

Since config(8) searches sys/conf by default, there's no need to specify
the full relative path here; replace it by the filename alone.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1124
DeltaFile
+1-1sys/arm/conf/std.armv6
+1-1sys/arm/conf/std.armv7
+1-1sys/arm64/conf/GENERIC-MMCCAM-NODEBUG
+1-1sys/arm64/conf/GENERIC-NODEBUG
+1-1sys/arm64/conf/std.arm64
+1-1sys/i386/conf/GENERIC
+6-615 files not shown
+21-2121 files

FreeBSD/src 4f8f9d7sys/amd64/conf GENERIC NOTES, sys/arm/conf std.armv6 std.armv7

sys: add conf/std.debug, generic debugging options

The new sys/conf/std.debug contains the list of debugging options
enabled by default in -CURRENT, so they don't need to be listed
individually in every kernel config.

The enabled options are the set of all debug options which were enabled
for the GENERIC kernel on any platform.  This means some architectures
now have debugging options enabled in GENERIC which weren't previously
enabled:

- amd64: [1]
- arm64: [2]
- arm: [2]. [3]
- i386: [1], [2]
- powerpc: [1], [2], [3]
- riscv: [2]

[1] ALT_BREAK_TO_DEBUGGER is now enabled.

    [9 lines not shown]
DeltaFile
+1-19sys/amd64/conf/GENERIC
+17-0sys/conf/std.debug
+3-11sys/arm/conf/std.armv6
+3-11sys/arm/conf/std.armv7
+12-0sys/amd64/conf/NOTES
+11-0sys/amd64/conf/MINIMAL-NODEBUG
+47-419 files not shown
+68-9415 files

FreeBSD/src 93c5ba5sys/netpfil/pf pf.c

sys/netpfil/pf: fix non-INET module build

pf.ko, when built as a module without 'options INET' but with 'options
VIMAGE', won't load:

link_elf_obj: symbol vnet_entry_in_loopback_mask undefined

This is because it uses IN_LOOPBACK(), which in the VIMAGE case uses
INET-specific symbols.

Fix by making this check conditional on #ifdef INET.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1157
DeltaFile
+4-1sys/netpfil/pf/pf.c
+4-11 files

FreeBSD/src 65767e6sys/net if_bridge.c

sys/net/if_bridge: support non-INET kernels

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1159
DeltaFile
+39-17sys/net/if_bridge.c
+39-171 files

FreeBSD/src d31b677sys/dev/aic7xxx aic7xxx.c aic79xx.c

ahc(4)/ahd(4): target mode: cancel outstanding AIOs and INOTs

When disabling a lun there can still be outstanding AIOs and INOTs, when
this happens previously the lun would just fail to disable and trying to
re-use the lun would break the card.

isp(4) in target mode does the same thing when disabling a lun, in
testing this allows re-starting of ctld(8) with connected initiators and
allows initiators to gracefully resume afterwards.

Signed-off-by: HP van Braam <hp at tmm.cx>
Reviewed by: imp, mav
Pull Request: https://github.com/freebsd/freebsd-src/pull/1190
DeltaFile
+11-2sys/dev/aic7xxx/aic7xxx.c
+11-2sys/dev/aic7xxx/aic79xx.c
+22-42 files

FreeBSD/src 6597107sys/dev/aic7xxx aic79xx.c aic7xxx.c

ahc(4) clean up old Linux defines

Linux removed theirs starting in 2018 in commit:
"scsi: aic7xxx: Fix build using bare-metal toolchain"

Also remove now-useless sys/cdefs.h includes

Signed-off-by: HP van Braam <hp at tmm.cx>
Reviewed by: imp, mav, emaste
Pull Request: https://github.com/freebsd/freebsd-src/pull/1189
DeltaFile
+1-34sys/dev/aic7xxx/aic79xx.c
+1-34sys/dev/aic7xxx/aic7xxx.c
+0-7sys/dev/aic7xxx/aic7770.c
+0-7sys/dev/aic7xxx/aic7xxx_93cx6.c
+0-7sys/dev/aic7xxx/aic7xxx_pci.c
+0-6sys/dev/aic7xxx/aic79xx_pci.c
+2-959 files not shown
+2-11015 files

FreeBSD/src ea6f2d7tools/build checkstyle9.pl

checkstyle9.pl: Warn if there's no SOB line

If there's no Signed-off-by: line, complain.

Sponsored by:           Netflix
DeltaFile
+8-0tools/build/checkstyle9.pl
+8-01 files

FreeBSD/src e75a1bblib/msun/src e_pow.c e_powf.c

pow,powf(3),__ieee754_rem_pio2(f): Avoid negative integer left shift UB

A compiler clever enough to know that z is positive with a non-zero
biased exponent could, for example, optimize away the scalbnf(z,n) in
pow() because behavior for left shift of negative values is undefined.
`n` is negative when y*log2(|x|) < -0.5.  i.e. |x^y| < sqrt(0.5)

The intended behavior for operator<< in this code is to shift the two's
complement representation of the first operand.

In the pow() functions, the result is added to the IEEE 754 exponent of
z = 2^y'.  n may be negative enough to underflow the biased IEEE 754
exponent below zero, which is manifested in the sign bit of j
(which would correspond to the IEEE 754 sign bit).

The conversion from uint32_t to int32_t for out-of-int32_t-range values
is implementation defined.  The assumed behavior of interpreting the
uint32_t value as a two's complement representation of a signed value
is already assumed in many parts of the code, such as uses of

    [9 lines not shown]
DeltaFile
+5-1lib/msun/src/e_pow.c
+5-1lib/msun/src/e_powf.c
+1-1lib/msun/src/e_rem_pio2.c
+1-1lib/msun/src/e_rem_pio2f.c
+12-44 files

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