HardenedBSD/src 2c71e23 — . ObsoleteFiles.inc, cddl/usr.bin/zstream Makefile

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+19-18sys/net/iflib.c
+20-17sys/dev/e1000/if_em.c
+26-2sys/fs/devfs/devfs_vnops.c
+13-0ObsoleteFiles.inc
+7-1sys/kern/uipc_shm.c
+6-0cddl/usr.bin/zstream/Makefile
+91-387 files not shown
+106-3913 files

HardenedBSD/src 9320074 — lib/libpam/modules/pam_ssh pam_ssh.c

Merge remote-tracking branch 'rad/hardened/15-stable/main' into hardened/15-stable/pledge
DeltaFile
+1-1lib/libpam/modules/pam_ssh/pam_ssh.c
+1-11 files

HardenedBSD/src 3da4c70 — . ObsoleteFiles.inc, cddl/usr.bin/zstream Makefile

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+19-18sys/net/iflib.c
+20-17sys/dev/e1000/if_em.c
+26-2sys/fs/devfs/devfs_vnops.c
+13-0ObsoleteFiles.inc
+7-1sys/kern/uipc_shm.c
+6-0cddl/usr.bin/zstream/Makefile
+91-387 files not shown
+106-3913 files

HardenedBSD/src b849d20 — lib/libpam/modules/pam_ssh pam_ssh.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+1-1lib/libpam/modules/pam_ssh/pam_ssh.c
+1-11 files

HardenedBSD/ports d8475b0 — graphics/fotocx/files patch-Makefile patch-f.widgets.cc, sysutils/ufs-utils Makefile

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+52-0graphics/fotocx/files/patch-f.file.cc
+51-0graphics/fotocx/files/patch-f.meta.cc
+43-0graphics/fotocx/files/patch-f.widgets.cc
+28-9graphics/fotocx/files/patch-Makefile
+32-0sysutils/ufs-utils/Makefile
+0-21x11-themes/morewaita-icon-theme/files/patch-16x16_places_meson.build
+206-3022 files not shown
+270-8828 files

LLVM/project c5fcf77 — llvm/test/CodeGen/AMDGPU frem.ll atomic_optimizations_local_pointer.ll, llvm/test/CodeGen/AMDGPU/GlobalISel srem.i64.ll sdiv.i64.ll

rebase

Created using spr 1.3.7
DeltaFile
+733-5,435llvm/test/CodeGen/AMDGPU/atomic_optimizations_local_pointer.ll
+1,609-1,040llvm/test/CodeGen/AMDGPU/frem.ll
+986-1,144llvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i64.ll
+914-1,072llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i64.ll
+728-824llvm/test/CodeGen/X86/mul-constant-i32.ll
+585-680llvm/test/CodeGen/X86/mul-constant-i64.ll
+5,555-10,1951,250 files not shown
+52,987-31,6891,256 files

LLVM/project 0e5770c — llvm/include/llvm/Support KnownFPClass.h, llvm/lib/Support KnownFPClass.cpp

[KnownFPClass] Improve known class deductions for exp/exp2/exp10 (#217526)

Loosens the requirements to deduce `fcPosInf`, `fcPosZero`, and
`fcPosSubnormal`.

- Zero can only be produced if `x < -1.0`.
- Subnormals can only be produced if `x < -1.0` and `x` is finite.
- Infinity can only be produced if `x > +1.0`.

```
fcPosInf: fcPosSubnormal | fcPosNormal | fcPosInf --> fcPosNormal | fcPosInf
fcPosZero: fcNegInf | fcNegNormal | fcNegSubnormal --> fcNegNormal | fcNegInf
fcPosSubnormal: fcNegInf | fcNegNormal | fcNegSubnormal --> fcNegNormal
```

AI disclosure:
I used ChatGPT Codex (5.6 sol) to help generate the tests which I
reviewed and tested locally.
DeltaFile
+66-0llvm/test/Transforms/Attributor/nofpclass-exp.ll
+30-0llvm/test/CodeGen/AArch64/GlobalISel/knownfpclass-ops.mir
+9-6llvm/lib/Support/KnownFPClass.cpp
+4-1llvm/include/llvm/Support/KnownFPClass.h
+109-74 files

LLVM/project dedc084 —

[alpha.webkit.NoDeleteChecker] Handle CXXStdInitializerListExpr in trivial analysis (#224723)

TrivialFunctionAnalysisVisitor had no handler for
CXXStdInitializerListExpr, so a braced list bound to a
std::initializer_list fell through to VisitStmt and was conservatively
treated as non-trivial. This made any nodelete function containing e.g.
std::min({a, b, c}) report that it "contains code that could destruct an
object".

The backing array of a std::initializer_list is a temporary whose
lifetime ends in the enclosing function, so its elements really are
destructed there. Accept the node when the array's element type is
trivially destructible and recurse into the initializers, and keep
rejecting it otherwise.
DeltaFile
+0-00 files

LLVM/project fbfe4ee — flang/test/Transforms/OpenMP lower-workdistribute-runtime-assign-array.mlir

test update
DeltaFile
+13-8flang/test/Transforms/OpenMP/lower-workdistribute-runtime-assign-array.mlir
+13-81 files

LLVM/project 695d0e1 — compiler-rt/lib/tsan/rtl tsan_mman.cpp tsan_rtl_thread.cpp

[NFC][TSan] Allocate ScopedReport as a stack variable (#228637)

Now that ScopedReport is constructed before acquiring ThreadRegistryLock
or slot locks across all reporting functions (#228614), it no longer
needs to be constructed inside the lock scope via placement new on
__builtin_alloca storage (introduced in #151495).

Declare ScopedReport as a normal stack variable before the lock scope
and remove the manual destructor calls.

Assisted-by: Gemini
DeltaFile
+17-33compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cpp
+8-13compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp
+4-9compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cpp
+4-9compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp
+4-9compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
+3-8compiler-rt/lib/tsan/rtl/tsan_mman.cpp
+40-816 files

LLVM/project 2111040 — flang/lib/Optimizer/OpenMP LowerWorkdistribute.cpp, flang/test/Transforms/OpenMP lower-workdistribute-runtime-assign-array.mlir lower-workdistribute-runtime-assign-array-overlap.mlir

update
DeltaFile
+85-49flang/lib/Optimizer/OpenMP/LowerWorkdistribute.cpp
+72-0flang/test/Transforms/OpenMP/lower-workdistribute-runtime-assign-array-overlap.mlir
+33-16flang/test/Transforms/OpenMP/lower-workdistribute-runtime-assign-array.mlir
+190-653 files

FreeBSD/ports 0784e7e — devel/sobjectizer Makefile pkg-plist, net/arataga Makefile

devel/sobjectizer: update the port to version 5.8.6.1

Infer the shared library version rather than hardcoding
it in the dependent `net/arataga' port.

Reported by:    not portscout :(
DeltaFile
+3-3devel/sobjectizer/distinfo
+3-2net/arataga/Makefile
+3-1devel/sobjectizer/pkg-plist
+1-1devel/sobjectizer/Makefile
+10-74 files

HardenedBSD/ports 0784e7e — devel/sobjectizer Makefile pkg-plist, net/arataga Makefile

devel/sobjectizer: update the port to version 5.8.6.1

Infer the shared library version rather than hardcoding
it in the dependent `net/arataga' port.

Reported by:    not portscout :(
DeltaFile
+3-3devel/sobjectizer/distinfo
+3-2net/arataga/Makefile
+3-1devel/sobjectizer/pkg-plist
+1-1devel/sobjectizer/Makefile
+10-74 files

LLVM/project 44ba2cf — llvm/test/CodeGen/AMDGPU frem.ll atomic_optimizations_local_pointer.ll, llvm/test/CodeGen/AMDGPU/GlobalISel srem.i64.ll sdiv.i64.ll

rebase

Created using spr 1.3.7
DeltaFile
+733-5,435llvm/test/CodeGen/AMDGPU/atomic_optimizations_local_pointer.ll
+1,609-1,040llvm/test/CodeGen/AMDGPU/frem.ll
+986-1,144llvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i64.ll
+914-1,072llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i64.ll
+728-824llvm/test/CodeGen/X86/mul-constant-i32.ll
+585-680llvm/test/CodeGen/X86/mul-constant-i64.ll
+5,555-10,1951,250 files not shown
+52,987-31,6891,256 files

FreeBSD/ports 7930d8e — sysutils Makefile, sysutils/ufs-utils distinfo pkg-descr

sysutils/ufs-utils: New port

ufs-utils is a userspace tool for Universal Flash Storage (UFS) devices.
It reads and writes descriptors, attributes, and flags, sends UIC
commands, and drives RPMB and advanced RPMB.

On FreeBSD it reaches the device through the ufshci(4) passthrough
ioctl and the CAM pass(4) device. The port is ignored when base does
not install the header for that ioctl.

Reviewed by:    imp(mentor), lwhsu
Sponsored by:   Samsung Electronics
Differential Revision:  https://reviews.freebsd.org/D59721
DeltaFile
+32-0sysutils/ufs-utils/Makefile
+6-0sysutils/ufs-utils/pkg-descr
+3-0sysutils/ufs-utils/distinfo
+1-0sysutils/Makefile
+42-04 files

HardenedBSD/ports 7930d8e — sysutils Makefile, sysutils/ufs-utils distinfo pkg-descr

sysutils/ufs-utils: New port

ufs-utils is a userspace tool for Universal Flash Storage (UFS) devices.
It reads and writes descriptors, attributes, and flags, sends UIC
commands, and drives RPMB and advanced RPMB.

On FreeBSD it reaches the device through the ufshci(4) passthrough
ioctl and the CAM pass(4) device. The port is ignored when base does
not install the header for that ioctl.

Reviewed by:    imp(mentor), lwhsu
Sponsored by:   Samsung Electronics
Differential Revision:  https://reviews.freebsd.org/D59721
DeltaFile
+32-0sysutils/ufs-utils/Makefile
+6-0sysutils/ufs-utils/pkg-descr
+3-0sysutils/ufs-utils/distinfo
+1-0sysutils/Makefile
+42-04 files

LLVM/project 4693dfb — compiler-rt/test/asan/TestCases complete_stack_trace.c

[compiler-rt][asan] Allow optional leading dot in function names in complete_stack_trace.c (#227969)

On AIX/XCOFF, the symbolizer reports function names with a leading dot
('.') because each function's executable code is stored in a separate
`.<funcname>` csect (the text-section entry point symbol). For example,
`read_2` is reported as `.read_2`.

The existing CHECK patterns required an exact match on the bare name,
causing the test to fail on AIX:

```
  expected: {{ *#1 0x.* in read_2 .*complete_stack_trace.c}}
  actual:   #1 0x... in .read_2 complete_stack_trace.c:23
```

Use `\.?` inside the FileCheck regex blocks to make the leading dot
optional, matching both ELF (bare name) and XCOFF (dot-prefixed name)
symbolizer output.

Co-authored-by: Riyaz Ahmad <riyaz.ahmad at ibm.com>
DeltaFile
+12-12compiler-rt/test/asan/TestCases/complete_stack_trace.c
+12-121 files

LLVM/project 8ec02d9 — llvm/lib/CodeGen/SelectionDAG SDNodeInfo.cpp, llvm/lib/Target/NVPTX NVPTXSelectionDAGInfo.cpp

[SelectionDAG] Implement SDTCisPtrTy in SDNodeInfo::verifyNode. (#229270)

If the node is a MemSDNode, use it to get the pointer address space.

Disable checking for one NVPTX opcode that has pointer operands, but is
not a MemSDNode.

Assisted-by: Claude
DeltaFile
+12-1llvm/lib/CodeGen/SelectionDAG/SDNodeInfo.cpp
+3-0llvm/lib/Target/NVPTX/NVPTXSelectionDAGInfo.cpp
+15-12 files

LLVM/project b9a7e6e — clang/lib/CIR/CodeGen CIRGenFunction.cpp, clang/test/CIR/CodeGen main-norecurse.cpp

[CIR] Add norecurse to main and GPU/shader functions (#228508)

Co-authored-by: Steffen Larsen <sholstla at amd.com>
DeltaFile
+27-0clang/test/CIR/CodeGenCUDA/norecurse.cu
+19-0clang/test/CIR/CodeGen/main-norecurse.cpp
+13-0clang/test/CIR/CodeGenHLSL/norecurse.hlsl
+13-0clang/test/CIR/CodeGenOpenCL/norecurse.cl
+9-0clang/lib/CIR/CodeGen/CIRGenFunction.cpp
+3-5clang/test/CIR/CodeGenSYCL/sycl-external.cpp
+84-56 files

LLVM/project 1a1967a — llvm/lib/Target/RISCV RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV select-const.ll

[RISCV] Lower (select c, (1 << ShAmount), 0) to (c << ShAmt). (#229205)

Generic DAG combine can already do this conversion, but sometimes
it can make it to lowering.

Assisted-by: Claude
DeltaFile
+154-118llvm/test/CodeGen/RISCV/select-const.ll
+8-1llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+162-1192 files

LLVM/project beb6d19 — clang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/CodeGen CIRGenBuilder.h CIRGenBuiltin.cpp

[CIR] Add Matrix column major store op (#228917)

Add support for the matrix column-major store operation

Issue https://github.com/llvm/llvm-project/issues/221772
DeltaFile
+42-0clang/lib/CIR/Dialect/IR/CIRMemorySlot.cpp
+42-0clang/include/clang/CIR/Dialect/IR/CIROps.td
+38-0clang/test/CIR/CodeGen/matrix.cpp
+16-1clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
+12-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+9-0clang/lib/CIR/CodeGen/CIRGenBuilder.h
+159-16 files

LLVM/project 78c158c — compiler-rt/lib/tsan/rtl tsan_rtl_thread.cpp tsan_mman.cpp

[TSan] Lock ScopedErrorReportLock before slot and thread_registry locks (#228614)

Since #151495 and #228554, OutputReport runs while
ScopedErrorReportLock is held after slot_mtx and thread_registry have
been unlocked. Because code executed during OutputReport (symbolizer,
callbacks, or signal handlers) can acquire slot_mtx or thread_registry,
ScopedErrorReportLock must precede slot and thread_registry locks in the
lock hierarchy to avoid AB-BA deadlocks between concurrent reports or
fork().

- Move ScopedErrorReportLock::Lock() before slot.mtx, thread_registry,
  and slot_mtx in ForkBefore (and unlock in reverse order in ForkAfter).
- Replace ctx->thread_registry.CheckLocked() in ScopedReport's
  constructor with CheckedMutex::CheckNoLocks(), and add CheckLocked()
  to AddThread(const ThreadContext *) and CheckNoLocks() to
  OutputReport.
- Construct ScopedReport before acquiring ThreadRegistryLock across all
  reporting functions, and close the RestoreStack lock scope before
  constructing ScopedReport in ReportRace.

Assisted-by: Gemini
DeltaFile
+22-17compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp
+3-3compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cpp
+2-2compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
+1-1compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cpp
+1-1compiler-rt/lib/tsan/rtl/tsan_mman.cpp
+1-1compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp
+30-251 files not shown
+31-267 files

HardenedBSD/src 4abfb45 — sys/amd64/linux syscalls.master linux_systrace_args.c, sys/arm64/linux syscalls.master linux_systrace_args.c

Revert "linux: implement fchmodat2 syscall"

This got accidentally committed when I was reverting another commit.

This reverts commit c070ec923e2f49b6ecb5a60b584ba8f4376a6e80.
DeltaFile
+1-25sys/i386/linux/linux_systrace_args.c
+1-25sys/arm64/linux/linux_systrace_args.c
+1-25sys/amd64/linux/linux_systrace_args.c
+0-22sys/compat/linux/linux_file.c
+2-7sys/arm64/linux/syscalls.master
+2-7sys/amd64/linux/syscalls.master
+7-1118 files not shown
+20-13614 files

FreeBSD/src 4abfb45 — sys/amd64/linux linux_systrace_args.c, sys/arm64/linux syscalls.master linux_systrace_args.c

Revert "linux: implement fchmodat2 syscall"

This got accidentally committed when I was reverting another commit.

This reverts commit c070ec923e2f49b6ecb5a60b584ba8f4376a6e80.
DeltaFile
+1-25sys/i386/linux/linux_systrace_args.c
+1-25sys/arm64/linux/linux_systrace_args.c
+1-25sys/amd64/linux/linux_systrace_args.c
+0-22sys/compat/linux/linux_file.c
+2-7sys/i386/linux/syscalls.master
+2-7sys/arm64/linux/syscalls.master
+7-1118 files not shown
+20-13614 files

FreeBSD/src c070ec9 — sys/amd64/linux linux_systrace_args.c, sys/arm64/linux syscalls.master linux_systrace_args.c

linux: implement fchmodat2 syscall

The fchmodat2 syscall on Linux is effectively the same as the fchmodat
on FreeBSD, whereas fchmodat on Linux is fchmodat on FreeBSD, minus
the `flags` argument.

This change provides the necessary glue in order to call kern_fchmodat
properly via the Linuxulator.

NB: glibc transparently passes through the `flags` argument, so this is
[largely] a no-op for end-users, but it affects those who compiled
binaries specifically using the fchmodat2 syscall.

MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D60394
DeltaFile
+25-1sys/i386/linux/linux_systrace_args.c
+25-1sys/arm64/linux/linux_systrace_args.c
+25-1sys/amd64/linux/linux_systrace_args.c
+22-0sys/compat/linux/linux_file.c
+7-2sys/i386/linux/syscalls.master
+7-2sys/arm64/linux/syscalls.master
+111-78 files not shown
+136-2014 files

HardenedBSD/src 32f5a9f — sys/compat/linux linux_dummy.c linux_misc.h

Revert "linux: implement sched_getattr()"

The changes need to be reviewed further; revert until the issues have
been worked out.

Requested by:   markj
This reverts commit bb5f10e51bd53771f1a438f36f554256fcbd7d08.
DeltaFile
+0-89sys/compat/linux/linux_misc.c
+2-17sys/compat/linux/linux_misc.h
+1-0sys/compat/linux/linux_dummy.c
+3-1063 files

HardenedBSD/src c070ec9 — sys/amd64/linux syscalls.master linux_systrace_args.c, sys/arm64/linux syscalls.master linux_systrace_args.c

linux: implement fchmodat2 syscall

The fchmodat2 syscall on Linux is effectively the same as the fchmodat
on FreeBSD, whereas fchmodat on Linux is fchmodat on FreeBSD, minus
the `flags` argument.

This change provides the necessary glue in order to call kern_fchmodat
properly via the Linuxulator.

NB: glibc transparently passes through the `flags` argument, so this is
[largely] a no-op for end-users, but it affects those who compiled
binaries specifically using the fchmodat2 syscall.

MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D60394
DeltaFile
+25-1sys/i386/linux/linux_systrace_args.c
+25-1sys/arm64/linux/linux_systrace_args.c
+25-1sys/amd64/linux/linux_systrace_args.c
+22-0sys/compat/linux/linux_file.c
+7-2sys/arm64/linux/syscalls.master
+7-2sys/amd64/linux/syscalls.master
+111-78 files not shown
+136-2014 files

FreeBSD/src 32f5a9f — sys/compat/linux linux_dummy.c linux_misc.h

Revert "linux: implement sched_getattr()"

The changes need to be reviewed further; revert until the issues have
been worked out.

Requested by:   markj
This reverts commit bb5f10e51bd53771f1a438f36f554256fcbd7d08.
DeltaFile
+0-89sys/compat/linux/linux_misc.c
+2-17sys/compat/linux/linux_misc.h
+1-0sys/compat/linux/linux_dummy.c
+3-1063 files

LLVM/project b121e99 — llvm/test/CodeGen/AMDGPU frem.ll atomic_optimizations_local_pointer.ll, llvm/test/CodeGen/AMDGPU/GlobalISel srem.i64.ll sdiv.i64.ll

rebase

Created using spr 1.3.7
DeltaFile
+733-5,435llvm/test/CodeGen/AMDGPU/atomic_optimizations_local_pointer.ll
+1,609-1,040llvm/test/CodeGen/AMDGPU/frem.ll
+986-1,144llvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i64.ll
+914-1,072llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i64.ll
+728-824llvm/test/CodeGen/X86/mul-constant-i32.ll
+585-680llvm/test/CodeGen/X86/mul-constant-i64.ll
+5,555-10,1951,236 files not shown
+52,555-31,5511,242 files

LLVM/project 3b572ba — llvm/test/CodeGen/AMDGPU frem.ll atomic_optimizations_local_pointer.ll, llvm/test/CodeGen/AMDGPU/GlobalISel srem.i64.ll sdiv.i64.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+733-5,435llvm/test/CodeGen/AMDGPU/atomic_optimizations_local_pointer.ll
+1,609-1,040llvm/test/CodeGen/AMDGPU/frem.ll
+986-1,144llvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i64.ll
+914-1,072llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i64.ll
+728-824llvm/test/CodeGen/X86/mul-constant-i32.ll
+585-680llvm/test/CodeGen/X86/mul-constant-i64.ll
+5,555-10,1951,236 files not shown
+52,555-31,5511,242 files