HardenedBSD/src fb4e45d — release/tools ec2.conf, sbin/ipfw ipfw.8

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+4-6sys/compat/linux/linux_xattr.c
+2-2sbin/ipfw/ipfw.8
+4-0release/tools/ec2.conf
+10-83 files

HardenedBSD/src 508cd6e — release/tools ec2.conf, sbin/ipfw ipfw.8

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+4-6sys/compat/linux/linux_xattr.c
+2-2sbin/ipfw/ipfw.8
+4-0release/tools/ec2.conf
+10-83 files

HardenedBSD/ports f318d3a — security/softether5 Makefile distinfo, shells/carapace distinfo

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+9-7textproc/libyaml/Makefile
+5-5shells/carapace/distinfo
+3-3textproc/libyaml/distinfo
+3-3sysutils/nut-devel/distinfo
+3-3security/softether5/distinfo
+4-1security/softether5/Makefile
+27-223 files not shown
+31-279 files

LLVM/project ec52530 — orc-rt/include/orc-rt/support AllocAction.h, orc-rt/include/orc-rt/support/sps SPSAllocAction.h

[orc-rt] Make AllocAction APIs noexcept (#245814)

Allocation actions report failure via their result (as an out-of-band
error), and should not throw. Mark them noexcept.
DeltaFile
+9-9orc-rt/test/unit/support/sps/SPSAllocActionTest.cpp
+9-7orc-rt/test/unit/support/AllocActionTest.cpp
+9-5orc-rt/include/orc-rt/support/sps/SPSAllocAction.h
+6-6orc-rt/include/orc-rt/support/AllocAction.h
+2-2orc-rt/test/unit/bedrock/sps/SimpleNativeMemoryMapSPSCITest.cpp
+2-2orc-rt/test/unit/bedrock/SimpleNativeMemoryMapTest.cpp
+37-316 files

LLVM/project cbaf477 — clang/test/Preprocessor predefined-arch-macros.c, llvm/lib/Target/X86 X86.td

[X86][APX] Enable CF and emit register-form CFCMOV by default (#242389)

Add CF to the DMR and NVL feature lists and to -mapxf/-mno-apxf, and
require it for __APX_F__.

Register-form CFCMOV (select with zero) is selected whenever CF is
available. Memory-form CFCMOV (conditional faulting load/store) is gated
on the new tuning feature prefer-cf-mem-operand, which no CPU sets. It
controls X86TTIImpl::hasConditionalLoadStoreForType, the
store(cmov(load)) -> CSTORE combine and the CLOAD/CSTORE isel patterns.

Assisted-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+71-0llvm/test/CodeGen/X86/apx/cf-operand-gating.ll
+43-18llvm/test/CodeGen/X86/apx/cfcmov.ll
+34-18llvm/test/Transforms/PhaseOrdering/X86/masked-memory-ops-with-cf.ll
+10-3llvm/lib/Target/X86/X86.td
+4-4llvm/test/Transforms/SimplifyCFG/X86/hoist-loads-stores-with-cf.ll
+8-0clang/test/Preprocessor/predefined-arch-macros.c
+170-4312 files not shown
+193-6118 files

LLVM/project c5e0ca1 — llvm/lib/Target/RISCV RISCVInstrInfoY.td RISCVRegisterInfo.td, llvm/test/MC/RISCV/rvy rvyc-valid-load-store-64.s rvyc-invalid-load-store.s

[nspr] initial commit
DeltaFile
+465-0llvm/test/MC/RISCV/rvy/rvyc-valid-load-store.s
+175-0llvm/test/MC/RISCV/rvy/rvy-valid-load-store.s
+159-0llvm/test/MC/RISCV/rvy/rvyc-invalid-load-store.s
+69-35llvm/lib/Target/RISCV/RISCVRegisterInfo.td
+86-0llvm/lib/Target/RISCV/RISCVInstrInfoY.td
+86-0llvm/test/MC/RISCV/rvy/rvyc-valid-load-store-64.s
+1,040-3513 files not shown
+1,258-5119 files

LLVM/project f6569d3 — llvm/lib/Target/RISCV RISCVInstrInfoP.td

[RISCV][P-ext] Add some guidance for P extension RVSDNodes. NFC (#245368)
DeltaFile
+14-0llvm/lib/Target/RISCV/RISCVInstrInfoP.td
+14-01 files

LLVM/project 5a0e623 — llvm/lib/CodeGen InlineSpiller.cpp, llvm/test/CodeGen/AMDGPU sgpr-spill-partial-to-vmem.mir amdgcn.bitcast.1024bit.ll

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+800-801mlir/lib/Dialect/XeGPU/Transforms/XeGPUPropagateLayout.cpp
+451-373llvm/test/Transforms/LoopVectorize/PowerPC/partial-red.ll
+295-330mlir/lib/Dialect/XeGPU/Transforms/XeGPULayoutImpl.cpp
+368-56llvm/lib/CodeGen/InlineSpiller.cpp
+121-149llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+224-0llvm/test/CodeGen/AMDGPU/sgpr-spill-partial-to-vmem.mir
+2,259-1,709186 files not shown
+4,439-2,269192 files

LLVM/project d5a6ed1 — llvm/lib/CodeGen InlineSpiller.cpp, llvm/test/CodeGen/AMDGPU sgpr-spill-partial-to-vmem.mir amdgcn.bitcast.1024bit.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+800-801mlir/lib/Dialect/XeGPU/Transforms/XeGPUPropagateLayout.cpp
+593-653llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+451-373llvm/test/Transforms/LoopVectorize/PowerPC/partial-red.ll
+295-330mlir/lib/Dialect/XeGPU/Transforms/XeGPULayoutImpl.cpp
+368-56llvm/lib/CodeGen/InlineSpiller.cpp
+224-0llvm/test/CodeGen/AMDGPU/sgpr-spill-partial-to-vmem.mir
+2,731-2,213188 files not shown
+5,079-2,781194 files

LLVM/project 4f3378b — llvm/lib/Target/RISCV RISCVISelLowering.cpp RISCVInstrInfoP.td

[RISCV][P-ext] Custom lower int_riscv_mul_00 to RISCVISD. (#245502)

Assisted-by: Claude
DeltaFile
+61-60llvm/lib/Target/RISCV/RISCVInstrInfoP.td
+34-54llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+95-1142 files

LLVM/project 4af17a6 — llvm/lib/CodeGen/GlobalISel LegalizerHelper.cpp, llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rvv legalize-extract-subvector.mir legalize-insert-subvector.mir

[GISel] Use CastTy.getElementType() in LLT::vector calls in bitcastExtractSubvector/bitcastInsertSubvector. (#245729)

This avoids creating a vector of 's' types on targets that use extended
LLTs.

Assisted-by: Claude
DeltaFile
+16-16llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rvv/legalize-insert-subvector.mir
+10-10llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rvv/legalize-extract-subvector.mir
+6-3llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
+32-293 files

LLVM/project 55e6280 — libc/test/src/complex CMakeLists.txt, libc/test/src/complex/smoke cabs_test.cpp cabsf_test.cpp

[libc] Add smoke tests for carg and cabs (#245546)

We added MPC tests for carg and cabs previously, this PR adds smoke
tests for them which doesn't depend on MPC.

---------

Signed-off-by: jinge90 <ge.jin at intel.com>
DeltaFile
+49-0libc/test/src/complex/smoke/CMakeLists.txt
+18-0libc/test/src/complex/smoke/cabs_test.cpp
+18-0libc/test/src/complex/smoke/cabsf_test.cpp
+18-0libc/test/src/complex/smoke/cargf_test.cpp
+18-0libc/test/src/complex/smoke/carg_test.cpp
+2-0libc/test/src/complex/CMakeLists.txt
+123-06 files

LLVM/project 15bbb9a — llvm/tools/llc NewPMDriver.h NewPMDriver.cpp, llvm/tools/llc/lib NewPMDriver.h NewPMDriver.cpp

Revert "[llc] Add a reusable LLVMLlcDriver library" (#244971)

This reverts #221896 and its follow-up #222840, along with the gn ports
#222741, #223370 and #236774. Later changes to the driver are kept.

LLVMLlcDriver has no in-tree user and no header; its interface is a
hand-declared `extern "C" llcMain`. Yet it is installed, and it is not
usable for embedding:

* A host linking both LLVMLlcDriver and LLVMOptDriver aborts at startup:
  ```
  : CommandLine Error: Option 'o' registered more than once!
  ```
* `llcMain` calls `exit(1)` on errors such as an unknown `-mtriple`.

Unlike `optMain` (#79205), which takes PassBuilder callbacks, `llcMain`
has no extension point. llc is a testing tool, not a stable interface.

LLM-aided
DeltaFile
+0-918llvm/tools/llc/lib/llcdriver.cpp
+909-4llvm/tools/llc/llc.cpp
+0-210llvm/tools/llc/lib/NewPMDriver.cpp
+209-0llvm/tools/llc/NewPMDriver.cpp
+0-50llvm/tools/llc/lib/NewPMDriver.h
+50-0llvm/tools/llc/NewPMDriver.h
+1,168-1,1825 files not shown
+1,178-1,22611 files

FreeBSD/doc 9aa405d — documentation/content/en/articles/pgpkeys _index.adoc, documentation/static/pgpkeys mzar.key

Add new ports committer (mzar)

Complete steps 1-4 of the Committer's Guide (Section 7.1).

Reviewed by:            philip
Approved by:            philip (mentor)
Differential Revision:  https://reviews.freebsd.org/D61982
DeltaFile
+37-0documentation/static/pgpkeys/mzar.key
+4-0website/data/en/news/news.toml
+4-0shared/authors.adoc
+3-0documentation/content/en/articles/pgpkeys/_index.adoc
+0-1shared/contrib-additional.adoc
+1-0shared/contrib-committers.adoc
+49-16 files

FreeBSD/ports a3932da — sysutils/nut-devel Makefile distinfo

sysutils/nut-devel: Update to the latest networkupstools/nut github commit
DeltaFile
+3-3sysutils/nut-devel/distinfo
+2-2sysutils/nut-devel/Makefile
+5-52 files

HardenedBSD/ports a3932da — sysutils/nut-devel Makefile distinfo

sysutils/nut-devel: Update to the latest networkupstools/nut github commit
DeltaFile
+3-3sysutils/nut-devel/distinfo
+2-2sysutils/nut-devel/Makefile
+5-52 files

HardenedBSD/src 4dc5ef5 — sys/compat/linux linux_xattr.c

linux(4): compare xattr namespace names with strcmp()

xattr_to_extattr() compared each namespace over the length of the
caller's prefix and would read past the end of any shorter name

the values are already null-terminated so we can just use strcmp()
here

Reviewed by:    rmoeller
Differential Revision:  https://reviews.freebsd.org/D60954
DeltaFile
+4-6sys/compat/linux/linux_xattr.c
+4-61 files

FreeBSD/src 4dc5ef5 — sys/compat/linux linux_xattr.c

linux(4): compare xattr namespace names with strcmp()

xattr_to_extattr() compared each namespace over the length of the
caller's prefix and would read past the end of any shorter name

the values are already null-terminated so we can just use strcmp()
here

Reviewed by:    rmoeller
Differential Revision:  https://reviews.freebsd.org/D60954
DeltaFile
+4-6sys/compat/linux/linux_xattr.c
+4-61 files

LLVM/project 5f752dc — lld/ELF SyntheticSections.cpp

[ELF] Parallelize `.gnu.hash` and `RELR` finalization (#245550)

Hash and sort `.gnu.hash` entries and collect and sort `RELR` offsets
with `parallelFor`/`parallelSort`. Output is byte-identical at any `--threads`.

``` 
hyperfine -N --warmup 5 --runs 40 \
    'ld.lld-base    --threads=8 @clang.rsp -o clang' \
    'ld.lld-patched --threads=8 @clang.rsp -o clang'

  base       313.6 ms ± 3.2 ms
  patched    293.9 ms ± 2.7 ms    (-6.3%)
```
On i7-7700K 4C/8T.

For small linking jobs, it was within the measurement noise.
DeltaFile
+12-10lld/ELF/SyntheticSections.cpp
+12-101 files

NextBSD/src 4dfb258 — . README.md build.sh, .github/workflows build.yml

Pi image: boot through U-Boot and loader.efi; kernel from /boot/kernel.RPI5 (#693) (#694)

The rpi500 image now boots the way the Pi boot chain was proven on
hardware (#687): config.txt starts u-boot.bin (from nextbsd-kernel-
extensions' continuous-u-boot release, sha256-checked), U-Boot starts
EFI/BOOT/BOOTAA64.EFI (the rootfs loader.efi), and the loader boots
/boot/kernel.RPI5/kernel, which the arm64 NextBSD-kernel package ships
(nextbsd-pkg#53), picked by loader.conf.d/rpi5.conf. So pkg upgrade
updates the kernel a Pi boots.

The UFS root moves into a BSD label in the freebsd slice, as on FreeBSD's
own Pi images and the installer's layout, so loader.efi finds /boot.
config.txt adds dtparam=pciex1 so U-Boot reaches an NVMe drive, and
kernel8.img stays on the FAT as a manual fallback. The image boots from
SD or NVMe; U-Boot can't drive the Pi 5's USB, so not from a USB stick.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+108-22build.sh
+2-2.github/workflows/build.yml
+2-1README.md
+112-253 files

LLVM/project 541095e — clang/include/clang/Basic AttrDocs.td, clang/lib/CIR/CodeGen/Targets AMDGPU.cpp

[AMDGPU] Pad INST_PREF_SIZE by extra cache lines past the kernel
DeltaFile
+74-0llvm/test/CodeGen/AMDGPU/inst-pref-pad-lines.ll
+26-0llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+17-0clang/include/clang/Basic/AttrDocs.td
+15-0clang/test/CIR/CodeGenHIP/amdgpu-attrs.hip
+15-0clang/lib/CIR/CodeGen/Targets/AMDGPU.cpp
+14-0clang/test/SemaOpenCL/amdgpu-inst-pref-pad-lines.cl
+161-09 files not shown
+223-015 files

LLVM/project 81659b4 — lld/ELF InputSection.cpp, lld/test/ELF compressed-input-alloc.s

[ELF] Decompress SHF_ALLOC compressed input sections eagerly (#245867)

GNU Assembler and llvm-mc compress SHF_ALLOC `.debug_*` sections (e.g.
[[gnu::section(".debug_gdb_scripts")]]) with --compress-debug-sections.
lld crashes on such a section because `compressedSize` overlaps
`jumpInstrMod`, and i386 reads implicit addends from the compressed
content.

Build on #245864 and decompress SHF_ALLOC sections in
parseCompressedHeader.
Fix #212125
DeltaFile
+27-0lld/test/ELF/compressed-input-alloc.s
+17-5lld/ELF/InputSection.cpp
+44-52 files

LLVM/project 939349d — llvm/lib/Target/Mips MipsISelLowering.h MipsSEInstrInfo.cpp, llvm/test/CodeGen/Mips micromips-get-set-rounding.ll get-set-rounding.ll

[Mips] Lower llvm.get.rounding and llvm.set.rounding (#245265)

llvm.get.rounding was folded to 1 (to nearest) whatever the current
rounding mode was, and llvm.set.rounding failed to select.

Read FCSR with cfc1 and map FCSR.RM to the FLT_ROUNDS values for
llvm.get.rounding. For llvm.set.rounding, map the mode back to RM and
write it to FCSR with ctc1, keeping the other bits.

Also use the microMIPS cfc1/ctc1 when copying to or from FCSR. On
microMIPS R6 the standard encodings were emitted.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+365-0llvm/test/CodeGen/Mips/get-set-rounding.ll
+43-0llvm/lib/Target/Mips/MipsISelLowering.cpp
+21-0llvm/test/CodeGen/Mips/micromips-get-set-rounding.ll
+2-2llvm/lib/Target/Mips/MipsSEInstrInfo.cpp
+4-0llvm/lib/Target/Mips/MipsSEISelLowering.cpp
+2-0llvm/lib/Target/Mips/MipsISelLowering.h
+437-26 files

LLVM/project e119a95 — llvm/tools/llvm-exegesis/lib BenchmarkRunner.cpp

[llvm-exegesis] Zero initialize CurrentCPU (#245858)

Otherwise we get MSan false positives given we manually make a syscall
to SYS_getcpu because older versions of glibc do not have a getcpu
wrapper.
DeltaFile
+1-1llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
+1-11 files

LLVM/project 4420e4f — lld/ELF InputSection.cpp

[ELF] Reuse decompressAux in InputSection::writeTo. NFC (#245864)

Pass the compressed content to decompressAux so that writeTo can use it.
DeltaFile
+11-18lld/ELF/InputSection.cpp
+11-181 files

LLVM/project 30f954a — clang/lib/CodeGen CGCall.cpp CodeGenModule.cpp, clang/test/CodeGen optsize-definitions.c

clang: Decide optsize and minsize together with optnone

Instead of adding optsize and minsize everywhere and removing them
when the definition is optnone, only add them to definitions that are
not optnone. Also stop adding these to declarations.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+71-0clang/test/CodeGen/optsize-definitions.c
+13-6clang/lib/CodeGen/CGCall.cpp
+16-3clang/lib/CodeGen/CodeGenModule.cpp
+100-93 files

LLVM/project 7b257f3 — llvm/lib/Target/LoongArch LoongArchISelDAGToDAG.cpp, llvm/test/CodeGen/LoongArch and-known-bits.ll

[LoongArch] Select cheaper constants for AND using known bits

The target-independent combines clear the bits of an AND mask that are known
to be zero in the other operand. That can make the mask more expensive to
materialize, e.g. -27 becomes 0xffffffe5 if the upper 32 bits are known to be
zero:

```
  addi.w  $a1, $zero, -27
  lu32i.d $a1, 0
  and     $a0, $a0, $a1
```

Set the leading bits again at instruction selection if the mask has no other
users and that makes it cheaper, or allows to use bstrins:

```
  addi.w  $a1, $zero, -27
  and     $a0, $a0, $a1

    [6 lines not shown]
DeltaFile
+42-0llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
+3-11llvm/test/CodeGen/LoongArch/and-known-bits.ll
+45-112 files

LLVM/project 5a70707 — llvm/test/CodeGen/LoongArch and-known-bits.ll

[LoongArch][NFC] Add tests for AND with constants and known bits

Add tests for AND with constants, where the leading bits are known to be zero
in the other operand.

Assisted-By: LLM
DeltaFile
+237-0llvm/test/CodeGen/LoongArch/and-known-bits.ll
+237-01 files

LLVM/project 190e640 — llvm/lib/CodeGen/SelectionDAG SelectionDAGBuilder.cpp, llvm/lib/Target/AMDGPU SIInstrInfo.h AMDGPUAsmPrinter.cpp

Reapply "[AMDGPU] Support the RF and m inline asm constraints (#195123)" (#245801)

This reapplies #241996 (510874d1f795), which is a reapply of #195123,
minus the change to SIInstrInfo::verifyInstruction.

This patch supports the RF inline asm constraint for memory operands in
the flat address space as well as the generic 'm' constraint.

PR #241996 was reverted be #245558 because EXPENSIVE_CHECKS builds
failed several AMDGPU CodeGen tests (e.g. callbr.ll, pack.v2f16.ll,
llvm.maximum.f32.ll) with "Bad machine code: inlineasm operand has
incorrect register class". Those failures were caused by the change to
SIInstrInfo::verifyInstruction that stopped skipping INLINEASM, making
the existing inline asm register class check reachable. They are not
related to the RF/m constraint support itself.

The original patch is therefore split in two:
- This patch: RF and m constraint support only.
- A follow-up patch: enabling the inline asm register class check in

    [3 lines not shown]
DeltaFile
+295-0llvm/test/CodeGen/AMDGPU/inline-mem-constraints.ll
+27-0llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
+12-0llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+10-0llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+8-1llvm/lib/Target/AMDGPU/SIInstrInfo.h
+7-1llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+359-25 files not shown
+374-311 files

LLVM/project e47fac8 — clang/lib/Sema SemaExpr.cpp, clang/test/Sema attr-sentinel.c

[Clang][Sema] Avoid unsigned overflow in sentinel call checks (#245549)

This fixes https://github.com/llvm/llvm-project/issues/245437. Adding
the sentinel offset to the fixed parameter count can wrap for large
offsets, allowing an out-of-bounds access to the argument list.

Check that the number of remaining arguments exceeds the offset before
looking up the sentinel. This preserves the existing warning when there
are too few variadic arguments.

Assisted-by: OpenAI Codex
DeltaFile
+13-0clang/test/Sema/attr-sentinel.c
+5-4clang/lib/Sema/SemaExpr.cpp
+18-42 files