FreeBSD/ports bd08efd — deskutils/xdg-desktop-portal Makefile

deskutils/xdg-desktop-portal: remove shims for EOL FreeBSD 15.0

Missed in 3bcc752b87a2adce2c2cc389687c2d058c514882

PR:             301059
Approved by:    arrowd (maintainer)
DeltaFile
+1-12deskutils/xdg-desktop-portal/Makefile
+1-121 files

LLVM/project 39d1d20 — llvm/lib/Target/RISCV RISCVISelLowering.cpp RISCVInstrInfoP.td

[RISCV][P-ext] Rename PMACC_HALVES_* to drop the P. NFC

These opocdes are used for nodes with scalar results so they shouldn't
have P in their name.
DeltaFile
+40-40llvm/lib/Target/RISCV/RISCVInstrInfoP.td
+11-11llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+51-512 files

DragonFlyBSD/src 9f0e625 — sys/platform/pc64/apic lapic.h lapic.c, sys/platform/pc64/x86_64 mp_machdep.c

kernel - Move mfence into selected_apic_ipi() and single_apic_ipi()

* Make sure pending writes are flushed before issuing APIC IPIs.
  Probably only needed for MSR-based IPIs, but do it for both
  MEM and MSR.

* Remove explicit mfence prior to issuing IPI.
DeltaFile
+25-2sys/platform/pc64/apic/lapic.c
+1-1sys/platform/pc64/x86_64/mp_machdep.c
+1-0sys/platform/pc64/apic/lapic.h
+27-33 files

LLVM/project ad79ef4 — clang/include/clang/Basic DiagnosticSemaKinds.td, clang/lib/Sema SemaDeclAttr.cpp

[clang][Sema][ThreadSafety] Accept attributes without arguments as meaning 'this' (#242937)

An attribute such as ACQUIRE or RELEASE without capability arguments is
documented to refer to 'this': the analysis translates it to the self
argument of the call (ThreadSafetyAnalyzer::getMutexIDs). But Sema
accepts one only on a non-static method of a capability class, and
elsewhere warns, even though it keeps the attribute.

On a function pointer field, the meaning of such an attribute has slowly
changed without being explicitly proposed. d1e84bb9ad3b (#191187)
allowed these attributes on function pointer fields. A call through a
field had no self argument then, so such an attribute on a field
translated to no capability and was dropped. dfeadc6b0836 (#231602) made
the base of the member access the self argument of a call through a
field, so that the attribute could name a sibling member. As a side
effect, an attribute without arguments on a field came to name that
object, as it does on a method. For

    struct CAPABILITY("mutex") Node {

    [39 lines not shown]
DeltaFile
+44-15clang/test/SemaCXX/warn-thread-safety-parsing.cpp
+42-5clang/lib/Sema/SemaDeclAttr.cpp
+32-9clang/test/Sema/attr-capabilities.c
+39-0clang/test/SemaCXX/warn-thread-safety-analysis.cpp
+13-0clang/test/Sema/warn-thread-safety-analysis.c
+4-3clang/include/clang/Basic/DiagnosticSemaKinds.td
+174-322 files not shown
+181-328 files

LLVM/project 9b9769a — clang/lib/Parse ParseDecl.cpp, clang/lib/Sema SemaTemplateInstantiate.cpp SemaTemplateInstantiateDecl.cpp

[clang][Sema][ThreadSafety] Name a member through 'this' in a parameter's attribute (#241077)

When parsing a parameters attribute, `this` wasn't in scope, so it
turned into a `DeclRefExpr`, which got turned into a wildcard for `&mu`
or matched nothing for `mu`. But the `DeclRefExpr` was only supposed to
turn into a wildcard for `&S::mu`, not to unexpectedly degrade accuracy
in all cases when parsing was imprecise. For example, in:

    struct S {
      Mutex mu;
      void run(void (*cb)() REQUIRES(mu));
    };

The analysis then read 'mu' as no particular object, matching no held
capability, so 'cb()' warned with 'mu' held; and '&mu' as the wildcard
'&S::mu', matching the 'mu' of any object.

This PR now parses a parameter's late-parsed attributes in the
function's scope, along with the function's own: at the end of the

    [16 lines not shown]
DeltaFile
+159-0clang/test/SemaCXX/warn-thread-safety-analysis.cpp
+105-0clang/test/AST/ast-dump-thread-safety-param-this.cpp
+60-14clang/lib/Parse/ParseDecl.cpp
+56-7clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+28-10clang/test/SemaCXX/warn-thread-safety-late-parsing.cpp
+32-2clang/lib/Sema/SemaTemplateInstantiate.cpp
+440-336 files not shown
+530-5712 files

FreeBSD/src 1660d69 — sys/dev/usb usbdevs, sys/dev/usb/quirk usb_quirk.c

Add USB quirk for WCH-Link adapter

WCH-Link is a debug adapter from QinHeng Electronics that features a
(proprietary) debug bridge for their RISC-V MCUs, as well as a serial
gateway, implemented as a CDC device.  The CDC's call management
descriptor declares the data interface to be 1, but it is actually
interface 2. UQ_IGNORE_CDC_CM has already been implemented before to
handle this kind of firmware bug, so just add this quirk for WCH-Link.

Reported by:    Holm Tiffe
MFC after:      1 week
DeltaFile
+1-0sys/dev/usb/usbdevs
+1-0sys/dev/usb/quirk/usb_quirk.c
+2-02 files

DragonFlyBSD/src cb7c913 — sys/vfs/hammer hammer_inode.c, sys/vfs/hammer2 hammer2_inode.c

vfs: drop S_ISGID on create when not a member of the group

A new file on tmpfs, HAMMER or HAMMER2 gets the directory's group and
the mode the caller asked for.  If the creator was not a member of
that group, S_ISGID was kept, so any user who can write to a
directory owned by another group could create a set-group-ID
executable for that group; with /tmp on tmpfs (root:wheel 1777) that
is wheel.  UFS and ext2fs already drop the bit when they create the
inode.

Do the same check as ufs_makeinode() in tmpfs_alloc_file(),
hammer_create_inode() and hammer2_inode_create_normal(), after the
group has been chosen: keep S_ISGID only for a member of the group or
with SYSCAP_NOVFS_SETGID.  As in FreeBSD's fix for tmpfs, this covers
every node type.

Same issue as FreeBSD-SA-26:94.tmpfs (CVE-2026-127749).

Tested on tmpfs, UFS, HAMMER and HAMMER2: a file created with mode

    [6 lines not shown]
DeltaFile
+13-1sys/vfs/tmpfs/tmpfs_subr.c
+10-0sys/vfs/hammer2/hammer2_inode.c
+10-0sys/vfs/hammer/hammer_inode.c
+33-13 files

FreeBSD/ports 0b948e4 — converters/p5-Sereal Makefile distinfo

converters/p5-Sereal: update 7.002 -> 7.003

Changelog: https://metacpan.org/dist/Sereal/changes
DeltaFile
+3-3converters/p5-Sereal/distinfo
+1-1converters/p5-Sereal/Makefile
+4-42 files

FreeBSD/ports 3ec08f1 — converters/p5-Sereal-Decoder Makefile distinfo

converters/p5-Sereal-Decoder: update 7.002 -> 7.003

Changelog: https://metacpan.org/dist/Sereal-Decoder/changes
DeltaFile
+3-3converters/p5-Sereal-Decoder/distinfo
+1-1converters/p5-Sereal-Decoder/Makefile
+4-42 files

FreeBSD/ports 90166c8 — devel/p5-Scope-Upper Makefile distinfo

devel/p5-Scope-Upper: update 0.34 -> 0.35

Changelog: https://metacpan.org/dist/Scope-Upper/changes
DeltaFile
+3-3devel/p5-Scope-Upper/distinfo
+1-1devel/p5-Scope-Upper/Makefile
+4-42 files

FreeBSD/ports 2eee5aa — mail/p5-MIME-Tools Makefile distinfo

mail/p5-MIME-Tools: update 5.522 -> 5.523

Changelog: https://metacpan.org/dist/MIME-tools/changes
DeltaFile
+3-3mail/p5-MIME-Tools/distinfo
+1-1mail/p5-MIME-Tools/Makefile
+4-42 files

FreeBSD/ports e654e08 — converters/p5-Sereal-Encoder Makefile distinfo

converters/p5-Sereal-Encoder: update 7.002 -> 7.003

Changelog: https://metacpan.org/dist/Sereal-Encoder/changes
DeltaFile
+3-3converters/p5-Sereal-Encoder/distinfo
+1-1converters/p5-Sereal-Encoder/Makefile
+4-42 files

LLVM/project 29b61bf — flang/lib/Lower/OpenMP Utils.cpp, flang/test/Lower/OpenMP metadirective-target-boundary.f90 declare-variant-spec-expr.f90

[flang][OpenMP] Build the variant construct context from source nesting

METADIRECTIVE and DECLARE VARIANT selection collected the construct trait
set by walking the MLIR operations that enclose the current insertion
point. Those operations do not match source nesting: only some
constructs create an operation, composite constructs nest their
operations in a different order, and a clause is emitted wherever the
operation it belongs to is being built.

Collect the context from the source instead. The OpenMP constructs that
enclose the current PFT evaluation give the context of a statement. A
frame is recorded for each construct region entered while lowering an
evaluation, so that a clause sees the outer leaf constructs of its
compound directive. A METADIRECTIVE contributes the directive it
selected.

No functional change is intended. The context still contains only the
constructs counted before: TARGET, TEAMS, PARALLEL, DO, SIMD and
DISPATCH. Counting the remaining enclosing constructs is left to

    [11 lines not shown]
DeltaFile
+257-0flang/test/Lower/OpenMP/declare-variant-metadirective-context.f90
+68-39flang/lib/Lower/OpenMP/Utils.cpp
+71-0flang/test/Lower/OpenMP/declare-variant-clause-context.f90
+56-0flang/test/Lower/OpenMP/declare-variant-spec-expr.f90
+55-0flang/test/Lower/OpenMP/metadirective-target-boundary.f90
+47-0llvm/unittests/Frontend/OpenMPContextTest.cpp
+554-398 files not shown
+689-5014 files

LLVM/project 4f3e35a — flang/lib/Lower/OpenMP Utils.cpp, flang/lib/Semantics openmp-utils.cpp

[flang][OpenMP] Require an enclosing SIMD for construct={simd}

A construct={simd} selector without properties was ignored, because SIMD
is a predefined trait selector name (it can take clause properties)
rather than a directive name. A DECLARE VARIANT or METADIRECTIVE
alternative that requires SIMD was therefore selected everywhere,
including outside any SIMD construct.

Record the SIMD construct trait for such a selector. Lowering builds the
construct trait set from the enclosing MLIR operations, so also recognize
omp.simd there; otherwise calls inside SIMD would no longer match.

Fixes #244759

Assisted-by: GitHub Copilot
DeltaFile
+21-0flang/test/Lower/OpenMP/declare-variant-construct.f90
+9-2flang/lib/Semantics/openmp-utils.cpp
+10-0flang/test/Lower/OpenMP/metadirective-construct.f90
+2-0flang/lib/Lower/OpenMP/Utils.cpp
+42-24 files

LLVM/project c7d9ef6 — llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/AArch64 gep-affine-different-pointer-base.ll

[SLP]Handle CouldNotCompute GEP pointer diff

getMinusSCEV returns CouldNotCompute for different pointer bases.
SCEVs cached before LCSSA formation make that possible for GEPs on
the same pointer operand; isLoopInvariant then crashed.

Fixed #245379

Pull-request: https://github.com/llvm/llvm-project/pull/245398
DeltaFile
+70-0llvm/test/Transforms/SLPVectorizer/AArch64/gep-affine-different-pointer-base.ll
+1-0llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+71-02 files

LLVM/project ad604a8 — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 avx512fp16-mov.ll pr45443.ll

[X86] isGuaranteedNotToBeUndefOrPoisonForTargetNode - add X86ISD::VBROADCAST_LOAD/SUBV_BROADCAST_LOAD handling (#245057)

Similar to #241972 - inspect constant loads by
X86ISD::VBROADCAST_LOAD/SUBV_BROADCAST_LOAD nodes for UNDEF/POISON

pr45443.ll - fixes regression from #243097
DeltaFile
+18-0llvm/lib/Target/X86/X86ISelLowering.cpp
+5-5llvm/test/CodeGen/X86/setcc-lowering.ll
+0-8llvm/test/CodeGen/X86/pr45443.ll
+1-1llvm/test/CodeGen/X86/avx512fp16-mov.ll
+24-144 files

FreeBSD/src d46e229 — sys/netpfil/ipfw dn_aqm_pie.c dn_aqm_codel.c

dummynet(4): remove not needed <netinet6/ip6_var.h>
DeltaFile
+0-1sys/netpfil/ipfw/dn_aqm_pie.c
+0-1sys/netpfil/ipfw/dn_aqm_codel.c
+0-22 files

FreeBSD/src a5c4d3a — sys/dev/enic enic_txrx.c

enic(4): remove not needed <netinet6/ip6_var.h>
DeltaFile
+0-1sys/dev/enic/enic_txrx.c
+0-11 files

FreeBSD/src d1e76c3 — sys/dev/vmware/vmxnet3 if_vmx.c

vmx(4): remove not needed <netinet6/ip6_var.h>
DeltaFile
+0-1sys/dev/vmware/vmxnet3/if_vmx.c
+0-11 files

FreeBSD/src d1b36c5 — sys/netipsec xform_ipcomp.c xform_esp.c

ipsec(4): remove not needed <netinet6/ip6_var.h>
DeltaFile
+0-1sys/netipsec/xform_ipcomp.c
+0-1sys/netipsec/xform_esp.c
+0-1sys/netipsec/xform_ah.c
+0-1sys/netipsec/ipsec_offload.c
+0-44 files

FreeBSD/src 8f8c37d — sys/compat/linux linux_socket.c

linux(4): remove not needed <netinet6/ip6_var.h>
DeltaFile
+0-1sys/compat/linux/linux_socket.c
+0-11 files

FreeBSD/ports 6525ec9 — science/afni Makefile distinfo

science/afni: Update to 26.3.12
DeltaFile
+3-3science/afni/distinfo
+1-1science/afni/Makefile
+4-42 files

LLVM/project e2c9cfc — clang/include/clang/StaticAnalyzer/Core/PathSensitive SymbolManager.h, clang/lib/StaticAnalyzer/Core RegionStore.cpp SymbolManager.cpp

[analyzer] Avoid redundant lookups when removing dead bindings (#244748)

RegionStoreManager::removeDeadBindings looked up every cluster it was
already iterating over to check whether it was visited. SymbolReaper
re-walked the dependents of symbols that were already marked live and
looked up symbols twice. This reduces the instructions of analyzing some
LLVM TUs by about 1%.

Assisted-by: Claude Opus 5.5

---------

Co-authored-by: Gabor Horvath <gaborh at apple.com>
Co-authored-by: Balázs Benics <benicsbalazs at gmail.com>
DeltaFile
+22-24clang/lib/StaticAnalyzer/Core/SymbolManager.cpp
+4-4clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h
+2-4clang/lib/StaticAnalyzer/Core/RegionStore.cpp
+28-323 files

LLVM/project 0a90062 — mlir/unittests/Transforms GreedyPatternRewriteDriver.cpp

Revert "[mlir][rewriter] Add test for stale deadness cache on nested in-place update" (#245292)

This reverts commit 22a0a6fcb1fdca106a3d02f7ffd4b9ded47bd20e.

Fixes buildbot failure
https://lab.llvm.org/buildbot/#/builders/241/builds/2192
DeltaFile
+0-31mlir/unittests/Transforms/GreedyPatternRewriteDriver.cpp
+0-311 files

LLVM/project 9f827d0 — clang/include/clang/Basic BuiltinsRISCV.td, clang/lib/CodeGen/TargetBuiltins RISCV.cpp

[RISCV][P-ext] Rename pabs/pabd intrinsics to match latest spec. (#245321)

The type suffix should be unsigned to match the return type.

Spec change: https://github.com/riscv/riscv-p-spec/pull/383
DeltaFile
+24-24clang/test/CodeGen/RISCV/rvp-intrinsics.c
+20-20cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
+8-8clang/lib/Headers/riscv_packed_simd.h
+8-8clang/lib/CodeGen/TargetBuiltins/RISCV.cpp
+4-4clang/include/clang/Basic/BuiltinsRISCV.td
+64-645 files

FreeNAS/freenas 3df231d — src/middlewared/middlewared/plugins/container lifecycle.py utils.py, tests/api2 test_container.py

NAS-145321 / 27.0.0 / Resolve container etc paths within the rootfs when setting the hostname (by bmeagherix) (by bugclerk) (#20290)

Read an existing etc/hosts relative to the container's rootfs, resolving
symlinks as the container itself would, and only if it is a regular file
of a reasonable size. atomic_write already refuses a symlink in the path
of the files it writes.

Original PR: https://github.com/truenas/middleware/pull/20264


Original PR: https://github.com/truenas/middleware/pull/20276

Co-authored-by: bmeagherix <118192357+bmeagherix at users.noreply.github.com>
DeltaFile
+33-14src/middlewared/middlewared/plugins/container/utils.py
+19-0tests/api2/test_container.py
+2-3src/middlewared/middlewared/plugins/container/lifecycle.py
+54-173 files

OPNSense/core 9c2fd34 — src/etc rc.reboot rc.halt, src/etc/rc.syshook.d/early 05-upgrade

system: follow up on 3074f8e1257d
DeltaFile
+7-1src/etc/rc.syshook.d/stop/99-config
+1-1src/etc/rc.reboot
+1-1src/etc/rc.halt
+2-0src/etc/rc.syshook.d/early/05-upgrade
+11-34 files

FreeNAS/freenas a6a3947 — src/middlewared/middlewared/plugins/audit audit.py, tests/api2 test_audit_basic.py

NAS-145323 / 27.0.0 / Only accept a report file name in audit.download_report (by bmeagherix) (by bugclerk) (#20289)

audit.export creates each report directly in the user's report
directory, so report_name must be a single file name.


Original PR: https://github.com/truenas/middleware/pull/20266


Original PR: https://github.com/truenas/middleware/pull/20273

Co-authored-by: bmeagherix <118192357+bmeagherix at users.noreply.github.com>
DeltaFile
+23-9src/middlewared/middlewared/plugins/audit/audit.py
+8-0tests/api2/test_audit_basic.py
+31-92 files

FreeNAS/freenas 4b7dacc — src/middlewared/middlewared/plugins filesystem.py, src/middlewared/middlewared/plugins/filesystem_ acl.py

NAS-145324 / 27.0.0 / Check the resolved path in filesystem permission changes (by bmeagherix) (by bugclerk) (#20288)

The path checks of filesystem.chown, filesystem.setperm and
filesystem.setacl compared filesystem.stat's realpath, which keeps ".."
components for anything that is not itself a symlink, and matched
prefixes without a component boundary. Check os.path.realpath() of the
path instead, and compare whole path components.

Also fix the schema name in the "Must be an absolute path" error.

Original PR: https://github.com/truenas/middleware/pull/20267


Original PR: https://github.com/truenas/middleware/pull/20271

Co-authored-by: bmeagherix <118192357+bmeagherix at users.noreply.github.com>
DeltaFile
+7-5src/middlewared/middlewared/plugins/filesystem_/acl.py
+11-0tests/api2/test_190_filesystem.py
+1-1src/middlewared/middlewared/plugins/filesystem.py
+19-63 files

LLVM/project dbcf82a — llvm/lib/Transforms/InstCombine InstCombineSelect.cpp, llvm/test/Transforms/InstCombine select-masked-arm.ll

[InstCombine] Fold a select of X and (and X, M) when the condition bounds X

If C implies that X has no bits outside the constant mask M, the arms of
select C, X, (and X, M) are equal wherever C holds, so the select is its
false arm; if !C implies it, the select is its true arm. The same holds
with the arms swapped.

Lua's interpreter decodes an RK operand by selecting between B and B &
0xff on the sign of the instruction word. On RISC-V, SimplifyCFG sinks
the two GEPs of RK() into one and leaves a select of their indices:

  %s = lshr i32 %i, 23
  %c = icmp sgt i32 %i, -1
  %a = and i32 %s, 255
  %r = select i1 %c, i32 %s, i32 %a

On RISC-V (rv64gc, -O3) this removes 46 instructions from lvm.c of Lua
5.1.4 (MultiSource/Applications/lua in llvm-test-suite, 2218 -> 2172)
and 84 from that of the Lua 5.3.6 release (3641 -> 3557). SimplifyCFG

    [8 lines not shown]
DeltaFile
+7-26llvm/test/Transforms/InstCombine/select-masked-arm.ll
+14-0llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+21-262 files