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

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