LLVM/project 3d4b452clang/lib/CIR/CodeGen CIRGenCall.cpp CIRGenBuiltin.cpp, clang/test/CIR/CodeGenBuiltins setjmp.c

[CIR] Allow _setjmp and _setjmpex to fall through to library calls (#193021)

This change allows calls to _setjmp and _setjmpex to fall through the
builtin handling and be emitted as library calls when we are not
targeting OSMSVCRT. It also adds the code to set "returns_twice" on
functions matching an explicit list, as they are in classic codegen.
DeltaFile
+95-0clang/test/CIR/CodeGenBuiltins/setjmp.c
+15-2clang/lib/CIR/CodeGen/CIRGenCall.cpp
+7-1clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
+117-33 files

LLVM/project de45a7cllvm/docs/CommandGuide dsymutil.rst, llvm/test/tools/dsymutil embed-resource.test cmdline.test

[dsymutil] Add --embed-resource to copy files into dSYM bundles. (#190663)

Add a new --embed-resource flag that copies files or directories into
the dSYM bundle's Contents/Resources/ directory during generation.

Projects often need to embed files such as LLDB Python scripts into dSYM
bundles, and this is usually done with a post dsym generation script,
which may race stripping and code signing steps.

rdar://50633614
DeltaFile
+65-0llvm/test/tools/dsymutil/embed-resource.test
+62-0llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
+26-0llvm/tools/dsymutil/dsymutil.cpp
+9-0llvm/tools/dsymutil/Options.td
+7-0llvm/docs/CommandGuide/dsymutil.rst
+4-0llvm/test/tools/dsymutil/cmdline.test
+173-02 files not shown
+179-08 files

LLVM/project 356ab40llvm/test/tools/llvm-nm special-syms-arm.test special-syms-csky.test, llvm/tools/llvm-nm llvm-nm.cpp

[llvm-nm] Drop STT_FILE/STT_SECTION from --special-syms (#192129)

The filter for SF_FormatSpecific symbols exempted all such symbols
for architectures having mapping symbols. This caused STT_FILE and
STT_SECTION symbols to appear with --special-syms on these targets
but not on x86_64. Narrow the exemption to only STT_NOTYPE symbols,
which are the actual mapping symbols ($d, $x, etc.).
DeltaFile
+14-11llvm/tools/llvm-nm/llvm-nm.cpp
+13-5llvm/test/tools/llvm-nm/special-syms-arm.test
+12-4llvm/test/tools/llvm-nm/special-syms-csky.test
+12-4llvm/test/tools/llvm-nm/special-syms-aarch64.test
+12-4llvm/test/tools/llvm-nm/special-syms-riscv.test
+63-285 files

LLVM/project 944f382clang/lib/CodeGen CGHLSLRuntime.cpp CGExpr.cpp, clang/lib/Sema SemaHLSL.cpp

[HLSL] Add codegen for accessing resource members of a struct (#187127)

Any expression that accesses a resource or resource array member of a global struct instance must be during codegen replaced by an access of the corresponding implicit global resource variable.

When codegen encounters a `MemberExpr` of a resource type, it traverses the AST to locate the parent struct declaration, building the expected global resource variable name along the way. If the parent declaration
is a non-static global struct instance, codegen searches its `HLSLAssociatedResourceDeclAttr` attributes to locate the matching global resource variable and then generates IR code to access the resource global in place of the member access.

Fixes #182989
DeltaFile
+146-10clang/lib/CodeGen/CGHLSLRuntime.cpp
+132-0clang/test/CodeGenHLSL/resources/resources-in-structs-inheritance.hlsl
+100-0clang/test/CodeGenHLSL/resources/resources-in-structs-array.hlsl
+83-0clang/test/CodeGenHLSL/resources/resources-in-structs.hlsl
+19-24clang/lib/Sema/SemaHLSL.cpp
+12-4clang/lib/CodeGen/CGExpr.cpp
+492-383 files not shown
+525-389 files

LLVM/project 725ecf6llvm/lib/Target/NVPTX NVPTXAsmPrinter.cpp

[NVPTX] NVPTXAsmPrinter::bufferAggregateConstVec - append null constants instead of iterating (#192742)

Avoids unnecessary loop with repeated ConstantInt::getNullValue calls
and fixes MSVC unused variable warning

Introduced by #183628
DeltaFile
+2-2llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
+2-21 files

OpenZFS/src 37e3a26module/zfs dmu_direct.c

dmu_direct: avoid UAF in dmu_write_direct_done()

dmu_write_direct_done() passes dmu_sync_arg_t to
dmu_sync_done(), which updates the override state and
frees the completion context. The Direct I/O error path
then still dereferences dsa->dsa_tx while rolling the
dirty record back with dbuf_undirty(), resulting in a
use-after-free.

Save dsa->dsa_tx in a local variable before calling
dmu_sync_done() and use that saved tx for the error
rollback. This preserves the existing ownership model
for dsa and does not change the Direct I/O write
semantics.

Reviewed-by: Brian Atkinson <batkinson at lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Co-authored-by: gality369 <gality369 at example.com>
Signed-off-by: ZhengYuan Huang <gality369 at gmail.com>
Closes #18440
DeltaFile
+7-1module/zfs/dmu_direct.c
+7-11 files

LLVM/project a0ac2edllvm/test/CodeGen/AArch64 sve-fixed-length-masked-expandloads.ll sve-streaming-mode-fixed-length-masked-expandload.ll, llvm/test/CodeGen/AArch64/GlobalISel select-with-no-legality-check.mir knownbits-vector.mir

comments

Created using spr 1.3.7
DeltaFile
+26,606-0llvm/test/CodeGen/AArch64/sve-fixed-length-masked-expandloads.ll
+4,078-0llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-masked-expandload.ll
+1,604-1,567llvm/test/CodeGen/AArch64/clmul-scalable.ll
+0-1,370llvm/unittests/CodeGen/GlobalISel/KnownBitsVectorTest.cpp
+662-662llvm/test/CodeGen/AArch64/GlobalISel/select-with-no-legality-check.mir
+1,291-0llvm/test/CodeGen/AArch64/GlobalISel/knownbits-vector.mir
+34,241-3,599741 files not shown
+53,383-16,854747 files

LLVM/project 633a098llvm/test/CodeGen/AArch64 sve-fixed-length-masked-expandloads.ll sve-streaming-mode-fixed-length-masked-expandload.ll, llvm/test/CodeGen/AArch64/GlobalISel select-with-no-legality-check.mir knownbits-vector.mir

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+26,606-0llvm/test/CodeGen/AArch64/sve-fixed-length-masked-expandloads.ll
+4,078-0llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-masked-expandload.ll
+1,604-1,567llvm/test/CodeGen/AArch64/clmul-scalable.ll
+0-1,370llvm/unittests/CodeGen/GlobalISel/KnownBitsVectorTest.cpp
+662-662llvm/test/CodeGen/AArch64/GlobalISel/select-with-no-legality-check.mir
+1,291-0llvm/test/CodeGen/AArch64/GlobalISel/knownbits-vector.mir
+34,241-3,599740 files not shown
+53,382-16,838746 files

LLVM/project 62d7aa0clang/test/Modules DebugInfoSubmodules.c lsv-debuginfo.cpp

[clang] Disable some module tests on AIX (#193008)

PR https://github.com/llvm/llvm-project/pull/190062 makes two module
tests fail on AIX. Disable them on that platform until we get to the
bottom of it.
DeltaFile
+1-0clang/test/Modules/DebugInfoSubmodules.c
+1-0clang/test/Modules/lsv-debuginfo.cpp
+2-02 files

OpenZFS/src ddf19dccontrib/initramfs/scripts zfs

initramfs: fix incorrect variable rename

Fixes regression introduced by 61ab032ae0391bce38aef1e43b5b930724ecdb55.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>
Signed-off-by: Joel Low <joel at joelsplace.sg>
Closes #18442
DeltaFile
+4-4contrib/initramfs/scripts/zfs
+4-41 files

OpenZFS/src c214a3acontrib/initramfs/scripts zfs

initramfs: fix use of renamed variables

Fixes regression introduced by 33dd57e1b4997c0e78e42bf340b2eed5ea954f64.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>
Signed-off-by: Joel Low <joel at joelsplace.sg>
Closes #18442
DeltaFile
+2-2contrib/initramfs/scripts/zfs
+2-21 files

LLVM/project 0dd5054mlir/include/mlir/Dialect/GPU/IR GPUOps.td, mlir/include/mlir/Dialect/GPU/Transforms IndexedAccessOpInterfaceImpl.h

[mlir][MemRef][GPU] Migrate GPU dialect ops to IndexedAccessOpInterface (#190380)

This commit migrates the handling of GPU dialect ops in
fold-memref-alias-ops from hard-coded support to the new
IndexedAccessOphinterface, which also adds expand_shape folding support
for those ops.

Once other memref-dialect passes are migrated to use this interface,
this will allow us to break the dependency between the memref and gpu
dialects.
DeltaFile
+119-0mlir/lib/Dialect/GPU/Transforms/IndexedAccessOpInterfaceImpl.cpp
+79-0mlir/test/Dialect/GPU/fold-memref-alias-ops.mlir
+0-21mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp
+21-0mlir/include/mlir/Dialect/GPU/Transforms/IndexedAccessOpInterfaceImpl.h
+8-0mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
+3-0mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
+230-212 files not shown
+233-218 files

FreeBSD/src 4b79ee8usr.sbin/ctld ctld.cc

ctld: Update nchildren directly in wait_for_children

This results in slightly less duplicated code.

Reviewed by:    asomers
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D56526
DeltaFile
+12-16usr.sbin/ctld/ctld.cc
+12-161 files

FreeBSD/src 7bb2b38usr.sbin/ctld ctld.cc ctld.hh

ctld: Support multiple physical ports in a target

PR:             293076
Reported by:    Ken J. Thomson <thomsonk at yandex.com>
Reviewed by:    asomers
Fixes:          969876fcee57 ("ctld: parse config file independently of getting kernel info")
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D55767
DeltaFile
+37-35usr.sbin/ctld/ctld.cc
+5-6usr.sbin/ctld/ctld.hh
+2-2usr.sbin/ctld/conf.cc
+1-1usr.sbin/ctld/parse.y
+1-1usr.sbin/ctld/conf.h
+1-1usr.sbin/ctld/uclparse.cc
+47-466 files

FreeBSD/src e56687busr.sbin/ctld ctld.cc

ctld: Return from the inner "main" loop on EINTR

This ensures that child processes are reaped in the outer loop in
main().

PR:             294035
Reviewed by:    asomers
Fixes:          66b107e82b2f ("ctld: Use kevent(2) for socket events rather than select(2)")
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D56525
DeltaFile
+1-1usr.sbin/ctld/ctld.cc
+1-11 files

FreeBSD/src 505f381sys/dev/cxgbe/nvmf nvmf_che.c

nvmf_che: Don't leak a socket if an error occurs finalizing the socket

If soreserve() or sosetopt() (to set TCP_NODELAY) fails after claiming
the socket from the file descriptor, explicitly close the socket
before returning failure.

Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D55493
DeltaFile
+1-0sys/dev/cxgbe/nvmf/nvmf_che.c
+1-01 files

FreeBSD/ports 040af08security/zeek distinfo Makefile

security/zeek: Update to 8.0.7

    https://github.com/zeek/zeek/releases/tag/v8.0.7

This release fixes the following potential DoS vulnerabilities:

 - A series of DNS messages containing long DNS compression chains
   can cause Zeek to spend a long time processing packets and
   potentially crash. Due to the fact that these packets can be
   received from remote hosts, this is a DoS risk.

 - A specially-crafted LDAP search request can cause Zeek to spend
   a long time processing the packet, resulting in Zeek silently
   dropping the LDAP analyzer for the connection. Due to the fact
   that these packets can be received from remote hosts, this is
   an evasion risk.

 - A specially-crafted series of ASN.1 messages in LDAP packets can
   cause Zeek to spend a long time processing the packets, resulting

    [25 lines not shown]
DeltaFile
+3-3security/zeek/distinfo
+1-2security/zeek/Makefile
+4-52 files

OpenZFS/src 1cebe8alib/libzfs libzfs_dataset.c

libzfs: report invalid permission name in zfs allow

zfs allow with a typo (e.g. "snapshop") produced the misleading
error "operation not applicable to datasets of this type".  Report
"invalid permission" instead.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Signed-off-by: Christos Longros <chris.longros at gmail.com>
Closes #18401
Closes #11903
DeltaFile
+1-1lib/libzfs/libzfs_dataset.c
+1-11 files

FreeBSD/ports 039d0a9security/vuxml/vuln 2026.xml

security/vuxml: Mark security/zeek < 8.0.7 as vulnerable as per:

    https://github.com/zeek/zeek/releases/tag/v8.0.7

This release fixes the following potential DoS vulnerabilities:

 - A series of DNS messages containing long DNS compression chains
   can cause Zeek to spend a long time processing packets and
   potentially crash. Due to the fact that these packets can be
   received from remote hosts, this is a DoS risk.

 - A specially-crafted LDAP search request can cause Zeek to spend
   a long time processing the packet, resulting in Zeek silently
   dropping the LDAP analyzer for the connection. Due to the fact
   that these packets can be received from remote hosts, this is
   an evasion risk.

 - A specially-crafted series of ASN.1 messages in LDAP packets can
   cause Zeek to spend a long time processing the packets, resulting

    [5 lines not shown]
DeltaFile
+40-0security/vuxml/vuln/2026.xml
+40-01 files

LLVM/project 78b0a51llvm/utils/TableGen/Common/GlobalISel GlobalISelMatchTable.cpp

[GlobaISel] Protect against Variable 'NumBucketedMatchers' set but not used Error/Warning. (#193000)

Fixes the build issue reported on #177158
DeltaFile
+6-2llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp
+6-21 files

LLVM/project 68d22f4flang/include/flang/Semantics tools.h, flang/lib/Lower OpenACC.cpp

[flang][cuda] Only apply the implicit data attribute on the component for use_device (#192146)

For interoperability between CUDA Fortran and OpenACC, the OpenACC
host_data use_device clause needs implicitly add the DEVICE attribute to
the object symbol for the duration of the region. When the object was a
component, we were adding the symbol to the base which is not what we
want.
Update the handling to copy the base symbol with a new DerivedTypeScope
and set the attribute on the component. New test is added to test the
behavior is indeed on the component.
DeltaFile
+159-37flang/lib/Semantics/resolve-names.cpp
+64-0flang/test/Lower/OpenACC/acc-host-data-cuda-device.f90
+64-0flang/lib/Semantics/type.cpp
+30-9flang/lib/Semantics/expression.cpp
+9-0flang/include/flang/Semantics/tools.h
+2-6flang/lib/Lower/OpenACC.cpp
+328-521 files not shown
+331-527 files

LLVM/project a298e79clang/docs UsersManual.rst, clang/lib/Driver/ToolChains Clang.cpp

Option to control signaling NaN support

This change implements the Clang command-line option `-fsignaling-nans`,
which is a counterpart of the GCC option with the same name. It allows a
user to control support for signaling NaNs. This option instructs the
compiler that signaling NaNs are to be treated according to IEEE 754:
they are quieted in arithmetic operations and raise `Invalid`
floating-point exception. The opposite option, `-fno-signaling-nans`,
does the reverse, - it indicates that signaling NaNs are handled
identically to quiet NaNs. If neither of these options is specified, no
signaling NaNs support is assumed, except for functions that have
`strictfp` attribute.

At the IR level, signaling NaN support is represented by the function
attribute "signaling-nans". It is set by Clang when it generates code in
cases when signaling NaNs are supported. If the target architecture does
not support signaling NaNs, Clang does not set this attribute.

The primary motivation for this change is the optimization of strictfp

    [11 lines not shown]
DeltaFile
+187-2llvm/test/Transforms/InstSimplify/strictfp-fsub.ll
+111-2llvm/test/Transforms/InstSimplify/strictfp-fadd.ll
+30-0clang/docs/UsersManual.rst
+18-1clang/test/Driver/clang_f_opts.c
+19-0llvm/docs/LangRef.rst
+16-1clang/lib/Driver/ToolChains/Clang.cpp
+381-619 files not shown
+460-2225 files

LLVM/project b549d96llvm/lib/Target/AArch64 AArch64PointerAuth.cpp

[llvm][ptrauth] Refactor an early return into authenticateLR. NFC (#190415)
DeltaFile
+24-23llvm/lib/Target/AArch64/AArch64PointerAuth.cpp
+24-231 files

pkgin/pkgin 19e826b. configure CHANGES.md

Release 26.4.0.
DeltaFile
+10-10configure
+4-0CHANGES.md
+1-1configure.ac
+15-113 files

OpenZFS/src 4339b4eman/man8 zpool-labelclear.8 zpool.8

zpool-labelclear.8: Warn that it's destructive

If I could go back in time, I would beg Sun engineers to pick a
different name. For those of us who have not read the ZFS On-Disk
Specification pdf, it is not at all obvious that clearing a "label" is
such a bad thing.

But changing the name would be a breaking change, so at least for now
we can update the documentation.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Signed-off-by: Shelvacu <git at shelvacu.com>
Closes #18347
DeltaFile
+9-0man/man8/zpool-labelclear.8
+3-1man/man8/zpool.8
+12-12 files

OpenZFS/src 7fdd2bflib/libzfs/os/linux libzfs_mount_os.c

libzfs: report permission error from umount helper

Non-root callers got "unmount failed" when ZFS_MOUNT_HELPER was set
because /bin/umount's exit status doesn't preserve errno.  Map a
non-zero helper exit to EPERM when geteuid() != 0 so the user sees
"permission denied".

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Christos Longros <chris.longros at gmail.com>
Closes #11740
Closes #18443
DeltaFile
+5-1lib/libzfs/os/linux/libzfs_mount_os.c
+5-11 files

FreeBSD/ports d88b19bnet-mgmt/librenms distinfo Makefile, net-mgmt/librenms/files patch-resources_views_graphs_realtime.blade.php

net-mgmt/librenms: Update to 26.4.0

re: https://github.com/librenms/librenms/releases/tag/26.4.0

This release requires a database update.

Sponsored by:   Layla
DeltaFile
+5-5net-mgmt/librenms/distinfo
+0-8net-mgmt/librenms/files/patch-resources_views_graphs_realtime.blade.php
+2-3net-mgmt/librenms/Makefile
+7-163 files

FreeBSD/src f49f61fsys/net iflib.c

iflib: Add a missing CURVNET_RESTORE() in the error path

Signed-off-by:  Peter Ganzhorn <peter.ganzhorn at gmail.com>
Reviewed by:    zlei
Fixes:          6d49b41ee84b iflib: Add pfil hooks
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2150
DeltaFile
+3-1sys/net/iflib.c
+3-11 files

FreeBSD/src 0d16792lib/geom/part geom_part.c

geom_part: Restore the human readable format of size

Prior to the change 4f809ffec69c, the sizes are formated by
humanize_number(3) with the flag HN_DECIMAL, which displays the result
using one decimal place when it is less than 10. That is more accurate
and useful. Add equivalent field modifier hn-decimal to xo_emit() to
restore the previous behavior.

Reported by:    Mark Millard
Reviewed by:    js
Fixes:          4f809ffec69c gpart: add libxo support for "show" subcommand + man page updates
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56514
DeltaFile
+4-4lib/geom/part/geom_part.c
+4-41 files

LLVM/project 918b8f5mlir/lib/Transforms CSE.cpp

[mlir][CSE] Pre-process trivially dead ops (NFC) (#191135)

This PR avoids calling `simplifyRegion` on dead region ops.
`simplifyRegion` attempts to perform CSE optimization on the ops within
the region, which is unnecessary for ops that are already trivially
dead.
DeltaFile
+10-8mlir/lib/Transforms/CSE.cpp
+10-81 files