LLVM/project d61b93eclang/docs/analyzer checkers.md, clang/include/clang/StaticAnalyzer/Checkers Checkers.td

[clang][docs] Add documentation for the DanglingPtrDeref checker (#216688)

In order to move the `DanglingPtrDeref` checker out of alpha it needs a
documentation the user can get information from. This PR added the
documentation for the `DanglingPtrDeref` checker and follow up PR will
also do the same for the `UseAfterLifetimeEnd` checker. Currently the
documentation sits in the `alpha.core` category, but once we move the
checker out of alpha stage it should be changed as well.

AI-policy: After I have written the documentation I verified my
spellings, grammar with AI.
DeltaFile
+59-0clang/docs/analyzer/checkers.md
+1-1clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
+60-12 files

FreeNAS/freenas f13449ftests/directory_services test_activedirectory_two_factor_auth.py test_activedirectory_privilege.py

DS-related account tests
DeltaFile
+144-0tests/directory_services/test_activedirectory_privilege.py
+121-0tests/directory_services/test_activedirectory_two_factor_auth.py
+265-02 files

FreeNAS/freenas beb7a86src/middlewared/middlewared/test/integration/assets account.py privilege.py, tests/api2 test_account_privilege_role.py test_account_2fa.py

NAS-142214 / 27.0.0-BETA.1 / More account tests (#19508)

API tests that provide near-100% coverage for `plugins/account_/*py`
DeltaFile
+261-4tests/api2/test_account_privilege.py
+254-0tests/api2/test_account_sync_builtin.py
+144-0tests/api2/test_account_2fa.py
+20-0src/middlewared/middlewared/test/integration/assets/privilege.py
+17-1tests/api2/test_account_privilege_role.py
+15-0src/middlewared/middlewared/test/integration/assets/account.py
+711-54 files not shown
+735-710 files

LLVM/project ca7de35llvm/lib/Transforms/Vectorize VectorCombine.cpp, llvm/test/Transforms/VectorCombine ext-extract-oob.ll

[VectorCombine] Reject out-of-bounds extract indexes in scalarizeExtExtract (#218984)

Fixes #218724.

An out-of-bounds `extractelement` produces poison in LLVM IR.
`VectorCombine::scalarizeExtExtract` currently matches constant-index
extracts without checking that the index is within the vector bounds.

For a sufficiently large out-of-bounds index, `scalarizeExtExtract` uses
the index to compute a shift amount for the packed integer
representation. The resulting constant can exceed the bitwidth of the
packed type, causing an `APInt` assertion in `ConstantInt::get`.

This patch adds a bounds check in `scalarizeExtExtract` and bails out
when the extract index is out of range, avoiding the invalid shift
construction.

The regression test uses the reduced reproducer from #218724.
DeltaFile
+18-0llvm/test/Transforms/VectorCombine/ext-extract-oob.ll
+4-0llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+22-02 files

FreeBSD/ports 0f805e7x11/compton-conf Makefile, x11/compton-conf/files patch-CMakeLists.txt

x11/compton-conf: Mark DEPRECATED

- Try to fix cmake4 issues
- Bump PORTREVISION

With hat:       lxqt
PR:             297945
DeltaFile
+14-0x11/compton-conf/files/patch-CMakeLists.txt
+4-1x11/compton-conf/Makefile
+18-12 files

LLVM/project 44ea65cllvm/lib/Transforms/Utils Local.cpp PromoteMemoryToRegister.cpp, llvm/test/Transforms/PhaseOrdering always-inline-alloca-promotion.ll

Re-apply "[PromoteMemToReg] Insert store undef when removing lifetime markers" (#218935)

Reapplies #191909 / reverts #218804

Re-apply as-is. The issues were downstream and have been since fixed.
DeltaFile
+190-0llvm/test/Transforms/SROA/lifetime-aware-phi.ll
+32-3llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
+7-7llvm/test/Transforms/PhaseOrdering/ARM/arm_var_q31.ll
+2-4llvm/test/Transforms/PhaseOrdering/always-inline-alloca-promotion.ll
+3-0llvm/lib/Transforms/Utils/Local.cpp
+1-1llvm/test/Transforms/PhaseOrdering/ARM/arm_mean_q7.ll
+235-156 files

Illumos/gate 433e6beusr/src/uts/common/io/virtio virtio_spec.h virtio.h

18322 virtio: add support for VIRTIO_F_RING_EVENT_IDX
18368 virtio can fail to notify the device when flushing a queue
18369 virtio: VIRTQ_DMA_SYNC_FORKERNEL computes a garbage length
Reviewed by: Robert Mustacchi <rm at fingolfin.org>
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Dan McDonald <danmcd at edgecast.io>
DeltaFile
+177-17usr/src/uts/common/io/virtio/virtio_main.c
+29-7usr/src/uts/common/io/virtio/virtio_impl.h
+16-8usr/src/uts/common/io/virtio/virtio.h
+2-1usr/src/uts/common/io/virtio/virtio_spec.h
+224-334 files

HardenedBSD/src ecc859a. UPDATING, sbin/pfctl pfctl.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+30-0tests/sys/netpfil/pf/anchor.sh
+17-7usr.bin/xinstall/tests/install_test.sh
+20-2sys/dev/sound/usb/uaudio.c
+15-0sys/dev/intel/spi_pci.c
+6-4sbin/pfctl/pfctl.c
+10-0UPDATING
+98-134 files not shown
+112-1810 files

HardenedBSD/src 612c67f. UPDATING, sbin/pfctl pfctl.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+30-0tests/sys/netpfil/pf/anchor.sh
+17-7usr.bin/xinstall/tests/install_test.sh
+20-2sys/dev/sound/usb/uaudio.c
+15-0sys/dev/intel/spi_pci.c
+6-4sbin/pfctl/pfctl.c
+10-0UPDATING
+98-134 files not shown
+112-1810 files

HardenedBSD/ports 3991f25devel/py-maturin Makefile.crates distinfo, textproc/ctpp2/files patch-src-CDT.cpp patch-include-CDT.hpp

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+19-21devel/py-maturin/distinfo
+16-16textproc/ctpp2/files/patch-include-CDT.hpp
+12-12textproc/ctpp2/files/patch-src-CDT.cpp
+20-0x11-toolkits/kirigami-app-components/pkg-plist
+18-0x11-toolkits/kirigami-app-components/Makefile
+8-9devel/py-maturin/Makefile.crates
+93-5829 files not shown
+181-12135 files

FreeBSD/ports 4714705chinese/fcitx5-mcbopomofo Makefile distinfo

chinese/fcitx5-mcbopomofo: Update to 3.1

Changes:        https://github.com/openvanilla/fcitx5-mcbopomofo/releases/tag/3.1
DeltaFile
+3-3chinese/fcitx5-mcbopomofo/distinfo
+1-2chinese/fcitx5-mcbopomofo/Makefile
+4-52 files

LLVM/project 2371da7llvm/lib/Target/AMDGPU GCNSubtarget.h AMDGPU.td, llvm/test/CodeGen/AMDGPU ds_write2.ll ds_read2-gfx1250.ll

[AMDGPU] Disable unaligned 2addr LDS operations in strict mode
DeltaFile
+326-161llvm/test/CodeGen/AMDGPU/ds_read2-gfx1250.ll
+149-75llvm/test/CodeGen/AMDGPU/ds_write2.ll
+12-2llvm/lib/Target/AMDGPU/DSInstructions.td
+6-1llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
+4-0llvm/lib/Target/AMDGPU/GCNSubtarget.h
+4-0llvm/lib/Target/AMDGPU/AMDGPU.td
+501-2396 files

LLVM/project f69fbd6lldb/include/lldb/Host/linux Ptrace.h, lldb/source/Plugins/Process/Linux NativeRegisterContextLinux_loongarch64.cpp NativeThreadLinux.cpp

lldb: Linux: delete Ptrace.h pollyfill (#218045)

As the comment in sources alludes to:

> System includes - They have to be included after framework includes
because
> they define some macros which collide with variable names in other
modules.

These collisions would ideally not happen, but they are unlikely to be
fixed any time soon. The workaround is to define what we need in the
places that we need it. This was done in a previous commit and so the
header can now be removed.

Link: https://github.com/llvm/llvm-project/pull/217435
Fixes: https://github.com/llvm/llvm-project/issues/217413
DeltaFile
+0-18lldb/include/lldb/Host/linux/Ptrace.h
+4-3lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
+5-2lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86.cpp
+5-2lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
+3-3lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_loongarch64.cpp
+5-1lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
+22-294 files not shown
+34-3410 files

HardenedBSD/ports eb873e3mail/dbmail Makefile

mail/dbmail: unbreak build after a315965d7d62ea69f5aed95c37e7ad36c900dc61 (+)

Restore version for libzdb.so.19 dependency checks to avoid name conflict
with base libzdb.so from recent ZFS presented at least on 15.x and -current

% pkg which /usr/lib/libzdb.so
/usr/lib/libzdb.so was installed by package FreeBSD-zfs-dev-16
DeltaFile
+1-1mail/dbmail/Makefile
+1-11 files

FreeBSD/ports eb873e3mail/dbmail Makefile

mail/dbmail: unbreak build after a315965d7d62ea69f5aed95c37e7ad36c900dc61 (+)

Restore version for libzdb.so.19 dependency checks to avoid name conflict
with base libzdb.so from recent ZFS presented at least on 15.x and -current

% pkg which /usr/lib/libzdb.so
/usr/lib/libzdb.so was installed by package FreeBSD-zfs-dev-16
DeltaFile
+1-1mail/dbmail/Makefile
+1-11 files

LLVM/project 1150d84llvm/utils/TableGen/Common CodeGenDAGPatterns.cpp InfoByHwMode.cpp

[TableGen] Remove unnecessary sorts from writeToStream in InfoByHwMode subclasses. NFC (#218977)

The underlying map is already sorted by mode, so we can iterate over it.

---------

Co-authored-by: Kazu Hirata <kazu at google.com>
DeltaFile
+4-16llvm/utils/TableGen/Common/InfoByHwMode.cpp
+4-11llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
+8-272 files

LLVM/project cc92641llvm/test/Transforms/PhaseOrdering loop-vectorize-bfi.ll, llvm/test/Transforms/PhaseOrdering/RISCV any-of-vectorization.ll

Update phaseordering tests
DeltaFile
+5-5llvm/test/Transforms/PhaseOrdering/loop-vectorize-bfi.ll
+4-4llvm/test/Transforms/PhaseOrdering/RISCV/any-of-vectorization.ll
+9-92 files

LLVM/project 4392860libc/startup/linux/x86_64 tls.cpp, utils/bazel/llvm-project-overlay/libc libc_build_rules.bzl

[libc][bazel] Add targets for startup objects

[libc][bazel] more startup object rules

[libc][bazel] Refactor internal_copts for libc_support_library
DeltaFile
+202-0utils/bazel/llvm-project-overlay/libc/startup/startup_rules.bzl
+104-0utils/bazel/llvm-project-overlay/libc/startup/linux/BUILD.bazel
+46-0utils/bazel/llvm-project-overlay/libc/startup/linux/x86_64/BUILD.bazel
+41-2utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl
+3-0utils/bazel/llvm-project-overlay/libc/startup/BUILD.bazel
+1-1libc/startup/linux/x86_64/tls.cpp
+397-31 files not shown
+398-37 files

LLVM/project a7847balibc/src/signal/linux kill.cpp __restore.cpp, libc/src/stdlib atexit.cpp at_quick_exit.cpp

[libc][bazel] Make a large swath of targets full-build compatible
DeltaFile
+1,412-45utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+1-2libc/src/signal/linux/__restore.cpp
+2-1libc/src/stdlib/atexit.cpp
+2-1libc/src/stdlib/at_quick_exit.cpp
+0-1libc/src/signal/linux/kill.cpp
+1,417-505 files

OPNSense/plugins 335042ewww/caddy pkg-descr, www/caddy/src/opnsense/mvc/app/controllers/OPNsense/Caddy/forms general.xml dialogLayer4.xml

www/caddy: sync with master
DeltaFile
+70-40www/caddy/src/opnsense/mvc/app/models/OPNsense/Caddy/Caddy.xml
+64-1www/caddy/src/opnsense/mvc/app/controllers/OPNsense/Caddy/forms/dialogLayer4.xml
+12-6www/caddy/src/opnsense/service/templates/OPNsense/Caddy/Config/Caddyfile
+18-0www/caddy/src/opnsense/service/templates/OPNsense/Caddy/Config/includeLayer4
+12-0www/caddy/src/opnsense/mvc/app/controllers/OPNsense/Caddy/forms/general.xml
+9-0www/caddy/pkg-descr
+185-472 files not shown
+189-538 files

OPNSense/plugins 622fbcesysutils/git-backup Makefile, sysutils/git-backup/src/opnsense/mvc/app/library/OPNsense/Backup Git.php

sysutils/git-backup: sync with master
DeltaFile
+1-1sysutils/git-backup/src/opnsense/mvc/app/library/OPNsense/Backup/Git.php
+1-1sysutils/git-backup/Makefile
+2-22 files

OPNSense/plugins 26f4c37sysutils/git-backup Makefile

sysutils/git-backup: bump for change
DeltaFile
+1-1sysutils/git-backup/Makefile
+1-11 files

OPNSense/plugins 250480cnet/upnp Makefile, net/upnp/src/www services_upnp.php

net/upnp: sync with master
DeltaFile
+1-1net/upnp/src/www/services_upnp.php
+1-0net/upnp/Makefile
+2-12 files

OPNSense/plugins b1a5049net/frr Makefile pkg-descr, net/frr/src/opnsense/mvc/app/models/OPNsense/Quagga BGP.xml

net/frr: sync with master
DeltaFile
+11-1net/frr/src/opnsense/mvc/app/models/OPNsense/Quagga/BGP.xml
+3-3net/frr/src/opnsense/service/templates/OPNsense/Quagga/Config/bgpd.conf
+6-0net/frr/pkg-descr
+2-1net/frr/src/opnsense/service/templates/OPNsense/Quagga/Config/sa_policies.conf
+1-1net/frr/Makefile
+23-65 files

OPNSense/plugins 17474b7net/firewall-legacy Makefile, net/firewall-legacy/src/www firewall_rules.php

net/firewall-legacy: sync with master
DeltaFile
+2-2net/firewall-legacy/src/www/firewall_rules.php
+1-0net/firewall-legacy/Makefile
+3-22 files

OPNSense/plugins d09340dmisc/theme-rebellion Makefile, misc/theme-rebellion/src/opnsense/www/themes/rebellion/build/css tokenize2.css

misc/theme-rebellion: sync with master
DeltaFile
+1-1misc/theme-rebellion/src/opnsense/www/themes/rebellion/build/css/tokenize2.css
+1-1misc/theme-rebellion/Makefile
+2-22 files

OPNSense/plugins d3c6530dns/rfc2136 Makefile, dns/rfc2136/src/www services_rfc2136_edit.php services_rfc2136.php

dns/rfc2136: sync with master
DeltaFile
+2-2dns/rfc2136/src/www/services_rfc2136.php
+1-1dns/rfc2136/src/www/services_rfc2136_edit.php
+1-0dns/rfc2136/Makefile
+4-33 files

OPNSense/plugins 4705a60devel/debug Makefile

devel/debug: sync with master
DeltaFile
+1-1devel/debug/Makefile
+1-11 files

Illumos/gate e199115usr/src/head ucontext.h

18294 POSIX Program including ucontext.h does not build
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Robert Mustacchi <rm at fingolfin.org>
Reviewed by: Andy Fiddaman <illumos at fiddaman.net>
Approved by: Dan McDonald <danmcd at edgecast.io>
DeltaFile
+27-0usr/src/head/ucontext.h
+27-01 files

OPNSense/plugins f9e58d4security/intrusion-detection-content-at-antiphishing Makefile, security/intrusion-detection-content-at-antiphishing/src/opnsense/scripts/suricata/metadata/rules julioliraup-antiphing.xml

security/intrusion-detection-content-at-antiphishing: sync with master
DeltaFile
+1-1security/intrusion-detection-content-at-antiphishing/src/opnsense/scripts/suricata/metadata/rules/julioliraup-antiphing.xml
+1-0security/intrusion-detection-content-at-antiphishing/Makefile
+2-12 files