FreeBSD/ports 20f3328Mk bsd.port.mk

Mk/bsd.port.mk: Drop the strip parameter from PATCHFILES passed to do-fetch.sh

After recent changes to handling of do-fetch.sh in bsd.port.mk, the
strip parameters (e.g., ":-p1") are no longer dropped before do-fetch.sh
receives patch files.

As a result, a strip parameter of a patch file might be interpreted as a
group instead and get prepended to the patch file, resulting in warnings
like:

```
$ make makesum
===>  License MIT accepted by the user
=> e3efbb5923f638b38087a3f616906d9d4fdaf6f2.patch doesn't seem to exist in /var/cache/distfiles.
=> Attempting to fetch p1e3efbb5923f638b38087a3f616906d9d4fdaf6f2.patch
fetch: p1e3efbb5923f638b38087a3f616906d9d4fdaf6f2.patch: No such file or directory
```

Reviewed by:    mat

    [4 lines not shown]
DeltaFile
+1-1Mk/bsd.port.mk
+1-11 files

LLVM/project 7d65da4llvm/include/llvm/Support ConvertEBCDIC.h, llvm/lib/Support ConvertEBCDIC.cpp

[Support] Correct UTF-8 error handling in ConvertEBCDIC (#185176)

`ConverterEBCDIC::convertToEBCDIC()` previously decoded only ASCII and
UTF-8 sequences beginning with `C2` or `C3`. Consequently, an incomplete
three- or four-byte sequence was reported as
`std::errc::illegal_byte_sequence`, even though the `TextEncoding`
contract uses `std::errc::invalid_argument` for incomplete input.

Decode each UTF-8 sequence using LLVM's shared `convertUTF8Sequence()`
utility before checking whether the decoded code point is supported by
the EBCDIC-1047 conversion table.

The resulting error handling is:
- Incomplete prefixes that can still form valid UTF-8 return
`std::errc::invalid_argument`.
- Malformed UTF-8 returns `std::errc::illegal_byte_sequence`.
- Valid UTF-8 code points outside U+0000 through U+00FF return
`std::errc::illegal_byte_sequence`.


    [11 lines not shown]
DeltaFile
+53-24llvm/lib/Support/ConvertEBCDIC.cpp
+33-0llvm/unittests/Support/ConvertEBCDICTest.cpp
+9-0llvm/include/llvm/Support/ConvertEBCDIC.h
+95-243 files

HardenedBSD/src 3266825lib/libc/db/hash hash.c, lib/libc/tests/db db_hash_tamper_test.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+227-0lib/libc/tests/db/db_hash_tamper_test.c
+128-22sys/net/route/fib_algo.c
+71-0sys/dev/amdsmu/amdsmu.c
+35-12lib/libc/db/hash/hash.c
+27-7sys/dev/hyperv/netvsc/if_hn.c
+30-0sys/compat/linuxkpi/common/src/linux_page.c
+518-4118 files not shown
+670-7124 files

HardenedBSD/src 7800bd3lib/libc/db/hash hash.c, lib/libc/tests/db db_hash_tamper_test.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+227-0lib/libc/tests/db/db_hash_tamper_test.c
+128-22sys/net/route/fib_algo.c
+71-0sys/dev/amdsmu/amdsmu.c
+35-12lib/libc/db/hash/hash.c
+27-7sys/dev/hyperv/netvsc/if_hn.c
+30-0sys/compat/linuxkpi/common/src/linux_page.c
+518-4118 files not shown
+670-7124 files

HardenedBSD/src 9679c50libexec/rtld-elf rtld.c

Merge remote-tracking branch 'rad/hardened/15-stable/main' into hardened/15-stable/pledge
DeltaFile
+11-6libexec/rtld-elf/rtld.c
+11-61 files

HardenedBSD/src 9d955d1lib/libc/db/hash hash.c, lib/libc/tests/db db_hash_tamper_test.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+227-0lib/libc/tests/db/db_hash_tamper_test.c
+128-22sys/net/route/fib_algo.c
+71-0sys/dev/amdsmu/amdsmu.c
+35-12lib/libc/db/hash/hash.c
+27-7sys/dev/hyperv/netvsc/if_hn.c
+30-0sys/compat/linuxkpi/common/src/linux_page.c
+518-4118 files not shown
+670-7124 files

HardenedBSD/src 0ebe4b8libexec/rtld-elf rtld.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+11-6libexec/rtld-elf/rtld.c
+11-61 files

FreeBSD/ports 20ef592x11/pmenu distinfo Makefile, x11/pmenu/files patch-config.mk

x11/pmenu: Update to 3.1.1

Sponsored by:   fme AG
DeltaFile
+0-19x11/pmenu/files/patch-config.mk
+10-5x11/pmenu/Makefile
+7-3x11/pmenu/distinfo
+17-273 files

FreeBSD/src 1568e6bsys/dev/hyperv/netvsc if_hnvar.h if_hn.c

hn: Refresh VF RSS configuration after link recovery

A VF can finish initialization or reset recovery after hn's handoff-time
RSS query returned ENXIO.  In that case hn suppresses synthetic receive
hash metadata, but previously left it disabled even after the VF could
answer the queries again.

Queue an RSS refresh on a VF link-up notification, using the existing VF
worker in both transparent and non-transparent modes.  Revalidate the
association, active VF path, administrative state, and carrier under
hn_lock before querying and reconfiguring synthetic RSS.  Coalesce the
requests with an atomic flag and retain a request while capability
forwarding temporarily excludes the worker.  Keep the existing query
validity checks and unsupported-query fallback unchanged.

This is a one-shot refresh, not a readiness poll.  Recovery without a
link-up notification, or a query that still fails during the refresh,
does not trigger another retry by itself.  A later link-up or normal
handoff can query again.  Consuming the request while the VF path is

    [17 lines not shown]
DeltaFile
+27-7sys/dev/hyperv/netvsc/if_hn.c
+1-0sys/dev/hyperv/netvsc/if_hnvar.h
+28-72 files

HardenedBSD/src 1568e6bsys/dev/hyperv/netvsc if_hnvar.h if_hn.c

hn: Refresh VF RSS configuration after link recovery

A VF can finish initialization or reset recovery after hn's handoff-time
RSS query returned ENXIO.  In that case hn suppresses synthetic receive
hash metadata, but previously left it disabled even after the VF could
answer the queries again.

Queue an RSS refresh on a VF link-up notification, using the existing VF
worker in both transparent and non-transparent modes.  Revalidate the
association, active VF path, administrative state, and carrier under
hn_lock before querying and reconfiguring synthetic RSS.  Coalesce the
requests with an atomic flag and retain a request while capability
forwarding temporarily excludes the worker.  Keep the existing query
validity checks and unsupported-query fallback unchanged.

This is a one-shot refresh, not a readiness poll.  Recovery without a
link-up notification, or a query that still fails during the refresh,
does not trigger another retry by itself.  A later link-up or normal
handoff can query again.  Consuming the request while the VF path is

    [17 lines not shown]
DeltaFile
+27-7sys/dev/hyperv/netvsc/if_hn.c
+1-0sys/dev/hyperv/netvsc/if_hnvar.h
+28-72 files

HardenedBSD/ports 3182426devel/llvm-devel pkg-plist, editors/zed distinfo

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+17-204math/universal/pkg-plist
+55-57www/sqlpage/distinfo
+43-49editors/zed/distinfo
+52-13devel/llvm-devel/pkg-plist
+26-27www/sqlpage/Makefile.crates
+0-44net/xrdp/files/pkg-install.in
+193-39462 files not shown
+448-63868 files

HardenedBSD/src 3c52d24sys/dev/iavf if_iavf_iflib.c

iavf: Reschedule pending virtchnl replies after the processing budget

The VC worker ignores the pending count returned by iavf_process_adminq.
If a pass exhausts its message budget, replies can remain in the receive
ring without another interrupt to schedule the worker.  During init,
the iflib admin task cannot provide a backstop because init holds the
context lock while waiting for ENABLE_QUEUES to complete.

Reschedule the VC worker after a successful pass with messages remaining.
Keep the per-pass budget and do not retry AdminQ errors.  Stop
self-rescheduling once detach clears INITIALIZED; the existing polling
and reset-recovery gates continue to exclude asynchronous processing.

Validation: reproduced the timeout on a three queue E835 VF under
Hyper-V.  Temporary tracing showed a successful ENABLE_QUEUES reply
already in the guest receive ring after a three-message pass left two
messages pending.  With the fix and no tracing, a GENERIC kernel with
WITNESS and INVARIANTS passed three batches of 30 down/up and MTU
1500/9000 cycles without enable/disable timeouts.

    [3 lines not shown]
DeltaFile
+12-2sys/dev/iavf/if_iavf_iflib.c
+12-21 files

FreeBSD/src 3c52d24sys/dev/iavf if_iavf_iflib.c

iavf: Reschedule pending virtchnl replies after the processing budget

The VC worker ignores the pending count returned by iavf_process_adminq.
If a pass exhausts its message budget, replies can remain in the receive
ring without another interrupt to schedule the worker.  During init,
the iflib admin task cannot provide a backstop because init holds the
context lock while waiting for ENABLE_QUEUES to complete.

Reschedule the VC worker after a successful pass with messages remaining.
Keep the per-pass budget and do not retry AdminQ errors.  Stop
self-rescheduling once detach clears INITIALIZED; the existing polling
and reset-recovery gates continue to exclude asynchronous processing.

Validation: reproduced the timeout on a three queue E835 VF under
Hyper-V.  Temporary tracing showed a successful ENABLE_QUEUES reply
already in the guest receive ring after a three-message pass left two
messages pending.  With the fix and no tracing, a GENERIC kernel with
WITNESS and INVARIANTS passed three batches of 30 down/up and MTU
1500/9000 cycles without enable/disable timeouts.

    [3 lines not shown]
DeltaFile
+12-2sys/dev/iavf/if_iavf_iflib.c
+12-21 files

LLVM/project 6b7f72cclang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Dialect/IR CIRDialect.cpp

[CIR] Add cir.ptr_mask (#224143)

`cir.ptr_mask` ANDs a pointer with an integer mask and gives back a
pointer, lowering to llvm.intr.ptrmask. Paired with `cir.ptr_stride` it
rounds a pointer up to an alignment the way classic's
emitRoundPointerUpToAlignment does, without the round trip through an
integer that would lose provenance.

llvm.ptrmask needs the mask at exactly the target's pointer index width,
so the lowering extends or truncates it first. GEP takes an index of any
width, so `cir.ptr_stride` never needed this.

Assisted-by: Cursor / claude-opus-5
DeltaFile
+75-0clang/test/CIR/Lowering/ptr-mask.cir
+51-0clang/test/CIR/IR/invalid-ptr-mask.cir
+36-0clang/include/clang/CIR/Dialect/IR/CIROps.td
+35-0clang/test/CIR/IR/ptr-mask.cir
+20-0clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+217-05 files

HardenedBSD/src 73275eclibexec/rtld-elf rtld.c

rtld: more caution when parsing in digest_notes()

(cherry picked from commit fa848d4d0c0371cdbf39265b6528f4c61bc02c7d)
DeltaFile
+10-5libexec/rtld-elf/rtld.c
+10-51 files

FreeBSD/src 73275eclibexec/rtld-elf rtld.c

rtld: more caution when parsing in digest_notes()

(cherry picked from commit fa848d4d0c0371cdbf39265b6528f4c61bc02c7d)
DeltaFile
+10-5libexec/rtld-elf/rtld.c
+10-51 files

FreeBSD/src c9cf582libexec/rtld-elf rtld.c

rtld.c: fix indent

(cherry picked from commit 2ef97312d5d46aeaeb26f6e5815d964412bc499e)
DeltaFile
+1-1libexec/rtld-elf/rtld.c
+1-11 files

HardenedBSD/src c9cf582libexec/rtld-elf rtld.c

rtld.c: fix indent

(cherry picked from commit 2ef97312d5d46aeaeb26f6e5815d964412bc499e)
DeltaFile
+1-1libexec/rtld-elf/rtld.c
+1-11 files

OPNSense/core 28f5377src/opnsense/mvc/app/views/OPNsense/Interface assignment.volt

interfaces: adjust message to sound similar to the old
DeltaFile
+1-1src/opnsense/mvc/app/views/OPNsense/Interface/assignment.volt
+1-11 files

LLVM/project 61c6997llvm/lib/Target/Hexagon HexagonISelLoweringHVX.cpp, llvm/lib/Target/X86 X86ISelLowering.cpp

[X86][Hexagon] Remove the INSERT_VECTOR_ELT soft promotion workarounds (#223628)

SoftPromoteHalfOperand now handles INSERT_VECTOR_ELT, so neither target
needs to intercept the node on the scalar type to keep the type
legalizer from failing with "Do not know how to soft promote this
operator's operand!".

X86 did exactly what the generic code does: bitcast the vector to its
integer counterpart, insert an i16 and bitcast the result back. Hexagon
built the same vXi16 insert, and that one is still custom lowered
through the regular HVX path.

Both target hooks become unreachable once the operation actions are
gone, because the element operand is promoted to i16 before LegalizeDAG
runs, so drop them as well.

No codegen change: X86/bfloat.ll,
X86/vector-shuffle-combining-avx512bf16.ll and the autohvx tests that
insert into half or bfloat vectors (hfinsert.ll,

    [13 lines not shown]
DeltaFile
+159-0llvm/test/CodeGen/Hexagon/autohvx/bf16insert.ll
+2-13llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
+2-11llvm/lib/Target/X86/X86ISelLowering.cpp
+163-243 files

LLVM/project 7ed0d7dclang/docs ReleaseNotes.md, clang/lib/Sema SemaOverload.cpp

[clang][Sema] Fix tautological type check in sameFunctionParameterTypeLists (#224500)

hasSameType had duplicate parameters, which meant we weren't actually
checking if the function signatures are equal, so in the case they
aren't we could incorrectly accept ambiguous overload resolutions.

Fixes https://github.com/llvm/llvm-project/issues/224499
DeltaFile
+16-0clang/test/CXX/over/over.match/over.match.best/p2.cpp
+3-0clang/docs/ReleaseNotes.md
+1-1clang/lib/Sema/SemaOverload.cpp
+20-13 files

LLVM/project b19ba65llvm/lib/Transforms/Scalar TailRecursionElimination.cpp, llvm/test/Transforms/TailCallElim shl-accumulator-opt.ll

[TailRecElim] Handle discarded-call return conflicts with a shift accumulator (#221694)

Fixes a follow-up miscompile from #181331, reported by nikic in
https://github.com/llvm/llvm-project/pull/181331#issuecomment-5509668449,
similar but unrelated to #214503.

`findBaseCaseRetConstant` only scanned live `ret` instructions to check
that a shift accumulator's base case is consistent everywhere. A sibling
call site that discards its own recursive call and returns a fixed
constant is eliminated earlier, so its `ret` is already gone by the time
the scan runs. The scan missed it and `cleanupAndFinalize` would
silently replace that constant with the accumulator value.

With this PR we also check the false-value of already-inserted selects
for consistency, bailing out the accumulator transform on conflict.

---------

Signed-off-by: Federico Bruzzone <federico.bruzzone.i at gmail.com>
DeltaFile
+111-92llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
+59-0llvm/test/Transforms/TailCallElim/shl-accumulator-opt.ll
+170-922 files

OPNSense/core 69f3d12src/opnsense/mvc/app/views/OPNsense/Interface assignment.volt

interfaces: second half of previous
DeltaFile
+5-0src/opnsense/mvc/app/views/OPNsense/Interface/assignment.volt
+5-01 files

OPNSense/core dfb019dsrc/opnsense/mvc/app/controllers/OPNsense/Interfaces/Api AssignmentController.php

interafces: add pending action to make the apply banner persistent

This allows to emulate the old GUI's banner, but in a more modern way.
DeltaFile
+10-0src/opnsense/mvc/app/controllers/OPNsense/Interfaces/Api/AssignmentController.php
+10-01 files

LLVM/project 70ba7b6llvm/lib/Transforms/Vectorize VPlanUtils.h

[VPlan] Implement VPBlockUtils::blocksOnly using make_isa_range (NFC) (#224596)

Use make_isa_range to simplify blocksOnly implementation.
DeltaFile
+1-12llvm/lib/Transforms/Vectorize/VPlanUtils.h
+1-121 files

LLVM/project 032bea5libsycl/unittests/usm alloc.cpp, offload/liboffload/src OffloadImpl.cpp

[offload] add context to olMemAlloc* (#222677)

This is the last part of the context refactor. This patch:
- Adds context param to all memory allocation functions.
- Routes ptr info through the plugins instead of a global map.
- Removes allocation tracking from liboffload.
- olGetMemInfo(OL_MEM_INFO_DEVICE) now returns INVALID_ARGUMENT for host
allocations, which have no per-device affinity.

Assisted-by: Claude Opus 4.7
DeltaFile
+117-151offload/liboffload/src/OffloadImpl.cpp
+138-68offload/plugins-nextgen/common/src/PluginInterface.cpp
+55-50libsycl/unittests/usm/alloc.cpp
+78-25offload/plugins-nextgen/common/include/PluginInterface.h
+99-2offload/plugins-nextgen/level_zero/src/L0Plugin.cpp
+39-35offload/unittests/OffloadAPI/kernel/olLaunchKernel.cpp
+526-33137 files not shown
+1,139-58343 files

LLVM/project 7c873fbflang/include/flang/Parser parse-tree.h, flang/lib/Parser Fortran-parsers.cpp

[flang][cuda] Record implicit managed attribution in module files

An attribute the compiler applied under -gpu=mem:managed is written into the
module file the same way a user-written one is, so a reader cannot tell them
apart. It then treats the attribute as a user requirement: allocating such a
component in a DEVICE object is rejected, and the memory space the user did
ask for on the object no longer wins.

Spell the distinction in the module file as MANAGED(IMPLICIT), modelled on
INTENT(IN): CUDA-data-attr gains an optional parenthesized qualifier, carried
by a new CUDADataAttrSpec parse-tree node in AttrSpec and ComponentAttrSpec.
ATTRIBUTES(...) keeps the bare attribute, so the qualifier cannot be written
there.

The attribute itself is still written out, so a component keeps the same
memory space no matter which options a consumer is compiled with.

Also stop an implicitly applied attribute from making a module a definer of
CUDA symbols. Without this, adding -gpu=mem:managed to a module's build
rejects its OpenACC-only consumers over an attribute the user never wrote.
DeltaFile
+76-0flang/test/Semantics/CUDA/cuda-managed-implicit-modfile.cuf
+29-9flang/lib/Semantics/resolve-names.cpp
+19-3flang/lib/Semantics/mod-file.cpp
+13-2flang/include/flang/Parser/parse-tree.h
+10-2flang/lib/Parser/Fortran-parsers.cpp
+4-2flang/test/Parser/cuf-sanity-tree.CUF
+151-182 files not shown
+159-188 files

LLVM/project 8c013a1llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/X86 dependent-seeds.ll

[SLP]Do not stop the seed scan when a dependent seed is skipped

The dependency check leaves the current window short, and the
not-enough-instructions exit then ends the whole start-position scan for
the current VF, so later independent operations are never tried. Keep
scanning from the next position when the shortfall was caused by a
skipped dependent seed.

Fixes #224286

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/224606
DeltaFile
+11-4llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+5-2llvm/test/Transforms/SLPVectorizer/X86/dependent-seeds.ll
+16-62 files

OPNSense/core 857b290src/opnsense/mvc/app/controllers/OPNsense/Interfaces/Api AssignmentController.php

interfaces: retain empty fields also written by legacy GUI
DeltaFile
+9-0src/opnsense/mvc/app/controllers/OPNsense/Interfaces/Api/AssignmentController.php
+9-01 files

LLVM/project 9390e1bllvm/lib/Analysis ScalarEvolution.cpp, llvm/test/Analysis/ScalarEvolution max-backedge-taken-count-correlated-end.ll

[SCEV] Bound the max BE count by the range of End - Start. (#222752)

In same cases, like A < A + N, End - Start can give a tighter maximum
bound due to folding that gets missed when just subtracting the ranges.

This improves results in a few cases:
https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/1256.

Found while working on unifying howManyLessThans & howManyGreaterThans.
The latter uses a hand-rolled variant of computeMaxBECountForLT for GT,
which computes the delta like that.

Compile-time increase is in the noise
https://llvm-compile-time-tracker.com/compare.php?from=28f36e6d3912e3f9c50fbf57113f84cd336b7862&to=dfbe4dec46620effd87fe913b26b2f656f4b2750&stat=instructions:u

PR: https://github.com/llvm/llvm-project/pull/222752
DeltaFile
+140-0llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-correlated-end.ll
+7-2llvm/lib/Analysis/ScalarEvolution.cpp
+147-22 files