FreeBSD/src 4204287sys/kern tty_pts.c tty.c, sys/sys tty.h

tty: gracefully handle proctree_lock locking

Instead of relocking tty to get the proctree_lock and experiencing the
race due to the relock, take the proctree_lock in advance for ioctl
commands that need it.  The affected commands, TIOCNOTTY, TIOCSCTTY,
and TIOCSPGRP, must not be overridden by the specific tty drivers,
so the common handling is cleaner.

Reviewed by:    kevans (previous version), markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+209-172sys/kern/tty.c
+3-0sys/sys/tty.h
+3-0sys/kern/tty_pts.c
+215-1723 files

FreeBSD/src 824f934sys/kern tty_ttydisc.c tty.c, sys/sys tty.h

tty: make tty_wait_background() aware of proctree_lock ownership

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+11-5sys/kern/tty.c
+8-4sys/kern/tty_ttydisc.c
+2-1sys/sys/tty.h
+21-103 files

FreeBSD/src 9bd3fe5sys/kern tty.c

tty: add tty_wait_proctree(9)

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+39-0sys/kern/tty.c
+39-01 files

FreeBSD/src a15c712share/man/man9 condvar.9

condvar.9: document cv_wait_sig_unblock(9)

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+10-1share/man/man9/condvar.9
+10-11 files

FreeBSD/src 0cc6c44sys/kern kern_condvar.c, sys/sys condvar.h

condvars(9): add cv_wait_sig_unlock()

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+55-0sys/kern/kern_condvar.c
+3-0sys/sys/condvar.h
+58-02 files

OpenBSD/ports vsGLqasgraphics/libvips distinfo Makefile, graphics/libvips/pkg PLIST

   Update to libvips-8.18.6.
VersionDeltaFile
1.11+11-7graphics/libvips/Makefile
1.5+2-4graphics/libvips/pkg/PLIST
1.5+2-2graphics/libvips/distinfo
+15-133 files

OpenBSD/ports hEYXYB6fonts/msctfonts Makefile

   Move msctfonts to the font module.
VersionDeltaFile
1.5+5-9fonts/msctfonts/Makefile
+5-91 files

OpenBSD/ports 9dJFQTZfonts/msttcorefonts Makefile, fonts/msttcorefonts/pkg PLIST

   Move msttcorefonts to the font module. Convert docs from ISO-8859-1 to UTF-8.
VersionDeltaFile
1.10+13-12fonts/msttcorefonts/Makefile
1.5+2-1fonts/msttcorefonts/pkg/PLIST
+15-132 files

LLVM/project fdf0409llvm/lib/Target/WebAssembly WebAssemblyDebugValueManager.cpp

[WebAssembly] Avoid scanning unrelated debug values (NFCI) (#218378)

RegStackify looks for debug values when moving an instruction.

But when a debug use comes before the definition, it may collect values
for a lot of unrelated variables until the end of the block.

Stop early once all relevant values have been found instead.

(cherry picked from commit 5bff640ac99dc29ab61cb55bdfc9b992d09b5a85)
DeltaFile
+74-54llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.cpp
+74-541 files

LLVM/project cefac32llvm/lib/DWARFLinker/Parallel DependencyTracker.h DependencyTracker.cpp, llvm/test/tools/dsymutil/X86/DWARFLinkerParallel odr-shared-subtree-demotion.s

[DWARFLinker] Walk each shared subtree's dependencies once (#218072)

cdc31cfa66f0 made every root that references an already-marked subtree
re-walk that subtree to record the completeness dependencies it
contributes, which is what makes the recorded dependency set complete
and independent of thread interleaving. That walk replaced the
isAlreadyMarked short-circuit which had kept marking linear, so a widely
shared subtree is re-parsed and re-resolved once per referencing root.

Linking a RelWithDebInfo clang went from 27s to 67s of wall time and
from 242s to 1447s of CPU, peak memory grew from 35GB to 63GB, and 7.0
billion dependencies were recorded for an unchanged dSYM.

Record only that a root carries the subtree's dependencies and walk each
distinct subtree once. All of a subtree's dependencies demote the same
root, so the expansion stops at the first one that does.

A subtree contributes two kinds of dependency. One kind is recorded
under the root referencing the subtree, varies with that root, and is

    [24 lines not shown]
DeltaFile
+298-0llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-shared-subtree-demotion.s
+164-55llvm/lib/DWARFLinker/Parallel/DependencyTracker.cpp
+121-14llvm/lib/DWARFLinker/Parallel/DependencyTracker.h
+583-693 files

LLVM/project 5f58ba5lldb/source/API SBEnvironment.cpp, lldb/unittests/API CMakeLists.txt SBEnvironmentTest.cpp

[lldb][API] Fix SBEnvironment crash when Set is called with a nullptr. (#218906)

Crashed because std::string is constructed with a nullptr. Wrap with
`llvm::StringRef`.

Add a unittest

(cherry picked from commit 69db8489be2f4e3cb1cf3f874403481d206b545c)
DeltaFile
+36-0lldb/unittests/API/SBEnvironmentTest.cpp
+12-3lldb/source/API/SBEnvironment.cpp
+1-0lldb/unittests/API/CMakeLists.txt
+49-33 files

LLVM/project b201342clang/lib/Format UnwrappedLineParser.cpp, clang/unittests/Format TokenAnnotatorTest.cpp

[clang-format] Harden star and amp annotation (#212856)

At this point we can't (or won't) decide wether this is a template
argument or just an expression, opt out of the specialized (and in the
test cases wrong) assignment.

Fixes #212622

(cherry picked from commit af15d15f9bbd5ac5d3f020d270b38ffe01b0a72a)

[clang-format][NFC] Apply review comments (#218142)

That were missed while merging #212856.

(cherry picked from commit 8dba93818258d95c46fa2c17e902a8256e4d91b5)
DeltaFile
+18-3clang/lib/Format/UnwrappedLineParser.cpp
+12-0clang/unittests/Format/TokenAnnotatorTest.cpp
+30-32 files

LLVM/project b6fee07clang/include/clang/Options Options.td, clang/test/Driver linker-opts.c entry.s

[Driver] Reject the joined form -exxx (#219658)

PR #69114 changed -e to JoinedOrSeparate so that the new --entry aliases
would work. This also accepts -exxx, silently treating a typo or GCC's
-export-dynamic as an entry name (rejected by #72804).

Make -e Separate again.
DeltaFile
+8-2clang/test/Driver/entry.s
+0-6clang/test/Driver/linker-opts.c
+1-1clang/include/clang/Options/Options.td
+9-93 files

LLVM/project 8e392aborc-rt/lib/bedrock/posix Memory.cpp

[orc-rt] Drop reserveMemory's /dev/zero fallback. (#219656)

Just use MAP_ANON / MAP_ANONYMOUS as available.

Also replaces <sys/errno.h> with <errno.h> and drops the now-unused
<fcntl.h>.
DeltaFile
+11-21orc-rt/lib/bedrock/posix/Memory.cpp
+11-211 files

LLVM/project 291a617llvm/lib/Transforms/Vectorize LoopVectorizationPlanner.h LoopVectorize.cpp

[LV] Invalidate cost model before code-gen (NFC) (#217556)

The planner previously held a reference to the
LoopVectorizationCostModel, which is only needed while planning and
computing the best VF. Change the member to a std::unique_ptr so the
planner owns it, and release it via a new clearCostModel() before
executing the best plan. This prevents code generation from relying on
cost-modeling decisions, surfacing any violations.

This patch also migrates one remaining cost-model lookup during codegen
(whether partial alias masks are used) to be VPlan-based (via
findIncomingAliasMask)

Note that there is one case remaining that needs migrating to VPlan yet.
That is checking if an epilogue is allowed.

PR: https://github.com/llvm/llvm-project/pull/217556
DeltaFile
+68-44llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+22-10llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
+90-542 files

OpenBSD/ports mKrwELemultimedia/pipewire/wireplumber distinfo Makefile, multimedia/pipewire/wireplumber/patches patch-src_tools_wpctl_c patch-lib_wp_log_c

   Update to wireplumber-0.5.16.
VersionDeltaFile
1.14+12-3multimedia/pipewire/wireplumber/pkg/PLIST
1.2+7-4multimedia/pipewire/wireplumber/patches/patch-lib_wp_log_c
1.23+3-5multimedia/pipewire/wireplumber/Makefile
1.5+4-4multimedia/pipewire/wireplumber/patches/patch-src_tools_wpctl_c
1.17+2-2multimedia/pipewire/wireplumber/distinfo
+28-185 files

FreeBSD/ports d435197misc/shimmy Makefile Makefile.crates

misc/shimmy: Update to 2.6.3

Changelog: https://github.com/Michael-A-Kuykendall/shimmy/blob/main/CHANGELOG.md#263--2026-08-28--intel-arc-binding-limit-fix

Reported by:    GitHub (watch releases)
DeltaFile
+109-109misc/shimmy/distinfo
+53-53misc/shimmy/Makefile.crates
+1-1misc/shimmy/Makefile
+163-1633 files

OpenBSD/src 4Oau1rdlib/libssl ssl_srvr.c ssl_clnt.c

   libssl: fix API misuse in legacy finished handling

   This looks like a potential out of bounds read or allowing trailing garbage
   in peer_finished. It's harmless because CBS_len() is compared against the
   s->s3->hs.peer_finished_len a few lines up, thus it is only cosmetic.

   discussed with jsing
   ok kenjiro
VersionDeltaFile
1.172+3-2lib/libssl/ssl_srvr.c
1.177+3-2lib/libssl/ssl_clnt.c
+6-42 files

NetBSD/pkgsrc TnZPgaFdevel/bazel Makefile

   bazel: use += for BROKEN_ON_PLATFORM

   From Showta Ishizaki in PR 60666
VersionDeltaFile
1.17+3-3devel/bazel/Makefile
+3-31 files

OpenBSD/src 7XACHwvsys/dev/usb uaudio.c

   uaudio: Ignore transfer completions if audio is halted

   When audio is halted, the pipes are closed and the corresponding usb
   transfer completion functions are called immediately. For certain
   devices the status of the feedback pipe is USBD_NORMAL_COMPLETION,
   which triggers further processing of the received data.

   Fixes the harmless "uaudio0: sync play xfer, err = 6" messages on
   the console.
VersionDeltaFile
1.182+18-3sys/dev/usb/uaudio.c
+18-31 files

OpenBSD/ports 8llfSuwsysutils/awscli/v1 Makefile distinfo

   Update to awscli-1.46.1.
VersionDeltaFile
1.43+2-2sysutils/awscli/v1/distinfo
1.45+1-1sysutils/awscli/v1/Makefile
+3-32 files

LLVM/project f2c31b8compiler-rt/test/fuzzer merge-sigusr.test

[fuzzer] Restrict merge-sigusr.test to Linux (#216702)

The `fuzzer/merge-sigusr.test` test causes the whole `ninja check-all`
run on NetBSD to be killed with `SIGUSR2`.

It turns out the test is highly Linux-specific in at least two ways:

- The `setsid` command doesn't exist on any of Darwin, FreeBSD, and
NetBSD.

- `ps -o sess= <pid>` is highly unportable, too:

  - FreeBSD `ps` doesn't have the `sess` keyword at all.

- NetBSD `ps` does, but with different semantics: it's the session
pointer, not the session id as on Linux, which leads to randomly killing
unrelated processes.

Therefore this patch restricts the test to Linux instead of simply

    [3 lines not shown]
DeltaFile
+3-3compiler-rt/test/fuzzer/merge-sigusr.test
+3-31 files

OpenBSD/ports Y1LIGufx11/gnome/libcloudproviders distinfo Makefile

   Update to libcloudproviders-0.4.1.
VersionDeltaFile
1.8+2-2x11/gnome/libcloudproviders/distinfo
1.9+2-2x11/gnome/libcloudproviders/Makefile
+4-42 files

LLVM/project cb2f67dcompiler-rt/test/msan fork.cpp, compiler-rt/test/sanitizer_common/TestCases/Posix fork_threaded.c

[sanitizer] Skip hanging tests on FreeBSD (#216703)

Three sanitizer tests hang indefinitely on FreeBSD:

```
MemorySanitizer-X86_64 :: fork.cpp
SanitizerCommon-tsan-x86_64-FreeBSD :: Posix/fork_threaded.c
ThreadSanitizer-x86_64 :: fork_multithreaded.cpp
```

All of them loop and don't time out, so they need to be terminated
manually for `ninja check-all` to complete. To avoid this, this patch
skips the affected tests.

Tested on `x86_64-pc-freebsd15.1`, `x86_64-pc-netbsd11.0` and
`x86_64-pc-linux-gnu`.
DeltaFile
+3-0compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c
+1-1compiler-rt/test/msan/fork.cpp
+2-0compiler-rt/test/tsan/fork_multithreaded.cpp
+6-13 files

OpenBSD/ports 7gaY6S2net/py-boto3 Makefile distinfo

   Update to py3-boto3-1.43.83.
VersionDeltaFile
1.662+2-2net/py-boto3/distinfo
1.675+1-1net/py-boto3/Makefile
+3-32 files

OpenBSD/ports LKe83Ymnet/py-botocore Makefile distinfo, net/py-botocore/pkg PLIST

   Update to py3-botocore-1.43.83.
VersionDeltaFile
1.335+6-0net/py-botocore/pkg/PLIST
1.879+2-2net/py-botocore/distinfo
1.889+1-1net/py-botocore/Makefile
+9-33 files

NetBSD/pkgsrc Ez7fjS8doc TODO

   doc/TODO: + calibre-9.14.
VersionDeltaFile
1.27836+2-2doc/TODO
+2-21 files

LLVM/project c7e6d56orc-rt/include/orc-rt-internal/support/sys Memory.h DynamicLibrary.h, orc-rt/lib/bedrock/Unix NativeDylibAPIs.inc NativeMemoryAPIs.inc

[orc-rt] Add a scheme for system-specific code. (#219648)

System-specific code was written two ad-hoc ways: .cpp files selected by
CMake, and Unix/*.inc textually included behind #if ladders.

Those operations are now declared in orc-rt-internal/support/sys/, with
one implementation per capability directory (posix/, darwin/, windows/).
CMake composes capability lists rather than selecting an OS list. E.g.
POSIX targets get posix/ plus their OS directory. A file belongs in a
shared list only if it is uniform across that list's members; where a
function needs an OS conditional it moves into an OS-specific directory
instead. The "Target OS ... unsupported" #error ladders go away with the
textual includes -- components no longer include system code at all, so
the diagnostic belongs in CMake.

hostOS* becomes the orc_rt::sys namespace, matching llvm::sys.

Cache invalidation is the exception, since it wants to inline: it is
declared in sys/CacheControl.h, which selects a per-system definition
header. Its generic path now uses __builtin___clear_cache instead of
declaring __clear_cache, which forced an opaque call.
DeltaFile
+0-103orc-rt/lib/bedrock/Unix/NativeMemoryAPIs.inc
+95-0orc-rt/lib/bedrock/posix/Memory.cpp
+92-0orc-rt/lib/bedrock/posix/DynamicLibrary.cpp
+0-72orc-rt/lib/bedrock/Unix/NativeDylibAPIs.inc
+48-0orc-rt/include/orc-rt-internal/support/sys/DynamicLibrary.h
+44-0orc-rt/include/orc-rt-internal/support/sys/Memory.h
+279-1756 files not shown
+419-20512 files

FreeBSD/ports 5488781misc/codex Makefile distinfo

misc/codex: Update to 0.150.1

Changelog: https://github.com/openai/codex/releases/tag/rust-v0.150.1

Reported by:    GitHub (watch releases)
DeltaFile
+3-3misc/codex/distinfo
+1-2misc/codex/Makefile
+4-52 files

LLVM/project b8dcc02clang/include/clang/AST TemplateName.h, clang/lib/AST TemplateName.cpp

[Clang][C++29] Template pack indexing (#218738)

This partially implement p3670r4
(https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3670r4.pdf) I
haven't implemented mangling yet, it part to limit the scope of this
change which is somewhat larger than I thought it would be.

This introduces a new uncommon template name storage kind that stores a
pattern and the expanded parameter, like we do for types and
expressions.

The rest is fairly mechanical.

The feature is backported to C++98 (for type template parameters).
Funnilly, the backport of pack indexing of types was never actually
tested in C++98 mode and did not work.
It should be fixed by this PR but I'll write tests for it as a follow
up.


    [8 lines not shown]
DeltaFile
+456-0clang/test/SemaCXX/cxx2d-pack-indexing-template.cpp
+139-20clang/lib/Sema/TreeTransform.h
+156-3clang/lib/AST/TemplateName.cpp
+99-1clang/include/clang/AST/TemplateName.h
+82-0clang/lib/Parse/ParseDeclCXX.cpp
+43-32clang/lib/Parse/ParseExprCXX.cpp
+975-5658 files not shown
+1,896-21464 files