FreeBSD/src 9a8d333lib/libc/gen memfd_create.c, lib/libsys shm_open.2

libc: fix memfd_create's HUGETLB handling

The 'simplification' commit referenced below actually broke one aspect
of MFD_HUGETLB: the caller isn't supposed to be required to specify a
size.  MFD_HUGETLB by itself without a shift mask just requests a large
page, so we revert that part of memfd_create() back.

While we're here, fix up the related parts of the manpages a little bit,
since MFD_HUGETLB is actually supported.  The manpage claims that we
would return ENOSYS if forced mappings weren't supported, but this was
actually not true.  However, that seems like a very important
distinction to make between ENOSYS and EOPNOTSUPP, so fix the
implementation to match the docs.

Fixes:  8b8cf4ece660f ("memfd_create: simplify HUGETLB support [...]")
Reviewed by:    kib, markj
Differential Revision:  https://reviews.freebsd.org/D56114
DeltaFile
+45-0tests/sys/posixshm/posixshm.h
+13-25tests/sys/posixshm/posixshm_test.c
+35-0tests/sys/posixshm/memfd_test.c
+27-4lib/libsys/shm_open.2
+16-7lib/libc/gen/memfd_create.c
+136-365 files

FreeBSD/src 0c9cec8tests/sys/kqueue kqueue_fork.c

tests: kqueue: add a basic test for CPONFORK

Just copy over a timer and a write-filter, be sure that we can observe
both in the child.  Maybe the timer should check for a minimum time
passed, but I don't know that we'd be likely to get that wrong.

This also adds a negative test with a kqueue that is *not* set for
CPONFORK being added to the first one, made readable, and confirming
that we don't see a knote for it in the child.

Some other improvements to the test noted in the review are planned in
the short term, but they're not particularly worth blocking adding this
as a basic sanity check.

Reviewed by:    kib, markj
Differential Revision:  https://reviews.freebsd.org/D56223
DeltaFile
+140-0tests/sys/kqueue/kqueue_fork.c
+140-01 files

FreeBSD/src c6dd40fsys/kern kern_event.c

kqueue: slightly clarify the flow in knlist_cleardel()

This is purely a cosmetic change to make it a little easier on the eyes,
rather than jumping back to the else branch up top.  Re-flow it to use
another loop on the outside and just inline the re-lock before we repeat
after awaking from fluxwait.

The !killkn path should maybe issue a wakeup if there's a thread in
KQ_SLEEP so that userland can observe the EOF, but this isn't a
practical problem today: pretty much every case of knlist_clear is tied
to a file descriptor and called in the close(2) path.  As a consequence,
potentially affected knotes are almost always destroyed before we even
get to knlist_clear().

Reviewed by:    kib, markj
Differential Revision:  https://reviews.freebsd.org/D56226
DeltaFile
+29-21sys/kern/kern_event.c
+29-211 files

FreeBSD/src 0bf4d22sys/kern kern_event.c

kqueue: don't leak file refs on failure to knote_attach()

We'll subsequently just knote_free() since the knote is barely
constructed, but that bypasses any logic that might release references
on owned files/fops.  Defer clearing those until the knote actually owns
them and update the comment to draw the line more clearly.

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D56318
DeltaFile
+10-6sys/kern/kern_event.c
+10-61 files

LLVM/project 0c36771llvm/lib/Target/RISCV RISCVInstrInfoZicbo.td

[RISCV] Remove NoVendorXMIPSCBOP from the Zicbop instructions. (#191015)

The XMIPSCBOP encodings use OP-CUSTOM-0 so there's no encoding overlap
here. Presence of a vendor extension should not disable parsing or
disassembly of a standard extension that doesn't overlap.
DeltaFile
+2-2llvm/lib/Target/RISCV/RISCVInstrInfoZicbo.td
+2-21 files

HardenedBSD/ports 26332d7devel/git-delta distinfo Makefile.crates, misc/github-copilot-language-server/files package-lock.json

Merge remote-tracking branch 'internal/freebsd/main' into hardenedbsd/main
DeltaFile
+253-129devel/git-delta/distinfo
+126-64devel/git-delta/Makefile.crates
+173-0net/ucx/files/patch-src_uct_tcp_tcp__iface.c
+87-0net/ucx/files/patch-src_uct_sm_mm_base_mm__iface.c
+61-0net/ucx/files/patch-src_ucs_async_thread.c
+28-28misc/github-copilot-language-server/files/package-lock.json
+728-22149 files not shown
+999-36055 files

HardenedBSD/ports add51aedevel/ocaml-opam/files patch-Makefile

HBSD: Resolve merge conflict

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+0-5devel/ocaml-opam/files/patch-Makefile
+0-51 files

LLVM/project 53e0c2butils/bazel/llvm-project-overlay/mlir BUILD.bazel

[bazel] Rename PYBIND11 variables (#191095)

These are still used with nanobind so this name was misleading
DeltaFile
+23-24utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+23-241 files

LLVM/project f736537clang/test/SemaHIP incorrect-atomic-scope.hip, clang/test/SemaOpenCL incorrect-atomic-scope.cl

[Clang][NFC] tests showcasing incorrect use of HIP and OpenCL memory scope macros (#188890)

The tests demonstrate how incorrect LLVM IR is generated without
diagnostics, when an OpenCL or HIP scope number is passed to an AMDGPU
intrinsic. #185408 lays the groundwork for properly diagnosing this
situation by internally using a separate enum type to represent each set
of scope numbers.
DeltaFile
+35-0clang/test/SemaOpenCL/incorrect-atomic-scope.cl
+31-0clang/test/SemaHIP/incorrect-atomic-scope.hip
+66-02 files

FreeBSD/src 9f7080bsecure/lib/libcrypto/man/man3 X509V3_EXT_print.3 Makefile

crypto/openssl: add new manpage from release 3.5.6

MFC after:      1 day (the security issues warrant a quick backport).
MFC with:       10a428653ee7216475f1ddce3fb4cbf1200319f8
DeltaFile
+108-0secure/lib/libcrypto/man/man3/X509V3_EXT_print.3
+2-0secure/lib/libcrypto/man/man3/Makefile
+110-02 files

LLVM/project c981328llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/RISCV basic-strided-stores.ll

[SLP] Create SLP trees starting from constant stride stores (#185964)

Must use `-slp-enable-strided-stores` to enable.
DeltaFile
+193-60llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+27-223llvm/test/Transforms/SLPVectorizer/RISCV/basic-strided-stores.ll
+220-2832 files

FreeBSD/src 5254e16secure/lib/libcrypto/man/man3 SSL_CTX_set1_curves.3 SSL_CONF_cmd.3, secure/lib/libcrypto/man/man7 property.7

crypto/openssl: update artifacts to match 3.5.6 release artifacts

A new manpage and any associated links will be added in the next commit.

MFC after:      1 day (the security issues warrant a quick backport).
MFC with:       10a428653ee7216475f1ddce3fb4cbf1200319f8
DeltaFile
+442-346secure/usr.bin/openssl/man/openssl-ciphers.1
+85-36secure/lib/libcrypto/man/man3/SSL_CTX_set1_curves.3
+56-48sys/crypto/openssl/aarch64/vpsm4_ex-armv8.S
+27-2secure/lib/libcrypto/man/man7/property.7
+9-11secure/lib/libcrypto/man/man3/SSL_CONF_cmd.3
+12-3secure/lib/libcrypto/man/man3/PKCS5_PBE_keyivgen.3
+631-446903 files not shown
+1,654-1,424909 files

FreeBSD/src 10a4286crypto/openssl CHANGES.md NEWS.md, crypto/openssl/doc/man1 openssl-ciphers.pod.in

MFV: crypto/openssl: update to 3.5.6

This change brings in version 3.5.6 of OpenSSL, which features
several security fixes (the highest of which is a MEDIUM severity
issue), as well as some miscellaneous feature updates.

Please see the release notes [1] for more details.

PS Apologies for the confusing merge commits -- I was testing out a
new automated update process and failed to catch the commit message
issues until after I pushed the change.

1. https://github.com/openssl/openssl/blob/openssl-3.5.6/NEWS.md

MFC after:      1 day (the security issues warrant a quick backport).
Merge commit 'ab5fc4ac933ff67bc800e774dffce15e2a541e90'
DeltaFile
+438-329crypto/openssl/doc/man1/openssl-ciphers.pod.in
+363-212crypto/openssl/CHANGES.md
+232-195crypto/openssl/NEWS.md
+152-213crypto/openssl/util/platform_symbols/windows-symbols.txt
+84-35crypto/openssl/doc/man3/SSL_CTX_set1_curves.pod
+109-1crypto/openssl/test/evp_extra_test.c
+1,378-985250 files not shown
+3,695-2,017256 files

LLVM/project fdfa627.github/workflows release-llvm-testing-tools.yml

update

Created using spr 1.3.7
DeltaFile
+1-0.github/workflows/release-llvm-testing-tools.yml
+1-01 files

LLVM/project 3b3ac5autils/bazel/llvm-project-overlay/mlir BUILD.bazel

[bazel] Remove unnecessary textual_hdrs usage (#191072)

textual_hdrs is supposed to be used for header files that aren't
standalone, which isn't the case for these mlir headers. Being in
textual_hdrs excludes them from header parsing, which means
layering_check results aren't entirely valid. I'm going to try and
enable header parsing on these targets in a follow up change.
DeltaFile
+10-13utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+10-131 files

OpenBSD/src OW2wJeqsys/kern kern_sched.c

   don't clear non-smt block bits in sysctl_hwsmt()
   make hw.smt 1->0 work again
   ok deraadt@
VersionDeltaFile
1.116+5-2sys/kern/kern_sched.c
+5-21 files

OpenBSD/src S7cpqRvshare/man/man1 dpb.1

   Remove references to tag:kde3 and tag:kde4 as something that one
   might find in the current ports tree. kde3/kde4 and their tags are
   long gone.

   Leave them in place for the historical section describing what
   tags are used for in dpb/DPB_PROPERTIES

   ok phessler
VersionDeltaFile
1.37+3-15share/man/man1/dpb.1
+3-151 files

FreeNAS/freenas 0e98acbsrc/middlewared/middlewared/plugins account.py

NAS-139995 / 26.0.0-BETA.2 / fix updating users with invalid builtins (by yocalebo) (#18700)
DeltaFile
+5-4src/middlewared/middlewared/plugins/account.py
+5-41 files

FreeNAS/freenas d30b2a7src/middlewared/middlewared/plugins/service_/services dbus_router.py, tests/api2 test_530_ups.py

NAS-140616 / 26.0.0-BETA.2 / fix ups api test failures (by yocalebo) (#18699)
DeltaFile
+8-15tests/api2/test_530_ups.py
+21-0src/middlewared/middlewared/plugins/service_/services/dbus_router.py
+29-152 files

FreeNAS/freenas 91ed280src/middlewared/middlewared/plugins account.py

NAS-139995 / 27.0.0-BETA.1 / fix updating users with invalid builtins (#18696)
DeltaFile
+5-4src/middlewared/middlewared/plugins/account.py
+5-41 files

FreeNAS/freenas 0b4736bsrc/middlewared/middlewared/plugins/service_/services dbus_router.py, tests/api2 test_530_ups.py

NAS-140616 / 27.0.0-BETA.1 / fix ups api test failures (#18698)
DeltaFile
+8-15tests/api2/test_530_ups.py
+21-0src/middlewared/middlewared/plugins/service_/services/dbus_router.py
+29-152 files

FreeBSD/src 36d9714sys/geom geom_event.c

geom: Make g_waitidle() wait for orphaned providers

This is motivated by the following race in the ZFS zvol code.

When a zvol is created, we create a GEOM-backed zvol, which results in a
/dev/zvol/<zvol path> device file, created by GEOM::dev.  If volmode=dev
is specified, zvol_set_volmode_impl() will wither the GEOM, then create
a device file with the same name.  This sometimes fails because
g_wither_geom() is asynchronous, so we end up trying to create a device
file while the old one still exists.  I want to fix this by adding a
g_waitidle() call to zvol_os_remove_minor().

g_waitidle() is not sufficient: GEOM::dev does not destroy the device
until g_dev_orphan() is called.  (In fact the device destruction is
asynchronous too, but the delist_dev() call is sufficient to address
this race.)  So, I propose modifying g_waitidle() to block until
orphaned providers are processed.

PR:             258766

    [3 lines not shown]
DeltaFile
+1-1sys/geom/geom_event.c
+1-11 files

FreeNAS/freenas 7889442src/middlewared/middlewared/plugins/service_/services dbus_router.py, tests/api2 test_530_ups.py

fix ups api test failures
DeltaFile
+8-15tests/api2/test_530_ups.py
+21-0src/middlewared/middlewared/plugins/service_/services/dbus_router.py
+29-152 files

LLVM/project d9e52cc.github/workflows libcxx-build-and-test.yaml, libcxx/docs TestingLibcxx.rst

[libc++] Optionally support filecheck and split-file (#165769)

This patch adds optional support for FileCheck and split-file in
libc++'s test suite. Whether FileCheck / split-file is available
can be queried using Lit features.

This should make it possible to test several things that were
previously impossible to test, especially for specific code
generation.

Supersedes #65917 and #188283
DeltaFile
+39-0libcxx/test/selftest/splitfile.sh.cpp
+17-5.github/workflows/libcxx-build-and-test.yaml
+15-0libcxx/test/selftest/filecheck.sh.cpp
+15-0libcxx/test/selftest/filecheck.negative.sh.cpp
+9-0libcxx/utils/libcxx/test/features/misc.py
+7-0libcxx/docs/TestingLibcxx.rst
+102-51 files not shown
+107-57 files

LLVM/project 1be9eedllvm/lib/Transforms/ObjCARC ObjCARCOpts.cpp, llvm/test/Transforms/ObjCARC test_autorelease_pool.ll

[ObjCARC] Optimize MayAutorelease by skipping over pools (#188583)

This enables the ARC optimizer to remove autoreleasePoolPush/Pop pairs
that were previously retained. By skipping over nested autorelease
pools, MayAutorelease now correctly recognizes that autoreleases
contained within an inner pool do not escape, allowing the removal of
outer pool boundaries.
DeltaFile
+25-7llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
+29-0llvm/test/Transforms/ObjCARC/test_autorelease_pool.ll
+54-72 files

FreeBSD/ports eb713afgames/veloren-weekly distinfo Makefile

games/veloren-weekly: update to s20260408

Changes:        https://gitlab.com/veloren/veloren/-/compare/1c0a37f006...308212a458
(cherry picked from commit d2205e2f43af61c3c16a911da92e69728a089ec9)
DeltaFile
+3-3games/veloren-weekly/distinfo
+2-2games/veloren-weekly/Makefile
+5-52 files

FreeBSD/ports 380934cdevel/xdg-dbus-proxy distinfo Makefile

devel/xdg-dbus-proxy: update to 0.1.7

Changes:        https://github.com/flatpak/xdg-dbus-proxy/releases/tag/0.1.7
Reported by:    GitHub (watch releases)

(cherry picked from commit db7a86a296ae21881efff528f8a62d3fc8d123be)
DeltaFile
+3-3devel/xdg-dbus-proxy/distinfo
+1-1devel/xdg-dbus-proxy/Makefile
+4-42 files

FreeBSD/ports 0ef9a5adevel/git-cinnabar distinfo Makefile.crates

devel/git-cinnabar: update to 0.7.4

Changes:        https://github.com/glandium/git-cinnabar/releases/tag/0.7.4
Reported by:    GitHub (watch releases)

(cherry picked from commit 1abcfddd1d3066f73e462c578504a3aa08bd0173)
DeltaFile
+139-133devel/git-cinnabar/distinfo
+67-64devel/git-cinnabar/Makefile.crates
+2-3devel/git-cinnabar/Makefile
+208-2003 files

FreeBSD/ports d2205e2games/veloren-weekly distinfo Makefile

games/veloren-weekly: update to s20260408

Changes:        https://gitlab.com/veloren/veloren/-/compare/1c0a37f006...308212a458
DeltaFile
+3-3games/veloren-weekly/distinfo
+2-2games/veloren-weekly/Makefile
+5-52 files

FreeBSD/ports 30af77agraphics/mesa-devel distinfo Makefile

graphics/mesa-devel: update to 26.0.b.3410

Changes:        https://gitlab.freedesktop.org/mesa/mesa/-/compare/aa39da83383...1f0370616a6
DeltaFile
+3-3graphics/mesa-devel/distinfo
+2-2graphics/mesa-devel/Makefile
+5-52 files