LLVM/project 84eca7b — llvm/lib/Analysis MemoryBuiltins.cpp, llvm/test/Transforms/Attributor heap_to_stack_free_result.ll

[LangRef][MemoryBuiltins] Add support for CHERIoT's heap_allocate and heap_free functions. (#245094)

This requires relaxing the LangRef requirement that `allockind(free)`
functions must return `void`. CHERIoTRTOS' primary heap free API
`heap_free` returns an integer error code, necessitating this change.

Once integer-returning `allockind(free)` functions are permitted, we
also add an extensible path for looking up the return value to substitue
in the case where `free(alloc(...))` is elided. For now we require this
to be 0.
DeltaFile
+33-0llvm/test/Transforms/InstCombine/RISCV/cheriot-heap-free.ll
+31-0llvm/test/Transforms/InstCombine/free-int-result.ll
+23-0llvm/test/Transforms/Attributor/heap_to_stack_free_result.ll
+20-0llvm/test/Transforms/InferFunctionAttrs/cheriot-heap.ll
+15-3llvm/lib/Analysis/MemoryBuiltins.cpp
+15-1llvm/test/Verifier/allockind.ll
+137-411 files not shown
+195-1017 files

FreeBSD/src c31d86d — tests/sys/net/bpf bpf.sh

tests/net/bpf: run the bpf:inject test with RSS again

1abb62867f2a skipped the test on RSS kernels because epair(4) delivered
the injected frames out of order.  The reordering within a flow is fixed
in if_epair, but the test still failed in about one run in seven: the
first capture starts with the ARP request from ping(8), which is not an
IP packet and goes to the first epair queue, while the ICMP flow goes to
the queue its hash selects.  Written back to back by the inject step,
the two may arrive in either order.

Add static ARP entries on both ends so that the captures hold only the
ICMP flow, and remove the skip.  On an 8-CPU RSS kernel the test then
passed 250 of 250 runs with the if_epair fix and failed 26 of 150
without it.

While here, use the -j option of ifconfig(8), netstat(1) and arp(8)
instead of jexec(8).

Reviewed by:            glebius, pouria

    [2 lines not shown]
DeltaFile
+11-8tests/sys/net/bpf/bpf.sh
+11-81 files

FreeBSD/src 61dc82a — usr.sbin/arp Makefile.depend Makefile

arp: Teach arp to attach and run itself in a jail

Add a -j jail option, which makes arp(8) attach to the named jail
before it does its work.  This lets the host display and change the ARP
table of a vnet jail that does not have arp(8) installed, such as a
thin jail or a Linux jail.  For example, `arp -j foo -an` or
`arp -j foo -d -a`.

The file given to -f is opened before attaching and processed inside
the jail, as sysctl(8) and ngctl(8) do.  It must be a regular file or
a pipe, so that no directory or device descriptor is carried into the
jail.  Host names are resolved inside the jail, as route(8) and
netstat(1) do.

Reviewed by:            pouria, zlei, ziaee
MFC after:              1 week
Relnotes:               yes
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D61725
DeltaFile
+61-17usr.sbin/arp/arp.c
+30-1usr.sbin/arp/arp.8
+5-0usr.sbin/arp/Makefile
+1-0usr.sbin/arp/Makefile.depend
+97-184 files

LLVM/project bd4e29e — clang/lib/Format WhitespaceManager.cpp, clang/unittests/Format FormatTestComments.cpp

[clang-format] Use formatted breaks to align trailing comments (#246023)

With Allman braces, the first formatting pass can pad a block comment
after a closing brace to align it with a comment after `else`. The
second pass removes that padding because the brace now starts a line in
the input.

Use the formatter's recorded line-break decision when checking the
closing brace. Fall back to the original whitespace when the token has
no formatting decision.

The new regression failed before the change and passed afterward. All 54
comment formatting tests passed in a Windows build that reapplied this
change to LLVM 23.1.6.

Fixes #245606.

Assisted-by: OpenAI Codex. Draft for contributor review.
DeltaFile
+15-0clang/unittests/Format/FormatTestComments.cpp
+3-1clang/lib/Format/WhitespaceManager.cpp
+18-12 files

LLVM/project 59097a9 — offload/libompaccsupport/include device.h, offload/libompaccsupport/src device.cpp

[Offload][Omp] Use olMemCpy3D in omp_target_memcpy_rect

Implement olMemCpyRect more generically in DeviceTy using the
accelerated olMemCy3D if supported by the device.

Use it to reimplement omp_target_memcpy_rect.

Assisted by Claude.
DeltaFile
+292-0offload/libompaccsupport/src/device.cpp
+142-0offload/test/api/omp_target_memcpy_rect_3d.c
+40-27offload/libomptarget/src/API.cpp
+47-0offload/libompaccsupport/include/device.h
+521-274 files

LLVM/project b166c6e — offload/liboffload/plugins/amdgpu/src rtl.cpp, offload/liboffload/plugins/common/include PluginInterface.h

[Offload] Add olMemcpy3D API (#241959)

Add a new API that allows to copy 2D or 3D regions. Implement the
support for all the backends.

This API can be used to implement more efficitently
omp_target_memcpy_rect (see #241960)
or SYCL's sycl_ext_oneapi_memcpy2d.

Assisted by Claude.

---

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>
DeltaFile
+424-0offload/unittests/OffloadAPI/memory/olMemcpy3D.cpp
+180-9offload/liboffload/src/OffloadImpl.cpp
+152-0offload/liboffload/plugins/amdgpu/src/rtl.cpp
+58-0offload/liboffload/plugins/cuda/src/rtl.cpp
+53-0offload/liboffload/plugins/common/include/PluginInterface.h
+44-0offload/liboffload/plugins/level_zero/src/L0Device.cpp
+911-910 files not shown
+1,064-916 files

FreeBSD/ports b5386bc — mail/exim Makefile distinfo

mail/exim: update 4.100.1 -> 4.100.2

PR:             301162
Approved-by:    fluffy (implicit)
Security:       GCVE-25-2026-11-82-1
DeltaFile
+3-3mail/exim/distinfo
+2-2mail/exim/Makefile
+5-52 files

LLVM/project 8e9eb4c — clang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.h LowerToLLVM.cpp

[CIR] Lower constrained FP ops to typed LLVM dialect ops

Constrained FP ops were lowered to llvm.call_intrinsic with the intrinsic
name spelled as a string and the rounding mode, exception behavior and
fcmp predicate passed as metadata operands. The LLVM dialect has typed
ops for these intrinsics, which take the modes as enum attributes and
translate through IRBuilder::CreateConstrainedFPCall/CreateConstrainedFPCmp.

Use them: constrainedLLVMOp names the typed op in ODS (derived from
llvmOp where the names line up), whether it takes a rounding mode comes
from its RoundingModeOpInterface trait, and constrained fcmp reuses
convertCmpKindToFCmpPredicate. This removes the metadata helpers, the
predicate string tables and constrainedLLVMIntrinsicHasRoundingMode.

The LLVM IR now carries the strictfp call-site attribute on constrained
intrinsic calls, matching classic codegen.

Assisted-by: Claude Code (Opus 5.5).
DeltaFile
+115-198clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+61-91clang/test/CIR/Lowering/fenv.cir
+35-33clang/include/clang/CIR/Dialect/IR/CIROps.td
+20-24clang/utils/TableGen/CIRLoweringEmitter.cpp
+6-12clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.h
+237-3585 files

FreeBSD/doc dd952a2 — website/content/en/cgi man.cgi

add Rocky Linux 10.3 manual pages
DeltaFile
+3-1website/content/en/cgi/man.cgi
+3-11 files

FreeBSD/ports 633b067 — www/py-mitmproxy_rs Makefile distinfo

www/py-mitmproxy_rs: update 0.12.15 -> 0.12.16
DeltaFile
+3-3www/py-mitmproxy_rs/distinfo
+1-2www/py-mitmproxy_rs/Makefile
+4-52 files

FreeBSD/ports 08108a8 — devel/py-sirmordred Makefile distinfo

devel/py-sirmordred: update 1.2.13 -> 1.2.14
DeltaFile
+3-3devel/py-sirmordred/distinfo
+1-1devel/py-sirmordred/Makefile
+4-42 files

FreeBSD/ports 4839810 — devel/py-lizard Makefile distinfo

devel/py-lizard: update 1.25.0 -> 1.26.1
DeltaFile
+3-3devel/py-lizard/distinfo
+1-1devel/py-lizard/Makefile
+4-42 files

FreeBSD/ports 2e6f582 — devel/py-sgqlc Makefile distinfo

devel/py-sgqlc: update 18 -> 19
DeltaFile
+3-3devel/py-sgqlc/distinfo
+1-2devel/py-sgqlc/Makefile
+4-52 files

FreeBSD/src aacae7b — sys/netinet tcp_subr.c

tcp: count only the SACK blocks that fit in tcp_maxseg()

tcp_addoptions() sends only the SACK blocks that fit in TCP_MAXOLEN.
tcp_maxseg() counted every pending block and clamped the total, so
without timestamps and with five or more blocks pending it came out 4
bytes below the segment tcp_output() sends.  Limited transmit after an
RTO then sent one full segment and failed the "sent too much" KASSERT.

PR:             282605

Approved by:    adrian (mentor)
Signed-off-by:  Nick Price <nprice at FreeBSD.org>
Reviewed by:    tuexen, glebius, adrian
Differential Revision:  https://reviews.freebsd.org/D60460
(cherry picked from commit d3b02115d4b373c719d9a716da38d94511de3f07)
DeltaFile
+6-3sys/netinet/tcp_subr.c
+6-31 files

LLVM/project 02cb52a — lld/MachO MarkLive.cpp

[lld-macho] Collect S_ATTR_LIVE_SUPPORT sections with the markLive roots

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply at anthropic.com>

DeltaFile
+57-36lld/MachO/MarkLive.cpp
+57-361 files

LLVM/project ee9add3 — lld/MachO MarkLive.cpp

[lld-macho] clang-format the live-support scan

Co-Authored-By: Claude Fable 5.2 <noreply at anthropic.com>
DeltaFile
+27-26lld/MachO/MarkLive.cpp
+27-261 files

FreeBSD/ports 295072a — graphics/opencv distinfo Makefile

graphics/opencv: Restore patch for FFmpeg 9.x

Reported by:    Ivan Rozhuk
PR:             301158
DeltaFile
+3-0graphics/opencv/Makefile
+2-0graphics/opencv/distinfo
+5-02 files

FreeBSD/ports f9902aa — games/xpuzzles Makefile distinfo

games/xpuzzles: update to 8.9.6
DeltaFile
+3-3games/xpuzzles/distinfo
+1-1games/xpuzzles/Makefile
+4-42 files

FreeBSD/src 3f42750 — sys/netipsec ipsec_input.c

netipsec: Do not unlock the sahtree twice in ipsec6_common_input_cb()

For transport mode, ipsec6_common_input_cb() releases the sahtree read
lock before it walks the remaining header chain.  The error exits of
that walk jumped to the bad label, which released the lock a second
time.  A packet that exceeds net.inet6.ip6.hdrnestlimit, is truncated,
or fails the inbound policy check on its last header is enough to get
there.

The second rm_runlock() panics kernels with INVARIANTS.  Without
INVARIANTS it unbalances td_pinned and removes a tracker that is no
longer queued, which may corrupt the per-CPU tracker list.

Give the header chain walk its own exit label that skips the unlock.

Reported by:            llm-postcr
Reviewed by:            markj, kib
Fixes:                  183513d15f22 ("sys/netipsec: ensure sah stability...")
MFC after:              1 week

    [2 lines not shown]
DeltaFile
+5-4sys/netipsec/ipsec_input.c
+5-41 files

FreeBSD/src f0692bc — usr.sbin/sysrc sysrc, usr.sbin/sysrc/tests sysrc_test.sh

sysrc: Fix unlikely and rare edge-case

Fix 1 issue identified in post-commit review of eaf7113:

POSTCR-1.1: with -F, the "unchanged" check compares a file path
against the new value, so a value equal to the path is silently
not written

Add an ATF test to ensure we catch the edge-case possibility.

Special note: To replicate this misbehavior you'd have to do
something like: sysrc -f /etc/rc.conf foo=1 and then execute
sysrc -F -f /etc/rc.conf foo=/etc/rc.conf

Reported by:    llm-postcr
Fixes:          eaf7113bef8f ("sysrc: Add "unchanged" messages")
DeltaFile
+38-0usr.sbin/sysrc/tests/sysrc_test.sh
+11-19usr.sbin/sysrc/sysrc
+49-192 files

NetBSD/src 0DHZfXh — crypto/external/bsd/libsaslc/dist/man libsaslc.3

   libsaslc(3): brush up configuration section

   Fix function names.  Prettify path templates.
VersionDeltaFile
1.23+34-33crypto/external/bsd/libsaslc/dist/man/libsaslc.3
+34-331 files

FreeBSD/ports 574db97 — devel/gogs Makefile distinfo

devel/gogs: update to 0.14.4

Reported by:    David Marker <dave at freedave.net>
Differential Revision:  https://reviews.freebsd.org/D62114
DeltaFile
+5-5devel/gogs/distinfo
+1-2devel/gogs/Makefile
+6-72 files

OpenBSD/src HanVRs5 — regress/usr.bin/ssh sshcfgparse.sh

   check ForwardAgent first-match-winsicity

   Anthropic ANT-2026-XZ9JOD1K
VersionDeltaFile
1.13+13-1regress/usr.bin/ssh/sshcfgparse.sh
+13-11 files

OpenBSD/src QXS7aUh — usr.bin/ssh readconf.c

   Make ForwardAgent=yes properly first-match-wins when a later
   ForwardAgent=/path runs in a match block.

   Anthropic ANT-2026-XZ9JOD1K
VersionDeltaFile
1.425+7-4usr.bin/ssh/readconf.c
+7-41 files

LLVM/project 1b2fb99 — clang/lib/AST/ByteCode EvaluationResult.cpp

[clang][bytecode] Fix non-determinism diagnosing allocations. (#246151)

If there are multiple dynamic allocations, make sure we pick
consistently. Fixes failure on reverse-iteration bot
(https://lab.llvm.org/buildbot/#/builders/110).
DeltaFile
+3-2clang/lib/AST/ByteCode/EvaluationResult.cpp
+3-21 files

OpenBSD/src Rto6q8u — regress/usr.bin/ssh/unittests/misc test_convtime.c

   check parse_absolute_time() with times before epoch

   Anthropic ANT-2026-X3MEZKOG
VersionDeltaFile
1.5+11-1regress/usr.bin/ssh/unittests/misc/test_convtime.c
+11-11 files

OpenBSD/src ugBScuT — usr.bin/ssh misc.c

   make parse_absolute_time() reject times before epoch

   Anthropic ANT-2026-X3MEZKOG
VersionDeltaFile
1.224+4-1usr.bin/ssh/misc.c
+4-11 files

LLVM/project e68ecdb — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 pr246253.ll

[X86] canonicalizeShuffleWithOp - VZEXT_MOVL(LOGIC(X,Y)) ensure LOGIC uses integer type (#246469)

Missed in #245974 - VZEXT_MOVL nodes might have been used for fp-types,
so we must cast to an equivalent integer vector to perform the
and/or/xor op.

Fixes #246253
DeltaFile
+20-0llvm/test/CodeGen/X86/pr246253.ll
+5-1llvm/lib/Target/X86/X86ISelLowering.cpp
+25-12 files

LLVM/project 5e3c11b — clang/include/clang/StaticAnalyzer/Core/PathSensitive RangedConstraintManager.h, clang/lib/StaticAnalyzer/Core RangeConstraintManager.cpp

[analyzer][NFC] Avoid rebuilding full type ranges in the range inferrer (#246441)

SymbolicRangeInferrer::infer(QualType) built the full range of the type
for every symbol whose range was queried, and intersecting it with the
symbol's constraint built and uniqued another copy of the constraint.

Cache the full range set per integer type in RangeSet::Factory, and let
intersect return an operand directly when the other one is a single
range covering it.

On some LLVM TUs (GVN, LiveVariables, RegionStore, SemaExpr) this
reduces the instructions of the static analyzer by 1.7-3.2%.

Assisted-by: Claude Opus 5.5

Co-authored-by: Gabor Horvath <gaborh at apple.com>
DeltaFile
+22-2clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp
+7-0clang/include/clang/StaticAnalyzer/Core/PathSensitive/RangedConstraintManager.h
+29-22 files

OpenBSD/src V927X9L — usr.bin/ssh ssh_config.5 sshconnect.c

   Don't let AddKeysToAgent clobber keys already in the agent, potentially
   removing key constraints in the process.

   Anthropic ANT-2026-VS3UR46N
VersionDeltaFile
1.394+17-1usr.bin/ssh/sshconnect.c
1.436+3-1usr.bin/ssh/ssh_config.5
+20-22 files