FreeBSD/src b9d16b7sys/kern kern_sig.c, tests/sys/capsicum capmode.cc

sigqueue: In capability mode, only allow signalling self

This is copied from the check in kern_kill.

Reviewed by:    markj, oshogbo
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57244
DeltaFile
+9-3tests/sys/capsicum/capmode.cc
+10-0sys/kern/kern_sig.c
+19-32 files

LLVM/project 53d1fcdllvm/docs ProgrammersManual.rst ReleaseNotes.md, llvm/include/llvm/ADT DenseMap.h

Revert "[DenseMap] Invalidate iterators on erase (#199369)"

This reverts commit a225aafbd1a40be0dd9c31e2d0b0b7c42b9d36e3.
DeltaFile
+7-8llvm/docs/ProgrammersManual.rst
+0-11llvm/unittests/ADT/DenseMapTest.cpp
+0-11llvm/unittests/ADT/DenseSetTest.cpp
+0-5llvm/docs/ReleaseNotes.md
+0-2llvm/include/llvm/ADT/DenseMap.h
+7-375 files

FreeBSD/ports 5b87ed2science/simple-dftd3 distinfo Makefile

science/simple-dftd3: update 1.3.1 → 1.4.0
DeltaFile
+3-3science/simple-dftd3/distinfo
+2-3science/simple-dftd3/Makefile
+1-1science/simple-dftd3/pkg-plist
+6-73 files

FreeBSD/ports 36ea07amath/lean4 pkg-plist Makefile, math/lean4/files patch-stage0_src_CMakeLists.txt patch-src_CMakeLists.txt

math/lean4: update 4.29.1 → 4.30.0
DeltaFile
+2,823-2,259math/lean4/pkg-plist
+21-3math/lean4/Makefile
+14-5math/lean4/files/patch-stage0_src_CMakeLists.txt
+14-5math/lean4/files/patch-src_CMakeLists.txt
+18-0math/lean4/files/patch-tests_CMakeLists.txt
+15-0math/lean4/files/patch-tests_util.sh
+2,905-2,2722 files not shown
+2,914-2,2778 files

FreeBSD/ports d72ae04security/py-scrypt distinfo Makefile

security/py-scrypt: update 0.8.27 → 0.9.4
DeltaFile
+3-3security/py-scrypt/distinfo
+1-2security/py-scrypt/Makefile
+4-52 files

FreeBSD/ports ed31128security/py-certipy distinfo Makefile

security/py-certipy: update 0.2.2 → 0.2.3
DeltaFile
+3-3security/py-certipy/distinfo
+2-2security/py-certipy/Makefile
+5-52 files

OpenZFS/src 1294d44tests/unit test_zap.c

test_zap: cover all core ZAP operations

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18586
DeltaFile
+298-1tests/unit/test_zap.c
+298-11 files

OpenZFS/src 6ecaa19include/sys zap.h, module/zfs zap.c

zap: expose _by_dnode() variants of remaining core functions

Exposes the remaining internal implementation functions:
- zap_update_by_dnode()
- zap_length_by_dnode()
- zap_get_stats_by_dnode()

And creates zap_contains_by_dnode(), followng the same structure as the
other functions.

Together, these complete the "core" ZAP _by_dnode() API for the test
suite to use.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18586
DeltaFile
+17-5module/zfs/zap.c
+6-0include/sys/zap.h
+23-52 files

OpenZFS/src 605ae84tests/unit Makefile.am README.md

unit: TOPT make arg to pass test options through to the test binary

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18586
DeltaFile
+2-2tests/unit/Makefile.am
+4-0tests/unit/README.md
+6-22 files

OpenZFS/src 2e5b9bdtests/unit Makefile.am

unit: zero coverage counters before coverage run

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18586
DeltaFile
+3-1tests/unit/Makefile.am
+3-11 files

FreeBSD/ports 0ff37fasysutils/containerd distinfo Makefile

sysutils/containerd: Update to 2.3.1
DeltaFile
+3-3sysutils/containerd/distinfo
+1-2sysutils/containerd/Makefile
+4-52 files

OpenZFS/src efdc755tests/zfs-tests/tests/functional/cli_root/zinject zinject_args.ksh

ZTS/zinject: cover label, object, delay, panic and verify effect (#18579)

* ZTS/zinject: cover label, object, delay, panic and verify effect

Cover the device, label, object, delay and panic injection modes:
every valid value is accepted and unknown values are rejected. A
final pass confirms that registered injections execute by watching
the inject counter advance after triggering the desired injected
error.

Signed-off-by: Christos Longros <chris.longros at gmail.com>

* ZTS/zinject: add author copyright

Signed-off-by: Christos Longros <chris.longros at gmail.com>

---------

Signed-off-by: Christos Longros <chris.longros at gmail.com>
DeltaFile
+138-2tests/zfs-tests/tests/functional/cli_root/zinject/zinject_args.ksh
+138-21 files

FreeNAS/freenas b473b87tests/api2 test_snapshot_task.py

wait for pool.snapshottask.run job return
DeltaFile
+1-1tests/api2/test_snapshot_task.py
+1-11 files

LLVM/project ff24386lld/MachO LTO.cpp, lld/test/MachO lto-object-path.ll

[lld][MachO] Fix SIGBUS crash in saveOrHardlinkBuffer (#198381)

This change removes a hardlink in saveOrHardlinkBuffer if the
hardlink already exists.

On Mac, -object_path_lto files are hardlinked to the cache when
possible. If the hardlink fails, the saveOrHardlinkBuffer method
falls back to saveBuffer instead.

saveBuffer() opens the file that is being written to as a
raw_fd_ostream object, which truncates a file when opening if the
file already exists.

Most of the time this is not an issue, however, if the hardlink
fails because it actually already exists, AND the hardlink exists
specifically between the -object_path_lto file and the cache file,
then when the file is opened and truncated, we also accidentally
truncate the file we are trying to read from.


    [8 lines not shown]
DeltaFile
+8-1lld/test/MachO/lto-object-path.ll
+5-0lld/MachO/LTO.cpp
+4-0lld/test/MachO/Inputs/large-lto-object.ll
+17-13 files

LLVM/project 5fcf11cllvm/lib/CodeGen MachineFunction.cpp, llvm/lib/MC MCDwarf.cpp

[AMDGPU][MC] Replace shifted registers in CFI instructions

Change-Id: I0d99e9fe43ec3b6fecac20531119956dca2e4e5c
DeltaFile
+67-67llvm/test/CodeGen/AMDGPU/sgpr-spill-overlap-wwm-reserve.mir
+33-0llvm/lib/MC/MCDwarf.cpp
+15-15llvm/test/CodeGen/AMDGPU/dwarf-multi-register-use-crash.ll
+10-0llvm/lib/CodeGen/MachineFunction.cpp
+4-4llvm/test/CodeGen/AMDGPU/debug-frame.ll
+2-2llvm/test/CodeGen/AMDGPU/pei-vgpr-block-spill-csr.mir
+131-885 files not shown
+143-9011 files

LLVM/project 7ccac7bllvm/lib/Target/AMDGPU SIFrameLowering.cpp SIMachineFunctionInfo.h, llvm/test/CodeGen/AMDGPU amdgpu-spill-cfi-saved-regs.ll

[AMDGPU] Implement -amdgpu-spill-cfi-saved-regs

These spills need special CFI anyway, so implementing them directly
where CFI is emitted avoids the need to invent a mechanism to track them
from ISel.

Change-Id: If4f34abb3a8e0e46b859a7c74ade21eff58c4047
Co-authored-by: Scott Linder scott.linder at amd.com
Co-authored-by: Venkata Ramanaiah Nalamothu VenkataRamanaiah.Nalamothu at amd.com
DeltaFile
+2,926-0llvm/test/CodeGen/AMDGPU/amdgpu-spill-cfi-saved-regs.ll
+12-0llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
+10-0llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
+9-0llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
+2-0llvm/lib/Target/AMDGPU/SIRegisterInfo.h
+2,959-05 files

LLVM/project 2581aa1llvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll gfx-callable-argument-types.ll

[AMDGPU] Implement CFI for CSR spills

Introduce new SPILL pseudos to allow CFI to be generated for only CSR
spills, and to make ISA-instruction-level accurate information.

Other targets either generate slightly incorrect information or rely on
conventions for how spills are placed within the entry block. The
approach in this change produces larger unwind tables, with the
increased size being spent on additional DW_CFA_advance_location
instructions needed to describe the unwinding accurately.

Change-Id: I9b09646abd2ac4e56eddf5e9aeca1a5bebbd43dd
Co-authored-by: Scott Linder <scott.linder at amd.com>
Co-authored-by: Venkata Ramanaiah Nalamothu <VenkataRamanaiah.Nalamothu at amd.com>
DeltaFile
+3,568-2,598llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+1,912-1,913llvm/test/CodeGen/AMDGPU/gfx-callable-argument-types.ll
+2,700-12llvm/test/CodeGen/AMDGPU/accvgpr-spill-scc-clobber.mir
+631-631llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+505-510llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+394-399llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.896bit.ll
+9,710-6,063108 files not shown
+14,819-9,521114 files

LLVM/project 966a15dllvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll amdgcn.bitcast.960bit.ll

[AMDGPU] Use register pair for PC spill

Change-Id: Ibedeef926f7ff235a06de65a83087c151f66a416
DeltaFile
+4,331-4,331llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+1,742-1,740llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+1,562-1,560llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+1,462-1,460llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.896bit.ll
+1,238-1,236llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.832bit.ll
+1,030-1,028llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.768bit.ll
+11,365-11,35589 files not shown
+18,153-18,04495 files

LLVM/project 0fd81b2llvm/test/CodeGen/AMDGPU accvgpr-spill-scc-clobber.mir pei-build-av-spill.mir

[AMDGPU] Implement CFI for non-kernel functions

This does not implement CSR spills other than those AMDGPU handles
during PEI. The remaining spills are handled in a subsequent patch.

Change-Id: I5e3a9a62cf9189245011a82a129790d813d49373
Co-authored-by: Scott Linder <scott.linder at amd.com>
Co-authored-by: Venkata Ramanaiah Nalamothu <VenkataRamanaiah.Nalamothu at amd.com>
DeltaFile
+5,568-0llvm/test/CodeGen/AMDGPU/accvgpr-spill-scc-clobber.mir
+3,000-96llvm/test/CodeGen/AMDGPU/pei-build-av-spill.mir
+2,208-72llvm/test/CodeGen/AMDGPU/pei-build-spill.mir
+2,196-0llvm/test/CodeGen/AMDGPU/eliminate-frame-index-s-mov-b32.mir
+2,136-0llvm/test/CodeGen/AMDGPU/vgpr-spill-scc-clobber.mir
+1,671-1llvm/test/CodeGen/AMDGPU/debug-frame.ll
+16,779-16993 files not shown
+22,925-1,04999 files

LLVM/project fd6be9fllvm/lib/Target/AMDGPU SIFrameLowering.cpp, llvm/test/CodeGen/AMDGPU debug-frame.ll eliminate-frame-index-v-add-u32.mir

[AMDGPU] Emit entry function Dwarf CFI

Entry functions represent the end of unwinding, as they are the
outer-most frame. This implies they can only have a meaningful
definition for the CFA, which AMDGPU defines using a memory location
description with a literal private address space address. The return
address is set to undefined as a sentinel value to signal the end of
unwinding.

Change-Id: I21580f6a24f4869ba32939c9c6332506032cc654
Co-authored-by: Scott Linder <scott.linder at amd.com>
Co-authored-by: Venkata Ramanaiah Nalamothu <VenkataRamanaiah.Nalamothu at amd.com>
DeltaFile
+1,405-0llvm/test/CodeGen/AMDGPU/debug-frame.ll
+204-12llvm/test/CodeGen/AMDGPU/eliminate-frame-index-v-add-u32.mir
+134-6llvm/test/CodeGen/AMDGPU/eliminate-frame-index-v-add-co-u32.mir
+114-10llvm/test/CodeGen/AMDGPU/eliminate-frame-index-s-add-i32.mir
+42-5llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
+34-0llvm/test/CodeGen/AMDGPU/entry-function-cfi.mir
+1,933-3322 files not shown
+2,044-5028 files

LLVM/project c65ee3e

[MC][Dwarf] Add custom CFI pseudo-ops for use in AMDGPU

While these can be represented with .cfi_escape, using these pseudo-cfi
instructions makes .s/.mir files more readable, and it is necessary to
support updating registers in CFI instructions (something that the
AMDGPU backend requires).

Change-Id: I763d0cabe5990394670281d4afb5a170981e55d0
DeltaFile
+0-00 files

LLVM/project 14c1bbf

[Clang] Default to async unwind tables for amdgcn

To avoid codegen changes when enabling debug-info (see
https://bugs.llvm.org/show_bug.cgi?id=37240) we want to
enable unwind tables by default.

There is some pessimization in post-prologepilog scheduling, and a
general solution to the problem of CFI_INSTRUCTION-as-scheduling-barrier
should be explored.

Change-Id: I83625875966928c7c4411cd7b95174dc58bda25a
DeltaFile
+0-00 files

LLVM/project 188b6e0

[MIR] Error on signed integer in getUnsigned

Previously we effectively took the absolute value of the APSInt, instead
diagnose the unexpected negative value.

Change-Id: I4efe961e7b29fdf1d5f97df12f8139aac12c9219
DeltaFile
+0-00 files

LLVM/project 95cb4d4llvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.wave.shuffle.ll

AMDGPU/GlobalISel: RegBankLegalize rules for wave_shuffle (#196412)

Add uniform and divergent RegBankLegalize rules for wave shuffle. When
wave_shuffle is uniform, it is folded by AMDGPUUniformIntrinsicCombine
before reaching RegBankLegalize, to its value operand when value is
uniform, or to amdgcn_readlane when only idx is uniform. Add a test to
disable UniformIntrinsicCombine so we can verify and test for uniform
rule.
DeltaFile
+310-10llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wave.shuffle.ll
+4-0llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+314-102 files

LLVM/project 6d99fcblibcxx/test/std/strings/basic.string/string.capacity over_max_size.pass.cpp

[libc++] Mark string.capacity/over_max_size.pass.cpp as UNSUPPORTED on old dylibs (#199682)

This test is currently failing in the CI for unknown reasons, likely
related to the setup and not a recent patch. Disable it for now to get
the CI green again.
DeltaFile
+1-1libcxx/test/std/strings/basic.string/string.capacity/over_max_size.pass.cpp
+1-11 files

LLVM/project 631d16eclang/include/clang/ScalableStaticAnalysisFramework/Analyses/PointerFlow PointerFlowAnalysis.h PointerFlow.h, clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage UnsafeBufferUsageAnalysis.cpp

[SSAF][WPA] Bounds propagation graph is a supergraph of the pointer-flow graph (#198889)

Background: The whole-program UnsafeBufferReachableAnalysis propagates
bounds between pointers. It uses the pointer-flow graph extracted and
linked from translation units.

This commit patches the gap between the semantics of bounds propagation
and pointer-flow: the bounds propagation graph is a super graph of the
pointer-flow graph in that a pointer-flow graph edge `(src, i) -> (dst,
j)` is the projection of a finite set of bounds propagation graph edges
`{(src, i+d) -> (dst, j+d) | 0 <= d < UB}` for a small constant upper
bound UB. See the following example for the idea:

```
void f(int ***p, int **q) {
   *p = q;
   (**p)[5] = 0;
}
```

    [6 lines not shown]
DeltaFile
+377-174clang/unittests/ScalableStaticAnalysisFramework/WholeProgramAnalysis/UnsafeBufferReachableAnalysisTest.cpp
+66-15clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsageAnalysis.cpp
+9-13clang/include/clang/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowAnalysis.h
+5-4clang/include/clang/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlow.h
+457-2064 files

LLVM/project 461f816clang/test/CodeGenHLSL/builtins mad.hlsl, clang/test/CodeGenHLSL/convergence for.hlsl while.hlsl

Reland "[HLSL][DirectX] Emit convergence control tokens when targeting DirectX" (#194452)

The initial landing surfaced 3 somewhat orthogonal issues related to
loop unrolling. These are addressed:
[here](https://github.com/llvm/llvm-project/pull/193592),
[here](https://github.com/llvm/llvm-project/pull/193593) and
[here](https://github.com/llvm/llvm-project/pull/193590).

These caused these
[tests](https://github.com/llvm/llvm-project/actions/runs/24577221310/job/71865579618#step:8:87913)
to fail in the offload test suite.

We can verify that these are now passing as expected (fixing any of the
3 issues would resolve this and allow us to reland)

Some additional tests were added since the revert that are now accounted
for and updated in the reland fixes commit.

This relands https://github.com/llvm/llvm-project/pull/188792
DeltaFile
+72-0llvm/test/Transforms/LoopRotate/convergent-controlled.ll
+70-0llvm/test/Transforms/IndVarSimplify/convergent-controlled-loop.ll
+70-0llvm/test/Transforms/SimpleLoopUnswitch/convergent-controlled.ll
+28-26clang/test/CodeGenHLSL/convergence/for.hlsl
+24-24clang/test/CodeGenHLSL/builtins/mad.hlsl
+21-19clang/test/CodeGenHLSL/convergence/while.hlsl
+285-6970 files not shown
+762-19276 files

FreeBSD/ports e12eb6esysutils/nut-devel pkg-plist distinfo

sysutils/nut-devel: Update to the latest networkupstools/nut github commit
DeltaFile
+7-2sysutils/nut-devel/pkg-plist
+3-3sysutils/nut-devel/distinfo
+2-2sysutils/nut-devel/Makefile
+12-73 files

LLVM/project 769ffe9lldb/tools/lldb-dap LLDBUtils.cpp JSONUtils.cpp

[lldb-dap][NFC] Use GetStringValue helper (#199672)

I noticed some inconsistency in working with
`SBStructuredData.GetStringValue` (e.g. use `length + 1` or `length`),
so it would be better to remove that code duplication and use common
helper (`GetStringValue`) to do this routine.
DeltaFile
+12-27lldb/tools/lldb-dap/LLDBUtils.cpp
+4-7lldb/tools/lldb-dap/JSONUtils.cpp
+1-8lldb/tools/lldb-dap/DAP.cpp
+17-423 files

LLVM/project 85717daclang/include/clang/Options Options.td, clang/lib/CodeGen CGDebugInfo.cpp

[clang] Add -fno-debug-record-sysroot (#192541)

This enables excluding the absolute path to the sysroot from debug info
for reproducible builds. These fields are used by lldb, which also has
fallbacks since it's possible these paths don't exist on the machine
doing the debugging when built remotely anyways.

This was also possible using
`-fdebug-prefix-map=/path/to/Xcode.app=/some/path`
but depending on the environment you might not be able to easily pass
that with the user specific developer directory path.

Assisted by: claude
DeltaFile
+11-4clang/lib/CodeGen/CGDebugInfo.cpp
+13-0clang/test/Modules/debug-info-moduleimport.m
+12-0lldb/test/API/lang/objc/modules-auto-import/TestModulesAutoImport.py
+9-0clang/test/DebugInfo/Generic/sysroot-sdk.c
+7-0clang/include/clang/Options/Options.td
+4-0clang/lib/Driver/ToolChains/Clang.cpp
+56-42 files not shown
+60-58 files