FreeBSD/src 801c0f3tests/sys/kern ktls_test.c

tests/ktls: merge two sysctl checking helpers into one

No functional change.
DeltaFile
+8-27tests/sys/kern/ktls_test.c
+8-271 files

FreeBSD/src 698e0c4sys/contrib/openzfs/module/zfs zvol.c

zvol: Fix uses of uninitialized variables in zvol_rename_minors_impl()

Reported-by: GitHub Copilot
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
Signed-off-by: Mark Johnston <markj at FreeBSD.org>
Closes #18191
(cherry picked from commit 943a05528494b2f4585541089606796476fb229e)
DeltaFile
+3-0sys/contrib/openzfs/module/zfs/zvol.c
+3-01 files

FreeBSD/src f674550sys/contrib/openzfs/module/os/freebsd/zfs zvol_os.c, sys/contrib/openzfs/module/zfs zvol.c

Make zvol_set_common() block until the operation has completed

This is motivated by a FreeBSD AIO test case which create a zvol with -o
volmode=dev, then immediately tries to open the zvol device file.  The
open occasionally fails with ENOENT.

When a zvol is created without the volmode setting, zvol_create_minors()
blocks until the task is finished, at which point OS-dependent code will
have created a device file.  However, zvol_set_common() may cause the
device file to be destroyed and re-created, at least on FreeBSD, if the
voltype switches from GEOM to DEV.  In this case, we do not block
waiting for the operation to finish, causing the test failure.

Fix the problem by making zvol_set_common() block until the operation
has finished.  In FreeBSD zvol code, use g_waitidle() to block until
asynchronous GEOM operations are done.  This fixes a secondary race
where zvol_os_remove_minor() does not block until the zvol device file
is removed, and the subsequent zvol_os_create_minor() fails because the
(to-be-destroyed) device file already exists.

    [6 lines not shown]
DeltaFile
+42-4sys/contrib/openzfs/module/zfs/zvol.c
+3-1sys/contrib/openzfs/module/os/freebsd/zfs/zvol_os.c
+45-52 files

FreeBSD/src bde2908sys/contrib/openzfs/module/os/freebsd/zfs zvol_os.c, sys/contrib/openzfs/module/os/linux/zfs zvol_os.c

zvol: Hold the zvol state writer lock when renaming

Otherwise nothing serializes updates to the global zvol hash table.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
Signed-off-by: Mark Johnston <markj at FreeBSD.org>
Closes #18191
(cherry picked from commit d7b8eef9d281f6831ac7d9cb27362509ec434fb2)
DeltaFile
+1-1sys/contrib/openzfs/module/os/linux/zfs/zvol_os.c
+1-1sys/contrib/openzfs/module/zfs/zvol.c
+1-1sys/contrib/openzfs/module/os/freebsd/zfs/zvol_os.c
+3-33 files

FreeBSD/src ae6db85sys/contrib/openzfs/module/os/freebsd/zfs zvol_os.c

FreeBSD: Fix zvol teardown races

zvol_geom_open() may be called to taste an orphaned provider.  The test
for pp->private == NULL there is racy as no locks are synchronizing the
test.

Use the GEOM topology lock to interlock the pp->private == NULL test
with the zvol state checks.  This establishes a new lock order but I
believe this is necessary.  Set pp->private = NULL under the GEOM
topology lock instead of the per-zvol state lock.  Modify
zvol_os_rename_minor() to drop the zvol state lock to avoid a lock order
reversal with the topology lock.

Also reverse the order of tests in zvol_geom_open() and zvol_cdev_open()
as at least zvol_geom_open() may race with zvol_os_remove_minor(), which
sets zv->zv_zso = NULL.  Testing for ZVOL_REMOVING first avoids a race
which can lead to a NULL pointer dereference.

Add a new OS-specific flag to handle the case where zvol_geom_open()

    [9 lines not shown]
DeltaFile
+44-34sys/contrib/openzfs/module/os/freebsd/zfs/zvol_os.c
+44-341 files

FreeBSD/ports 7042c53www/firefox distinfo Makefile

www/firefox: update to 153.0.1 (rc2)

Release Notes (soon):
  https://www.firefox.com/en-US/firefox/153.0.1/releasenotes/
DeltaFile
+3-3www/firefox/distinfo
+2-2www/firefox/Makefile
+5-52 files

FreeBSD/src b68f2fecontrib/llvm-project/lld/ELF Thunks.cpp Thunks.h, contrib/llvm-project/lld/ELF/Arch PPC.cpp PPC64.cpp

Merge commit 26bf39cdba0b from llvm-project (by Jessica Clarke):

  [ELF][PowerPC] Don't assume TOC pointer is valid in IPLT entries (#207555)

  Unlike normal PLT entries, IPLT entries can be called indirectly even
  when in PIEs/DSOs, and so there's no guarantee on what's in the TOC
  pointer register at that time. Therefore we must emit variants of the
  existing code that work without it, whether r12-relative (playing the
  same role as MIPS's $25) in the same number of instructions, or first
  retrieving PC in an i386-like manner, being careful not to clobber LR.
  On 32-bit PowerPC even direct calls to IPLT entries face the same issue,
  since we'd use the TOC base of the resolver, which may not be the same
  as the caller, even within the same object.

  Normal canonical PLTs still look broken on 64-bit PowerPC as they use
  the TOC pointer register too, and similarly on 32-bit PowerPC for PIEs.
  We should probably treat these cases the same as PIE on i386 (except
  including PDEs for 64-bit PowerPC), where it's an error due to the use
  of %ebx in PLT entries.

    [7 lines not shown]
DeltaFile
+50-19contrib/llvm-project/lld/ELF/Thunks.cpp
+7-6contrib/llvm-project/lld/ELF/Arch/PPC.cpp
+6-3contrib/llvm-project/lld/ELF/Thunks.h
+3-2contrib/llvm-project/lld/ELF/Arch/PPC64.cpp
+1-1lib/clang/include/lld/Common/Version.inc
+67-315 files

FreeBSD/src bcbcd73contrib/llvm-project/lld/ELF Thunks.cpp Thunks.h, contrib/llvm-project/lld/ELF/Arch PPC64.cpp

Merge commit cbf48349e3e1 from llvm-project (by Jessica Clarke):

  [NFC][ELF][PPC64] Pass address not offset to writePPC64LoadAndBranch (#212275)

  Every caller currently subtracts the TOC base in its argument, so move
  that into common code inside writePPC64LoadAndBranch. This will also
  allow a different computation to be used in some cases in a future
  commit.

  Note that offset is now unsigned not signed; even previously, all
  arguments were uint64_t, and all uses are unsigned, so making it signed
  doesn't make much sense.

MFC after:      1 week
DeltaFile
+9-11contrib/llvm-project/lld/ELF/Thunks.cpp
+1-2contrib/llvm-project/lld/ELF/Arch/PPC64.cpp
+1-1contrib/llvm-project/lld/ELF/Thunks.h
+11-143 files

FreeBSD/ports d1c3627misc/nanocoder pkg-plist distinfo, misc/nanocoder/files package-lock.json

misc/nanocoder: update 1.28.1 → 1.29.0
DeltaFile
+771-14misc/nanocoder/pkg-plist
+386-96misc/nanocoder/files/package-lock.json
+3-3misc/nanocoder/distinfo
+1-1misc/nanocoder/Makefile
+1,161-1144 files

FreeBSD/ports eee1929science Makefile, science/py-libwignernj Makefile pkg-descr

science/py-libwignernj: New port: Python bindings for libwignernj
DeltaFile
+30-0science/py-libwignernj/Makefile
+16-0science/py-libwignernj/files/patch-pyproject.toml
+5-0science/py-libwignernj/pkg-descr
+3-0science/py-libwignernj/distinfo
+1-0science/Makefile
+55-05 files

FreeBSD/ports 8fe854cscience/openmolcas Makefile distinfo

science/openmolcas: update 26.02 → 26.06
DeltaFile
+6-4science/openmolcas/Makefile
+3-3science/openmolcas/distinfo
+1-0science/openmolcas/pkg-plist
+10-73 files

FreeBSD/ports df719ffmisc/py-lazrs distinfo Makefile

misc/py-lazrs: update 0.8.1 → 0.8.2
DeltaFile
+35-43misc/py-lazrs/distinfo
+18-23misc/py-lazrs/Makefile
+53-662 files

FreeBSD/ports ef8072ascience Makefile, science/libwignernj Makefile pkg-plist

science/libwignernj: New port: Library for exact evaluation of Wigner/Clebsch-Gordan coefficients
DeltaFile
+44-0science/libwignernj/Makefile
+16-0science/libwignernj/pkg-plist
+5-0science/libwignernj/pkg-descr
+3-0science/libwignernj/distinfo
+1-0science/Makefile
+69-05 files

FreeBSD/ports 3cf0100www/ghostunnel distinfo Makefile

www/ghostunnel: update 1.11.1 → 1.11.2
DeltaFile
+5-5www/ghostunnel/distinfo
+1-1www/ghostunnel/Makefile
+6-62 files

FreeBSD/ports 513159dastro/libosmpbf distinfo pkg-plist

astro/libosmpbf: update 1.6.1 → 1.7.0
DeltaFile
+3-3astro/libosmpbf/distinfo
+1-3astro/libosmpbf/pkg-plist
+1-2astro/libosmpbf/Makefile
+5-83 files

FreeBSD/src e7015a3share/man/man3 pthread_cond_timedwait.3 Makefile

pthread_cond_timedwait.3: document pthread_cond_clockwait(3)

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58463
DeltaFile
+30-2share/man/man3/pthread_cond_timedwait.3
+1-0share/man/man3/Makefile
+31-22 files

FreeBSD/src 10ea230contrib/netbsd-tests/lib/libpthread t_condwait.c

tests/libpthread: add pthread_cond_clockwait(3) tests

Reviewed by:    markj, ngie
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58458
DeltaFile
+92-18contrib/netbsd-tests/lib/libpthread/t_condwait.c
+92-181 files

FreeBSD/src 6d3db07share/man/man3 pthread_cond_timedwait.3

pthread_cond_timedwait.3: use .Fo/.Fc for long arguments list

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58463
DeltaFile
+5-1share/man/man3/pthread_cond_timedwait.3
+5-11 files

FreeBSD/src 149d3e5lib/libthr/thread thr_cond.c

libthr/thread/thr_cond.c: some style

Also use bool for the 'cancel' argument for cond_wait_common().

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58463
DeltaFile
+11-15lib/libthr/thread/thr_cond.c
+11-151 files

FreeBSD/src e1136fbinclude pthread.h, lib/libthr pthread.map

libthr: implement pthread_cond_clockwait(3)

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58463
DeltaFile
+48-16lib/libthr/thread/thr_cond.c
+22-6lib/libthr/thread/thr_umtx.c
+4-2lib/libthr/thread/thr_barrier.c
+5-0include/pthread.h
+2-1lib/libthr/thread/thr_umtx.h
+1-0lib/libthr/pthread.map
+82-256 files

FreeBSD/src f4a05f3lib/libsys _umtx_op.2

_umtx_op.2: document the CVWAIT_UMTX_TIME flag for the UMTX_OP_CV_WAIT_UC request

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58463
DeltaFile
+21-2lib/libsys/_umtx_op.2
+21-21 files

FreeBSD/src 196cc00lib/libthr/thread thr_umtx.c

libthr/thread/thr_umtx.c: style _thr_ucond_wait()

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58463
DeltaFile
+3-3lib/libthr/thread/thr_umtx.c
+3-31 files

FreeBSD/src d738f66sys/kern kern_umtx.c, sys/sys umtx.h

umtx_op(2): add the CVWAIT_UMTX_TIME flag for the UMTX_OP_CV_WAIT_UC request

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58463
DeltaFile
+55-35sys/kern/kern_umtx.c
+1-0sys/sys/umtx.h
+56-352 files

FreeBSD/src 4090d10lib/libsys mknod.2

mknod.2: update the man page

State that FIFOs can be created, document the requirement that
dev must be zero then.  Mention whiteouts.

PR:     297082
Reviewed by:    emaste
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Differential revision:  https://reviews.freebsd.org/D58478
DeltaFile
+16-7lib/libsys/mknod.2
+16-71 files

FreeBSD/src 3c6f639share/man/man3 pthread_cond_wait.3

pthread_cond_wait.3: describe spurious wakeups

Reviewed by:    markc
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58458
DeltaFile
+14-1share/man/man3/pthread_cond_wait.3
+14-11 files

FreeBSD/src 2a2705asys/dev/sound/pcm dsp.c

sound: Add missing newline in dsp_make_dev()'s device_printf()

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+1-1sys/dev/sound/pcm/dsp.c
+1-11 files

FreeBSD/ports ac691d9databases/datui distinfo Makefile

databases/datui: Unbreak build with recent Rust

Bump the vendored ethnum crate to 1.5.3: 1.5.1 built a TryFromIntError
by transmuting from (), which is now a hard error since the type is no
longer zero-sized.
DeltaFile
+3-3databases/datui/distinfo
+1-1databases/datui/Makefile
+1-1databases/datui/Makefile.crates
+5-53 files

FreeBSD/ports c36770adevel/gwm Makefile.crates Makefile

devel/gwm: Update to 1.4.0

Move CARGO_CRATES to Makefile.crates: the list grew to 321 crates, which
buried the port's actual metadata under 300 lines of mechanical output.
Keeping it separate makes future updates a wholesale replacement of a
generated file (make cargo-crates > Makefile.crates) and leaves diffs to
the Makefile readable.
DeltaFile
+321-0devel/gwm/Makefile.crates
+1-312devel/gwm/Makefile
+25-3devel/gwm/distinfo
+347-3153 files

FreeBSD/ports e7915e3science/openmodelica Makefile

science/openmodelica: Broken on 16

... until the SEGV in the next release is fixed.

Reported by:    fallout
DeltaFile
+1-0science/openmodelica/Makefile
+1-01 files

FreeBSD/ports 4538ecenet/apache-commons-net distinfo Makefile

apache-commons-net: Update to 3.13.0
DeltaFile
+3-3net/apache-commons-net/distinfo
+1-2net/apache-commons-net/Makefile
+4-52 files