ipfilter: Clear the IP header pointer if m_pullup() fails
Otherwise fin->fin_ip is left pointing into freed memory, and
ipf_pr_ipv4hdr() may end up accessing it. In particular,
ipf_pr_ipv4hdr() checks fin->fin_ip == NULL to decide whether to
short-circuit, in contrast with ipf_pr_ipv6hdr(), which bails if
fin->fin_m == NULL.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D62172
[X86] getTargetVShiftByConstNode - convert shift opcodes to reduce code duplication. (#247627)
Similar to what getTargetVShiftNode already does, accept any of the
shift opcodes / target opcodes handled by getTargetVShiftUniformOpcode
to avoid so much on-the-fly conversion
[mlir][SCF] Don't fold cast into scf.forall if slice is out of bounds (#246959)
FoldTensorCastOfOutputIntoForallOp folds a tensor.cast of a shared
output into the scf.forall, which makes the type of the output block
argument more static. The parallel_insert_slice ops in the terminator
then insert into a tensor of the cast source type. A slice that is valid
on the dynamically shaped tensor can be statically out-of-bounds on the
cast source, so the op no longer verifies after canonicalization:
```
%cast = tensor.cast %out : tensor<4xi32> to tensor<?xi32>
%r = scf.forall (%i) = (0) to (2) step (1)
shared_outs(%o = %cast) -> (tensor<?xi32>) {
scf.forall.in_parallel {
tensor.parallel_insert_slice %v into %o[4] [1] [1]
: tensor<1xi32> into tensor<?xi32>
}
}
[7 lines not shown]
[mlir][MemRef] Bail out of SubViewOpMemRefCastFolder when slice is out of bounds (#246935)
SubViewOpMemRefCastFolder rebuilds the subview directly on the cast
source, which can have more static dimensions than the subview’s
original source, so a subview that is valid on e.g. memref<?xf32> can
become statically out-of-bounds on memref<4xf32> and -canonicalize ends
up producing IR that fails the bounds check in SubViewOp::verify
(“offset 0 is out-of-bounds: 4 >= 4”).
The pattern now bails out when verifyInBoundsSlice reports the slice is
out of bounds on the cast source, the same check
OpWithOffsetSizesAndStridesConstantArgumentFolder already does before
creating its replacement op. A negative test,
@negative_subview_of_memcast_out_of_bounds in
mlir/test/Dialect/MemRef/canonicalize.mlir, checks that the cast is left
unfolded in that case.
I used an AI assistant while tracking this down and drafting the patch,
and have reviewed and tested the change myself.
[mlir][MemRef] Handle zero-sized dimensions in resolveSourceIndicesCollapseShape (#246630)
`resolveSourceIndicesCollapseShape` uses the source dimension sizes of
each reassociation group as the basis of `affine.delinearize_index`.
When a source dimension size is statically zero (e.g.,
`memref<0x4xf32>`), the created op fails verification because basis
elements must be positive.
Emit constant zero indices for reassociation groups containing a
zero-sized dimension instead of building an invalid
`affine.delinearize_index`, and add a regression test.
Supersedes #246477 (re-submitted with a concise, manually written
description).
[llvm-cov] Support LCOV exclusion markers (#220767)
Coverage exclusion markers let users omit generated, defensive, or
unreachable code from reports without changing instrumentation.
Support `LCOV_EXCL_LINE` and `LCOV_EXCL_START`/`LCOV_EXCL_STOP` comments
in all llvm-cov report formats. Honor markers by default; use
`--respect-coverage-exclusion-markers=false` to ignore them. The
start-marker line is excluded and the stop-marker line remains included.
Read markers from source files at report time and apply them through the
shared coverage model. With markers enabled, missing required sources
and malformed ranges are errors. Disabling markers lets `report` and
`export` work without source files.
AI assisted.
Add the truesearch.status event
The event sends what truesearch.status returns: on subscribe, on each
change in the indexer's status, and every 5 seconds while a pass runs.
Middleware holds one indexer subscription for all subscribers, so the
event takes no argument. While the indexer is down or refuses, it polls
every 5 seconds.
Each dataset's status gains progress and last_pass.
[SPIRV] Enable NSDI features by default for AMD (#244633)
When the target triple is AMD, and no flag is specified,
`-spirv-debug-lexical-block-discriminator-scope` and
`-spirv-debug-declare-untyped-variable` are treated as enabled.
These features are required for AMD and complete DI support. Changes are
NFC for other vendors.
[CIR][OpenMP] Emit master region cleanups before the terminator (#247263)
Since #238260 local in a `master` body breaks CIR verification at -O2
because its cleanups are popped after `omp.terminator`
Use emitOMPRegionBody, which pops them first
PR #236140 fixes the same issue for `critical`
[mlir][SPIR-V] Add SPIRVToLLVM conversion for KHR.Abort (#247584)
Lower it to a noreturn __spirv_AbortKHR call and unreachable, matching
llvm-spirv reverse translation
misc/llama.cpp: import llama.cpp-1.1.0
Required as dependency for natural language search in digikam.
The main goal of llama.cpp is to enable LLM inference with minimal
setup and state-of-the-art performance on a wide variety of hardware
- locally and in the cloud.
* Plain C/C++ implementation without any dependencies
* Apple silicon is a first-class citizen - optimized via ARM NEON,
Accelerate and Metal frameworks
* AVX, AVX2 and AVX512 support for x86 architectures
* 1.5-bit, 2-bit, 3-bit, 4-bit, 5-bit, 6-bit, and 8-bit integer
quantization for faster inference and reduced memory use
* Custom CUDA kernels for running LLMs on NVIDIA GPUs (support for
AMD GPUs via HIP)
* Vulkan and SYCL backend support
* CPU+GPU hybrid inference to partially accelerate models larger
than the total VRAM capacity
gobgp: Update to 4.12.0
Changelog
e78a9d0 GoBGP 4.12.0
4add989 table: strip peer-supplied route targets on VRF ToGlobal
b049b07 test: ignore existing goroutines in leak checks
f572adc server: show every ADD-PATH path in an adj-out listing
a6562af table, server: keep LOCAL_PREF on a confederation session
35605fb golangci, docs: forbid slog.Logger.Debug outside debuglog
8bd4040 use debuglog.Log for debug logs
5589b33 debuglog: document Log and add Enabled
bf3a856 server: drop a redundant validity check in neighborAddress
8739463 perf: avoid eager formatting in debug logs
495f37a server: choose ADD-PATH paths up to send-max on RTC membership change
834142a table, server: index VPN destinations by Route Target for RTC
9116879 server: send only the best path to a non-ADD-PATH peer on RTC
0c9782f server: choose ADD-PATH paths in best path order up to send-max
c39db61 table: add per-destination path lists for ADD-PATH send
b1d84bb server: do not turn paths a peer cannot receive into withdrawals
[66 lines not shown]
[lldb][Windows] Link Python3::SABIModule with the limited API (#247132)
On Windows with `LLDB_ENABLE_PYTHON_LIMITED_API=ON`, MinGW links
`Python3_SABI_LIBRARIES` explicitly while MSVC relies on `pyconfig.h`'s
`#pragma comment(lib, "python3.lib")`. Link the `Python3::SABIModule`
imported target in both cases instead.
The target isn't used on other platforms: it doesn't provide a library
there, and on Apple it adds `-undefined dynamic_lookup` to the link
interface, which would leak into liblldb.
Requires:
- https://github.com/llvm/llvm-project/pull/247130
[AMDGPU] Fix gfx950 MFMA co-exec rows for XDL2x_8Pass, SMFMAC2x, DGEMM
Fix the co-exec rows for the following instructions:
XDL2x_8Pass:
v_mfma_f32_32x32x16_f16
v_mfma_f32_32x32x16_bf16
v_mfma_i32_32x32x32_i8
v_mfma_f32_32x32x64_f8f6f4 and v_mfma_scale_f32_32x32x64_f8f6f4
with no fp8/bf8 operand
SMFMAC2x_4Pass:
v_smfmac_f32_16x16x64_f16
v_smfmac_f32_16x16x64_bf16
v_smfmac_i32_16x16x128_i8
v_smfmac_f32_16x16x128_{bf8,fp8}_{bf8,fp8}
SMFMAC2x_8Pass:
v_smfmac_f32_32x32x32_f16
[8 lines not shown]
[AMDGPU] Precommit gfx950 MFMA co-exec row tests (NFC)
Add a gfx950 coexec scheduler case for v_smfmac_f32_16x16x64_f16, and a
unit test that checks the first co-exec stage of SALU, DS and VMEM, VALU
and the next MFMA for one MFMA per gfx950 variant.
Assisted-by: Claude Opus 5.5
[X86] Add VMTRUNC/VMTRUNCS/VMTRUNCUS upper elements handling
computeKnownBitsForTargetNode - the masked truncations zero the
elements above the truncated ones, like VTRUNC/VTRUNCS/VTRUNCUS.
isGuaranteedNotToBeUndefOrPoisonForTargetNode - these upper elements
are never undef/poison. #245048 adds the same handling for VTRUNC.
Assisted-by: Claude Code (Claude Opus 5.5)
Refill the directory services cache on recovery
Middleware removes the user and group cache at startup after an upgrade,
and directoryservices.setup refills it. When setup failed because no DC
was reachable, nothing refilled it until the 03:30 cron job.
- Start an unforced cache refresh when the health check moves from
FAULTED to HEALTHY on the active node. It only rebuilds a missing or
expired cache.
- Remove the cache in the AD upgrade test and check that recovery
rebuilds it.