HardenedBSD/src 859f513bin/sh sh.1, share/man/man7 mitigations.7

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+17-4share/man/man7/mitigations.7
+21-0sys/arm64/include/elf.h
+18-0sys/dev/pci/pci_pci.c
+14-3bin/sh/sh.1
+13-1sys/kern/subr_intr.c
+7-6usr.bin/diff/diffreg_new.c
+90-1478 files not shown
+250-3584 files

HardenedBSD/src df58bc8lib/libfetch common.c, lib/libnv/tests nvlist_send_recv_test.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+68-1sys/compat/linux/linux_ioctl.c
+3-8lib/libfetch/common.c
+10-0sys/compat/linux/linux_ioctl.h
+1-1sys/contrib/openzfs/include/os/freebsd/spl/sys/time.h
+0-2lib/libnv/tests/nvlist_send_recv_test.c
+82-125 files

LLVM/project 9b3470dllvm/lib/CodeGen/SelectionDAG TargetLowering.cpp, llvm/test/CodeGen/PowerPC clmul-vector.ll

[DAG] expandCLMUL - unroll vector clmul if vector multiplies are not supported (#182041)

Fixes powerpc cases reported on #182039

I'm hoping #177566 can be adapted to improve upon this.
DeltaFile
+8,874-0llvm/test/CodeGen/PowerPC/clmul-vector.ll
+4-0llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+8,878-02 files

LLVM/project e612350lldb/packages/Python/lldbsuite/test/tools/lldb-dap lldbdap_testcase.py dap_server.py

[lldb-dap][NFC] Modernize events handling in tests (#181542)

Migrated `initialized` and `memory` events to new style handling.
DeltaFile
+9-18lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py
+12-7lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
+21-252 files

OPNSense/core 3316148src/opnsense/mvc/app/controllers/OPNsense/Unbound/Api OverviewController.php

unbound: simplify getPoliciesAction() a bit for  https://github.com/opnsense/core/issues/9814
DeltaFile
+1-7src/opnsense/mvc/app/controllers/OPNsense/Unbound/Api/OverviewController.php
+1-71 files

HardenedBSD/ports d9b0527cad/qelectrotech pkg-plist, net-mgmt/geom-exporter distinfo

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+1,073-702cad/qelectrotech/pkg-plist
+60-66x11-wm/fvwm3/pkg-plist
+51-59sysutils/gstat-rs/distinfo
+36-41x11-wm/fvwm3/Makefile
+24-28sysutils/gstat-rs/Makefile.crates
+17-31net-mgmt/geom-exporter/distinfo
+1,261-92744 files not shown
+1,484-1,07950 files

LLVM/project e58d325lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/map TestDataFormatterStdMap.py

[lldb] Disable shared build dir for TestDataFormatterStdMap.py (#182096)

Follow up to #181720. This test failed on builder lldb-x86_64-debian.
DeltaFile
+1-0lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/map/TestDataFormatterStdMap.py
+1-01 files

LLVM/project fb48c99llvm/lib/Target/AMDGPU AMDGPULowerVGPREncoding.cpp, llvm/test/CodeGen/AMDGPU vgpr-lowering-gfx1250.mir

[AMDGPU] Commute instructions to avoid VGPR MSB changes
DeltaFile
+25-18llvm/test/CodeGen/AMDGPU/vgpr-lowering-gfx1250.mir
+22-0llvm/lib/Target/AMDGPU/AMDGPULowerVGPREncoding.cpp
+47-182 files

LLVM/project 9bf16e4lldb/source/Plugins/Highlighter/TreeSitter/Rust RustTreeSitterHighlighter.cpp, lldb/source/Plugins/Highlighter/TreeSitter/Rust/tree-sitter-rust grammar.js scanner.c

[lldb] Add tree-sitter based Rust syntax highlighting
DeltaFile
+1,690-0lldb/source/Plugins/Highlighter/TreeSitter/Rust/tree-sitter-rust/grammar.js
+393-0lldb/source/Plugins/Highlighter/TreeSitter/Rust/tree-sitter-rust/scanner.c
+161-0lldb/source/Plugins/Highlighter/TreeSitter/Rust/tree-sitter-rust/highlights.scm
+126-1lldb/unittests/Highlighter/HighlighterTest.cpp
+53-0lldb/source/Plugins/Highlighter/TreeSitter/Rust/tree-sitter-rust/tree-sitter.json
+43-0lldb/source/Plugins/Highlighter/TreeSitter/Rust/RustTreeSitterHighlighter.cpp
+2,466-17 files not shown
+2,568-313 files

LLVM/project 15488a7clang/test/Driver emit-reproducer.c, clang/tools/driver driver.cpp

[LLVM][CLANG] Update signal-handling behavior to comply with POSIX (#169340)

The POSIX standard
[POSIX.1-2024](https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap01.html#tag_18)
specifies how the utility reacts to signals as follows. This includes
clang when invoke through a invocation such as
[c17](https://pubs.opengroup.org/onlinepubs/9799919799/utilities/c17.html)
```
ASYNCHRONOUS EVENTS

    The ASYNCHRONOUS EVENTS section lists how the utility reacts to such events as signals and what signals are caught.

    Default Behavior: When this section is listed as "Default.", or it refers to "the standard action" for any signal, it means that the action taken as a result of the signal shall be as follows:

        If the action inherited from the invoking process, according to the rules of inheritance of signal actions defined in the System Interfaces volume of POSIX.1-2024, is for the signal to be ignored, the utility shall ignore the signal.
        If the action inherited from the invoking process, according to the rules of inheritance of signal actions defined in System Interfaces volume of POSIX.1-2024, is the default signal action, the result of the utility's execution shall be as if the default signal action had been taken.

    When the required action is for the signal to terminate the utility, the utility may catch the signal, perform some additional processing (such as deleting temporary files), restore the default signal action, and resignal itself.
```

    [9 lines not shown]
DeltaFile
+48-10llvm/lib/Support/Unix/Signals.inc
+18-7llvm/lib/Support/CrashRecoveryContext.cpp
+18-2clang/tools/driver/driver.cpp
+7-7clang/test/Driver/emit-reproducer.c
+6-3llvm/include/llvm/Support/InitLLVM.h
+7-1llvm/lib/Support/InitLLVM.cpp
+104-3016 files not shown
+146-4722 files

HardenedBSD/src 1e36ee7share/man/man7 mitigations.7

mitigations.7: spell
DeltaFile
+2-2share/man/man7/mitigations.7
+2-21 files

FreeBSD/src 1e36ee7share/man/man7 mitigations.7

mitigations.7: spell
DeltaFile
+2-2share/man/man7/mitigations.7
+2-21 files

LLVM/project 507b7fellvm/lib/Analysis ConstantFolding.cpp, llvm/test/Transforms/InstSimplify/ConstProp vector-type-constant-folding.ll

Revert "[ConstantFolding] Fix type mismatch in ConstantFolding for vector typ…"

This reverts commit ee3068bd18b23ceb30c0464395fa182cfa28a5fb.
DeltaFile
+0-25llvm/test/Transforms/InstSimplify/ConstProp/vector-type-constant-folding.ll
+2-1llvm/lib/Analysis/ConstantFolding.cpp
+2-262 files

LLVM/project 27144f4llvm/lib/Target/AArch64 AArch64InstrInfo.h, llvm/lib/Target/AMDGPU SIInstrInfo.h SIInstrInfo.cpp

[TableGen] Return int32_t from InstrMapping table lookup functions. NFC. (#182079)

Since #182059 there is only one case in which these functions return -1,
so callers no longer need to distinguish between (int64_t)-1 and
(uint32_t)-1, so we can go back to a 32-bit return value like it was
before #180954.
DeltaFile
+21-21llvm/lib/Target/AMDGPU/SIInstrInfo.h
+4-4llvm/lib/Target/AArch64/AArch64InstrInfo.h
+3-3llvm/lib/Target/WebAssembly/TargetInfo/WebAssemblyTargetInfo.h
+5-1llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp
+2-2llvm/lib/Target/SystemZ/SystemZInstrInfo.h
+2-2llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+37-335 files not shown
+43-3911 files

LLVM/project ee3068bllvm/lib/Analysis ConstantFolding.cpp, llvm/test/Transforms/InstSimplify/ConstProp vector-type-constant-folding.ll

[ConstantFolding] Fix type mismatch in ConstantFolding for vector types. (#181695)

Drop `Bitcast` case from `IsConstantOffsetFromGlobal` to avoid
misdetections.
DeltaFile
+25-0llvm/test/Transforms/InstSimplify/ConstProp/vector-type-constant-folding.ll
+1-2llvm/lib/Analysis/ConstantFolding.cpp
+26-22 files

HardenedBSD/src ddefff3sys/contrib/openzfs/include/os/freebsd/spl/sys time.h

Merge commit bfb276e55c76 from upstream OpenZFS (by Jessica Clarke)

  Once upon a time, 32-bit PowerPC did indeed have a 32-bit time_t, but
  FreeBSD 12.0 switched to a 64-bit time_t for PowerPC as an ABI break,
  which predates the addition of FreeBSD support to OpenZFS. Moreover,
  64-bit PowerPC has existed since FreeBSD 9.0, where __powerpc__ is also
  defined (alongside __powerpc64__ to disambiguate), which has always had
  a 64-bit time_t. This code has therefore always been wrong for all
  PowerPC variants. Fix this by limiting the 32-bit case to just i386,
  which is the only architecture in FreeBSD to have a 32-bit time_t and
  not have broken ABI, due to its special legacy compatibility status.

  Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
  Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
  Signed-off-by: Jessica Clarke <jrtc27 at jrtc27.com>
  Closes #18217
  Closes #18218

Reported by:    fuz

    [3 lines not shown]
DeltaFile
+1-1sys/contrib/openzfs/include/os/freebsd/spl/sys/time.h
+1-11 files

FreeBSD/src ddefff3sys/contrib/openzfs/include/os/freebsd/spl/sys time.h

Merge commit bfb276e55c76 from upstream OpenZFS (by Jessica Clarke)

  Once upon a time, 32-bit PowerPC did indeed have a 32-bit time_t, but
  FreeBSD 12.0 switched to a 64-bit time_t for PowerPC as an ABI break,
  which predates the addition of FreeBSD support to OpenZFS. Moreover,
  64-bit PowerPC has existed since FreeBSD 9.0, where __powerpc__ is also
  defined (alongside __powerpc64__ to disambiguate), which has always had
  a 64-bit time_t. This code has therefore always been wrong for all
  PowerPC variants. Fix this by limiting the 32-bit case to just i386,
  which is the only architecture in FreeBSD to have a 32-bit time_t and
  not have broken ABI, due to its special legacy compatibility status.

  Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
  Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
  Signed-off-by: Jessica Clarke <jrtc27 at jrtc27.com>
  Closes #18217
  Closes #18218

Reported by:    fuz

    [3 lines not shown]
DeltaFile
+1-1sys/contrib/openzfs/include/os/freebsd/spl/sys/time.h
+1-11 files

FreeBSD/src 354cc5esys/contrib/openzfs/include/os/freebsd/spl/sys time.h

Merge commit bfb276e55c76 from upstream OpenZFS (by Jessica Clarke)

  Once upon a time, 32-bit PowerPC did indeed have a 32-bit time_t, but
  FreeBSD 12.0 switched to a 64-bit time_t for PowerPC as an ABI break,
  which predates the addition of FreeBSD support to OpenZFS. Moreover,
  64-bit PowerPC has existed since FreeBSD 9.0, where __powerpc__ is also
  defined (alongside __powerpc64__ to disambiguate), which has always had
  a 64-bit time_t. This code has therefore always been wrong for all
  PowerPC variants. Fix this by limiting the 32-bit case to just i386,
  which is the only architecture in FreeBSD to have a 32-bit time_t and
  not have broken ABI, due to its special legacy compatibility status.

  Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
  Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
  Signed-off-by: Jessica Clarke <jrtc27 at jrtc27.com>
  Closes #18217
  Closes #18218

Reported by:    fuz

    [3 lines not shown]
DeltaFile
+1-1sys/contrib/openzfs/include/os/freebsd/spl/sys/time.h
+1-11 files

FreeBSD/src a82128dsys/contrib/openzfs/include/os/freebsd/spl/sys time.h

Merge commit bfb276e55c76 from upstream OpenZFS (by Jessica Clarke)

  Once upon a time, 32-bit PowerPC did indeed have a 32-bit time_t, but
  FreeBSD 12.0 switched to a 64-bit time_t for PowerPC as an ABI break,
  which predates the addition of FreeBSD support to OpenZFS. Moreover,
  64-bit PowerPC has existed since FreeBSD 9.0, where __powerpc__ is also
  defined (alongside __powerpc64__ to disambiguate), which has always had
  a 64-bit time_t. This code has therefore always been wrong for all
  PowerPC variants. Fix this by limiting the 32-bit case to just i386,
  which is the only architecture in FreeBSD to have a 32-bit time_t and
  not have broken ABI, due to its special legacy compatibility status.

  Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
  Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
  Signed-off-by: Jessica Clarke <jrtc27 at jrtc27.com>
  Closes #18217
  Closes #18218

Reported by:    fuz

    [3 lines not shown]
DeltaFile
+1-1sys/contrib/openzfs/include/os/freebsd/spl/sys/time.h
+1-11 files

LLVM/project 952fae4lldb/unittests/Highlighter HighlighterTest.cpp

Add if let keyword test
DeltaFile
+2-0lldb/unittests/Highlighter/HighlighterTest.cpp
+2-01 files

HardenedBSD/src 45c1e44sys/contrib/openzfs/include/os/freebsd/spl/sys time.h

Merge commit bfb276e55c76 from upstream OpenZFS (by Jessica Clarke)

  Once upon a time, 32-bit PowerPC did indeed have a 32-bit time_t, but
  FreeBSD 12.0 switched to a 64-bit time_t for PowerPC as an ABI break,
  which predates the addition of FreeBSD support to OpenZFS. Moreover,
  64-bit PowerPC has existed since FreeBSD 9.0, where __powerpc__ is also
  defined (alongside __powerpc64__ to disambiguate), which has always had
  a 64-bit time_t. This code has therefore always been wrong for all
  PowerPC variants. Fix this by limiting the 32-bit case to just i386,
  which is the only architecture in FreeBSD to have a 32-bit time_t and
  not have broken ABI, due to its special legacy compatibility status.

  Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
  Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
  Signed-off-by: Jessica Clarke <jrtc27 at jrtc27.com>
  Closes #18217
  Closes #18218

Reported by:    fuz
MFC after:      1 day
DeltaFile
+1-1sys/contrib/openzfs/include/os/freebsd/spl/sys/time.h
+1-11 files

FreeBSD/src 45c1e44sys/contrib/openzfs/include/os/freebsd/spl/sys time.h

Merge commit bfb276e55c76 from upstream OpenZFS (by Jessica Clarke)

  Once upon a time, 32-bit PowerPC did indeed have a 32-bit time_t, but
  FreeBSD 12.0 switched to a 64-bit time_t for PowerPC as an ABI break,
  which predates the addition of FreeBSD support to OpenZFS. Moreover,
  64-bit PowerPC has existed since FreeBSD 9.0, where __powerpc__ is also
  defined (alongside __powerpc64__ to disambiguate), which has always had
  a 64-bit time_t. This code has therefore always been wrong for all
  PowerPC variants. Fix this by limiting the 32-bit case to just i386,
  which is the only architecture in FreeBSD to have a 32-bit time_t and
  not have broken ABI, due to its special legacy compatibility status.

  Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
  Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
  Signed-off-by: Jessica Clarke <jrtc27 at jrtc27.com>
  Closes #18217
  Closes #18218

Reported by:    fuz
MFC after:      1 day
DeltaFile
+1-1sys/contrib/openzfs/include/os/freebsd/spl/sys/time.h
+1-11 files

LLVM/project cc0d7bfutils/bazel/llvm-project-overlay/lldb/source/Plugins BUILD.bazel

[bazel] Fix Bazel build for 5c8d247 (#182092)

Co-authored-by: Pranav Kant <prka at google.com>
DeltaFile
+1-0utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+1-01 files

LLVM/project 9595905clang/include/clang/Analysis/Scalable/Serialization SerializationFormatRegistry.h

[clang][ssaf] Improve docs of SerializationFormatRegistry (#181847)

DeltaFile
+19-2clang/include/clang/Analysis/Scalable/Serialization/SerializationFormatRegistry.h
+19-21 files

LLVM/project 3549507clang/lib/CodeGen/TargetBuiltins ARM.cpp, clang/lib/Sema SemaARM.cpp

[clang][ARM] Refactor argument handling in `EmitAArch64BuiltinExpr` (2/2) (NFC)

Refactor `EmitAArch64BuiltinExpr` so that all AArch64/NEON builtins
handled by this hook _and marked as overloaded_ share a common path
for generating LLVM IR arguments (collected into the `Ops`
`SmallVector<Value*>`) (*). This is a follow-up for #181794 - please
refer to that PR for more context.

As in the previous PR, the key change is implemented in
`HasExtraNeonArgument` , i.e. in the hook that identifies Builtins with
the extra argument. In this PR, I am replacing the ad-hoc switch
statement with a more principled approach borrowed from SemaARM.cpp,
namely:
```cpp
uint64_t mask = 0;
  switch (BuiltinID) {
  #define GET_NEON_OVERLOAD_CHECK
  #include "clang/Basic/arm_fp16.inc"
  #include "clang/Basic/arm_neon.inc"

    [28 lines not shown]
DeltaFile
+48-254clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+3-1clang/lib/Sema/SemaARM.cpp
+51-2552 files

LLVM/project 7c0cbb1clang/lib/Sema SemaHLSL.cpp, clang/test/CodeGenHLSL/resources cbuffer_matrix_align.hlsl

[HLSL] Define CBuffer field alignment for matrix types (#179836)

fixes https://github.com/llvm/llvm-project/issues/179834

Change defines Matrix alignment as buffer row length (16). Same as
arrays and structs.
Change also adds tests for matrix, matrix in structs, & arrays.
DeltaFile
+71-0clang/test/CodeGenHLSL/resources/cbuffer_matrix_align.hlsl
+2-2clang/lib/Sema/SemaHLSL.cpp
+73-22 files

LLVM/project f90447fclang/lib/CodeGen/TargetBuiltins ARM.cpp, clang/test/CodeGen arm64-microsoft-intrinsics.c

[clang][ARM] Refactor argument handling in `EmitAArch64BuiltinExpr` (1/2) (NFC)

Refactor `EmitAArch64BuiltinExpr` so that all AArch64/NEON builtins
handled by this hook _and marked as non-overloaded_ share a common path
for generating LLVM IR arguments (collected into the `Ops`
`SmallVector<Value*>`) (*)

Previously, the argument emission loop unconditionally skipped the
trailing argument:

```cpp
  for (unsigned i = 0, e = E->getNumArgs() - 1; i != e; ++i)
```

This was originally intended to ignore the extra Sema-only argument
used by overloaded NEON builtins (e.g. the type discriminator passed
by `__builtin_neon_*` intrinsics). However, this logic was applied
unconditionally.


    [37 lines not shown]
DeltaFile
+225-79clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+16-16clang/test/CodeGen/arm64-microsoft-intrinsics.c
+241-952 files

LLVM/project ca21a65clang/lib/CodeGen HLSLBufferLayoutBuilder.cpp CGHLSLRuntime.cpp, clang/test/CodeGenHLSL matrix_types.hlsl

[HLSL][Cbuffer][Matrix] Add Cbuffer padding and createBufferMatrixTempAddress (#181903)

fixes #181901

This change detects when a HLSL Cbuffer matrix’s layout differs from its
in-memory type and materializes a temporary with the non-padded matrix
type. Matrix elements are copied explicitly from the padded buffer
layout into the temporary, ensuring correct addressing and avoiding
overlapping GEPs or incorrect vector flattening.
DeltaFile
+18-18clang/test/CodeGenHLSL/matrix_types.hlsl
+23-4clang/lib/CodeGen/HLSLBufferLayoutBuilder.cpp
+26-0clang/lib/CodeGen/CGHLSLRuntime.cpp
+10-1clang/lib/CodeGen/CGExpr.cpp
+9-2clang/test/CodeGenHLSL/resources/default_cbuffer_with_layout.hlsl
+7-0clang/lib/CodeGen/HLSLBufferLayoutBuilder.h
+93-251 files not shown
+96-257 files

LLVM/project 157f820clang-tools-extra/clangd TidyProvider.cpp

[clangd] Add abseil-unchecked-statusor-access to list of ignored checks (#181864)

This
[check](https://clang.llvm.org/extra/clang-tidy/checks/abseil/unchecked-statusor-access.html)
also depends on dataflow framework.
DeltaFile
+2-1clang-tools-extra/clangd/TidyProvider.cpp
+2-11 files

FreeBSD/src 589cef5lib/libfetch common.c

libfetch: Restore timeout functionality

PR:             293124
MFC after:      1 week
Fixes:          792ef1ae7b94 ("Refactor fetch_connect() and fetch_bind() to improve readability and avoid repeating the same DNS lookups.")
Reverts:        8f8a7f6fffd7 ("libfetch: apply timeout to SSL_read()")
Reviewed by:    eugen, imp
Differential Revision:  https://reviews.freebsd.org/D55293

(cherry picked from commit 73b82d1b0a2f09224e6d0f7a13dd73c66d740207)
(insta-mfc requested by re@)
DeltaFile
+8-11lib/libfetch/common.c
+8-111 files