HardenedBSD/src a09f2cc — crypto/openssl/crypto/objects obj_dat.h, crypto/openssl/test evp_extra_test.c quicapitest.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+2,523-2,523crypto/openssl/crypto/objects/obj_dat.h
+846-1crypto/openssl/test/radix/quic_tests.c
+545-172sys/dev/mpi3mr/mpi3mr.c
+0-713tools/tools/locale/etc/charmaps.xml
+649-3crypto/openssl/test/quicapitest.c
+583-3crypto/openssl/test/evp_extra_test.c
+5,146-3,4151,096 files not shown
+12,113-5,6351,102 files

HardenedBSD/src ceb349a — crypto/openssl/crypto/objects obj_dat.h, crypto/openssl/test evp_extra_test.c quicapitest.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+2,523-2,523crypto/openssl/crypto/objects/obj_dat.h
+846-1crypto/openssl/test/radix/quic_tests.c
+545-172sys/dev/mpi3mr/mpi3mr.c
+0-713tools/tools/locale/etc/charmaps.xml
+649-3crypto/openssl/test/quicapitest.c
+583-3crypto/openssl/test/evp_extra_test.c
+5,146-3,4151,096 files not shown
+12,113-5,6351,102 files

HardenedBSD/src c52a4f8 — sys/ufs/ffs ffs_vnops.c ffs_softdep.c, sys/ufs/ufs ufs_vnops.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+584-0tools/test/stress2/misc/mkdir_blkreuse.sh
+386-0tests/sys/fs/ufs/sync_test.c
+171-56sys/ufs/ffs/ffs_softdep.c
+191-0tools/test/stress2/misc/nlink6.sh
+83-38sys/ufs/ffs/ffs_vnops.c
+19-23sys/ufs/ufs/ufs_vnops.c
+1,434-1177 files not shown
+1,450-12213 files

HardenedBSD/ports 708df72 — devel/electron44/files patch-electron_spec_api-browser-window.spec.ts patch-third__party_electron__node_src_compile__cache.cc, games/colorcode/files patch-qt6

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+489-503security/rage-encryption/distinfo
+243-250security/rage-encryption/Makefile.crates
+90-0games/colorcode/files/patch-qt6
+68-0security/vuxml/vuln/2026.xml
+0-45devel/electron44/files/patch-third__party_electron__node_src_compile__cache.cc
+20-20devel/electron44/files/patch-electron_spec_api-browser-window.spec.ts
+910-81859 files not shown
+1,225-96065 files

LLVM/project 2794d8a — llvm/test/CodeGen/AMDGPU trunc-select-narrowing.ll, llvm/test/CodeGen/SystemZ trunc-select-narrowing.ll

[DAG] Add trunc(select) narrowing tests (NFC)

DAGCombiner::visitTRUNCATE narrows trunc(select c, a, b) to
select c, (trunc a), (trunc b) when truncating is free. These tests pin
its current output for #223763, which stops it for i8 on X86 with CMOV.

All test IR is what opt -O2 produces for x86-64, s390x and amdgcn with
their real datalayouts, so it is IR the backend can see. InstCombine
already narrows a trunc of a select with a constant arm, so that case
only comes from truncates the DAG creates, here a shift amount.

X86 (x86-64, i686 with and without CMOV):
- trunc_select_i8: computed arms of an i32 select truncated to i8. With
  CMOV, LowerSELECT widens the i8 select with a MOVZX of each arm
  computed in i8.
- trunc_select_i32: an i64 select truncated to i32, which has a CMOV of
  its own width.
- trunc_select_i7: an illegal type, legalized to i8.
- trunc_select_shift_amount: a select of two constant shift amounts,

    [14 lines not shown]
DeltaFile
+268-0llvm/test/CodeGen/X86/trunc-select-narrowing.ll
+56-0llvm/test/CodeGen/AMDGPU/trunc-select-narrowing.ll
+22-0llvm/test/CodeGen/SystemZ/trunc-select-narrowing.ll
+346-03 files

LLVM/project 62801a5 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp

Address review comments
DeltaFile
+3-4llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+3-41 files

LLVM/project 8e64412 — llvm/lib/Target/AMDGPU SIISelLowering.cpp, llvm/test/CodeGen/AMDGPU combine_andor_with_cmps_nnan.ll fminimum3.ll

[AMDGPU] Preserve flags in min3/max3 combines (#248023)

The combines:

  min(min(a, b), c) -> min3(a, b, c)
  min(a, min(b, c)) -> min3(a, b, c)
  min(min(a, b), min(c, d)) -> min(min3(a, b, c), d)

dropped the flags on the new nodes. Keep the flags that are common to all of
the nodes being replaced.

Without nnan the new 2-operand node in the last case may be lowered with an
extra canonicalize of its operand, and users of a min3/max3 may need a NaN
check that would otherwise be known to be redundant.

Assisted-by: Claude Fable 5.2 <noreply at anthropic.com>
DeltaFile
+138-0llvm/test/CodeGen/AMDGPU/fmaximum3.ll
+86-0llvm/test/CodeGen/AMDGPU/fminimum3.ll
+11-6llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+6-7llvm/test/CodeGen/AMDGPU/combine_andor_with_cmps_nnan.ll
+241-134 files

HardenedBSD/ports a8b110c — security/rage-encryption Makefile Makefile.crates

security/rage-encryption: Update to 0.13.0
DeltaFile
+489-503security/rage-encryption/distinfo
+243-250security/rage-encryption/Makefile.crates
+2-3security/rage-encryption/Makefile
+734-7563 files

HardenedBSD/ports 3d670c4 — x11/xterm Makefile distinfo

x11/xterm: Update to 413
DeltaFile
+3-3x11/xterm/distinfo
+1-2x11/xterm/Makefile
+4-52 files

FreeBSD/ports 3d670c4 — x11/xterm Makefile distinfo

x11/xterm: Update to 413
DeltaFile
+3-3x11/xterm/distinfo
+1-2x11/xterm/Makefile
+4-52 files

FreeBSD/ports a8b110c — security/rage-encryption Makefile Makefile.crates

security/rage-encryption: Update to 0.13.0
DeltaFile
+489-503security/rage-encryption/distinfo
+243-250security/rage-encryption/Makefile.crates
+2-3security/rage-encryption/Makefile
+734-7563 files

LLVM/project 698dbee — llvm/test/Transforms/InstCombine ctpop.ll

Precommit tests
DeltaFile
+41-0llvm/test/Transforms/InstCombine/ctpop.ll
+41-01 files

LLVM/project 07e2371 — llvm/lib/Transforms/InstCombine InstCombineAddSub.cpp, llvm/test/Transforms/InstCombine ctpop.ll

[InstCombine] Fold trunc(ctpop(A)) + trunc(ctpop(B)) -> trunc(ctpop(A) + ctpop(B))

This allows the combine added in #231321 to kick in and fold the motivating ctpop case in automotive-bitcount:

```c
static char bits[256] = {0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 4, 5, 5, 6, 5, 6, 6, 7, 5, 6, 6, 7, 6, 7, 7, 8};

int CDECL ntbl_bitcount(long int x)
{
      return
            bits[ (int) (x & 0x0000000FUL)       ] +
            bits[ (int)((x & 0x000000F0UL) >> 4) ] +
            bits[ (int)((x & 0x00000F00UL) >> 8) ] +
            bits[ (int)((x & 0x0000F000UL) >> 12)] +
            bits[ (int)((x & 0x000F0000UL) >> 16)] +
            bits[ (int)((x & 0x00F00000UL) >> 20)] +
            bits[ (int)((x & 0x0F000000UL) >> 24)] +
            bits[ (int)((x & 0xF0000000UL) >> 28)];
}
```
DeltaFile
+5-12llvm/test/Transforms/InstCombine/ctpop.ll
+6-0llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+11-122 files

LLVM/project f6c6351 — llvm/lib/Transforms/InstCombine InstCombineAddSub.cpp, llvm/test/Transforms/InstCombine ctpop.ll

[InstCombine] Fold ctpop(X >> C) + ctpop(X & M) -> ctpop(X & (M | (-1 << C)))

Following up from #231225, automotive-bitcount in llvm-test-suite and GCC use a "per-nibble" ctpop table lookup, where they split the operation up into smaller ctpop table lookups over chunks of the input:

```c
unsigned table_u32(unsigned x) {
  static const unsigned char ctpop[16] = {0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4};
  return ctpop[x & 15] + ctpop[(x >> 4) & 15];
}
```

PR #231225 now converts the individual table lookups to ctpop intrinsics, so we're left with `ctpop(X & 0xf) + ctpop((X >> 4) & 0xf) + ctpop((X >> 8) & 0xf) + ...`. Now that `ctpop((X >> C) & M)` is canonicalized to `ctpop(X & (M << C))`, the existing `ctpop(A) + ctpop(B) -> ctpop(A | B)` fold for disjoint A and B combines most of these.

The one piece it can't handle is the top chunk of a full-width chain, which is a plain `ctpop(X >> C)` with no mask. This folds it with the lower bits directly.

This needs to come before the disjoint fold, which would otherwise combine e.g. `ctpop(X >> 12) + ctpop(X & 0xf00)` into `ctpop((X >> 12) | (X & 0xf00))`, which can't be folded any further.
DeltaFile
+6-22llvm/test/Transforms/InstCombine/ctpop.ll
+11-0llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+17-222 files

LLVM/project 3c4e888 — llvm/test/Transforms/InstCombine ctpop.ll

Precommit tests
DeltaFile
+145-0llvm/test/Transforms/InstCombine/ctpop.ll
+145-01 files

LLVM/project 5797668 — llvm/lib/Transforms/InstCombine InstCombineCalls.cpp, llvm/test/Transforms/InstCombine ctpop.ll

[InstCombine] Fold ctpop((X >> C) & M) -> ctpop(X & (M << C)) (#247998)

The position of the bits doesn't matter to ctpop so we can look through
the shift. As suggested in
https://github.com/llvm/llvm-project/pull/231321#discussion_r4358616796,
this allows the existing ctpop(A) + ctpop(B) => ctpop(A | B) combine to
kick in since it now knows there are no bits in common.

https://alive2.llvm.org/ce/z/jbh7T2

Tests assisted by Opus 5.5
DeltaFile
+149-0llvm/test/Transforms/InstCombine/ctpop.ll
+9-0llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+158-02 files

OpenBSD/ports poE9I8b — sysutils/borgmatic Makefile distinfo, sysutils/borgmatic/pkg PLIST

   update to borgmatic-2.2.1
VersionDeltaFile
1.51+17-3sysutils/borgmatic/pkg/PLIST
1.94+2-2sysutils/borgmatic/distinfo
1.115+1-1sysutils/borgmatic/Makefile
+20-63 files

LLVM/project bac5588 — flang/lib/Lower/OpenMP OpenMP.cpp, flang/test/Lower/OpenMP tile03.f90

Multi-level tiling
DeltaFile
+157-78flang/lib/Lower/OpenMP/OpenMP.cpp
+93-0openmp/runtime/test/transform/tile/do_2d_3x-tile.f90
+66-0flang/test/Lower/OpenMP/tile03.f90
+61-0openmp/runtime/test/transform/tile/do_2d_2x-tile-outerdim.f90
+58-0openmp/runtime/test/transform/tile/do_2d_2x-tile.f90
+17-0flang/test/Lower/OpenMP/Todo/tile-tile-parallel-do.f90
+452-782 files not shown
+464-798 files

LLVM/project ed8fd85 — llvm/lib/Target/Hexagon HexagonDepIICHVX.td HexagonDepIICScalar.td, llvm/test/CodeGen/AArch64/Atomics aarch64-atomicrmw-lscp.ll

Merge branch 'main' into enable_stdlibcxx_pstl_benchmarks
DeltaFile
+19,205-18,966llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+15,666-15,524llvm/lib/Target/Hexagon/HexagonDepIICScalar.td
+7,746-8,018llvm/lib/Target/Hexagon/HexagonDepIICHVX.td
+4,870-4,906llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+9,174-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomicrmw-lscp.ll
+4,456-4,506llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+61,117-51,92015,638 files not shown
+877,709-538,18415,644 files

LLVM/project 78963ff — mlir/lib/Conversion/OpenACCToLLVM ACCAtomicPatterns.cpp, mlir/test/Conversion/OpenACCToLLVM atomic.mlir

[mlir][acc] Read 128-bit values in `acc.atomic.read` with `cmpxchg`

`acc.atomic.read` reads `x` with an `atomicrmw or` of zero on an integer
of the size of `x`. For a `complex<f64>`, that is an `i128`, which
the LLVM dialect verifier does not accept for integer operations of
`atomicrmw` ([LLVMMemoryOps.cpp#L509-L511][verifier]):

```mlir
acc.atomic.read %v = %x : !fir.ref<complex<f64>>, !fir.ref<complex<f64>>, complex<f64>
```

failed with:

```
'llvm.atomicrmw' op expected LLVM IR integer type
```

Read values wider than 64 bits with a `cmpxchg` of zero with zero
instead, and take the loaded value. It only stores zero where the value

    [11 lines not shown]
DeltaFile
+41-0mlir/test/Conversion/OpenACCToLLVM/atomic.mlir
+15-9mlir/lib/Conversion/OpenACCToLLVM/ACCAtomicPatterns.cpp
+56-92 files

LLVM/project 290edf8 — llvm/include/llvm/DebugInfo/CodeView CodeViewRecordIO.h, llvm/lib/DebugInfo/CodeView TypeIndexDiscovery.cpp RecordSerialization.cpp

[CodeView] Write 128bit ints as LF_(U)OCTWORD (#212241)

This PR changes how 128-bit integers are read and written in CodeView.
Before, we only supported 64-bit ints. Anything larger would be
truncated. CodeView does have a way of encoding 128-bit values:
`LF_(U)OCTWORD`. We can use this here.

The main issue for us is that the Microsoft tools don't support this
well. For the DIA SDK,
[`IDiaSymbol::get_value`](https://learn.microsoft.com/en-us/visualstudio/debugger/debug-interface-access/idiasymbol-get-value)
succeeds, but the returned `VARIANT` is of type `VT_ERROR`. The Visual
Studio debugger also fails to print 128-bit values.
This isn't due to an incorrect encoding on our side. `pdbtool` from
https://github.com/microsoft/pdb-rs can read the values just fine.

I still think we should write `LF_(U)OCTWORD` here. MSVC doesn't support
`__int128`, so Clang is alone here. If the user wants a 128 bit value,
they should get it. Rust is also a user of 128-bit integers - they're
available as `u128`. However, they generate a struct with 64-bit high
and low words, so we're not changing anything for them.
DeltaFile
+98-142llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
+17-12llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h
+23-0llvm/lib/DebugInfo/CodeView/RecordSerialization.cpp
+13-9llvm/test/DebugInfo/COFF/integer-128.ll
+19-2llvm/lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp
+15-0llvm/lib/Support/BinaryStreamWriter.cpp
+185-1654 files not shown
+203-16810 files

OPNSense/core 8209588 — src/opnsense/mvc/app/models/OPNsense/IDS IDS.xml

intrusion detection: bump model version for 92c43543523554
DeltaFile
+1-1src/opnsense/mvc/app/models/OPNsense/IDS/IDS.xml
+1-11 files

LLVM/project 90664f5 — clang/include/clang/AST DeclGroup.h

[AST] Avoid typedef alias for PointerUnion member in DeclGroupRef (#248015)

In #238331, `DeclGroupRef` declared `using UnionTy =
llvm::PointerUnion<Decl *, DeclGroup *>;` before `UnionTy D;`.

GCC 12 and earlier do not propagate `TYPE_TYPELESS_STORAGE` from
`PointerUnion`'s `PunnedPointer` byte storage to pre-existing typedef
variants created before template instantiation (fixed in GCC 13 by
commit b332131359). As a result, `DeclGroupRef` did not inherit typeless
storage and GCC's DSE dropped stores to `DeclGroupRef` before
`getAddrOfPtr1()` reads, causing OpenMP parser crashes on GCC 11/12
buildbots.

Declare `D` directly with `llvm::PointerUnion<Decl *, DeclGroup *>`
instead of through `UnionTy`.

Follow-up to #238331
DeltaFile
+6-3clang/include/clang/AST/DeclGroup.h
+6-31 files

LLVM/project 6934edc — libcxx/test/configs stdlib-libstdc++.cfg.in, libcxx/utils/libcxx/test dsl.py params.py

Add the "libcpp-has-no-xyz" features only when we're testing libc++
DeltaFile
+10-5libcxx/utils/libcxx/test/params.py
+8-4libcxx/utils/libcxx/test/dsl.py
+0-4libcxx/test/configs/stdlib-libstdc++.cfg.in
+18-133 files

LLVM/project c6de0ba — llvm/test/MC/AMDGPU exp-err.s

Add test coverage for multiple 'row_en' modifiers

Assisted-By: Claude
DeltaFile
+13-0llvm/test/MC/AMDGPU/exp-err.s
+13-01 files

LLVM/project da3225d — llvm/lib/Target/AMDGPU SIInstrInfo.td SIInstrInfo.cpp, llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp

[AMDGPU] Support 'row_en' as a normal named-bit modifier

Like the previous patch does for done, this reworks row_en from an
asm string token into a normal modifier.

The exp pseudos stay as they are, because codegen needs the
implicit use of M0 for row_en exports, but they now all share the
same real instructions.

Assisted-By: Claude
DeltaFile
+2-8llvm/lib/Target/AMDGPU/EXPInstructions.td
+1-8llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+3-4llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+7-0llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
+1-0llvm/lib/Target/AMDGPU/SIInstrInfo.td
+14-205 files

OpenBSD/ports qseQl5z — security/py-cryptodome-test-vectors Makefile distinfo, security/py-cryptodome-test-vectors/pkg PLIST

   update to py3-cryptodome-test-vectors-1.0.35
VersionDeltaFile
1.20+5-0security/py-cryptodome-test-vectors/pkg/PLIST
1.16+2-2security/py-cryptodome-test-vectors/distinfo
1.21+1-1security/py-cryptodome-test-vectors/Makefile
+8-33 files

OpenBSD/ports tweU7C9 — www/xapian-omega Makefile distinfo, www/xapian-omega/patches patch-configfile_cc

   update to xapian-omega-2.2.0
VersionDeltaFile
1.29+2-2www/xapian-omega/distinfo
1.3+1-1www/xapian-omega/patches/patch-configfile_cc
1.49+1-1www/xapian-omega/Makefile
+4-43 files

OpenBSD/ports VYFzZse — databases/xapian-bindings Makefile distinfo, databases/xapian-bindings/patches patch-ruby_Makefile_in

   update to xapian-bindings-2.2.0
VersionDeltaFile
1.22+2-2databases/xapian-bindings/distinfo
1.2+1-1databases/xapian-bindings/patches/patch-ruby_Makefile_in
1.61+1-1databases/xapian-bindings/Makefile
+4-43 files

OpenBSD/ports gOsAks8 — databases/xapian-core Makefile distinfo, databases/xapian-core/pkg PLIST

   update to xapian-core-2.2.0
VersionDeltaFile
1.31+2-2databases/xapian-core/distinfo
1.18+2-1databases/xapian-core/pkg/PLIST
1.58+1-1databases/xapian-core/Makefile
+5-43 files