LLVM/project 7db1a2blldb/source/Utility ConstString.cpp

[lldb] Avoid unnecessary strlen of mangled names in ConstString (NFC) (#197995)

C++ mangled names are known to be quite long at times. This change makes
use of available length data, instead of using the `StringRef(const char
*)` constructor which calls `strlen`.

The main detail is to replace `selectPool(llvm::StringRef(raw))` with a
call to `selectPool` using a readily available StringRef.
DeltaFile
+11-9lldb/source/Utility/ConstString.cpp
+11-91 files

FreeBSD/src 96eaa68sys/net80211 ieee80211_node.c _ieee80211.h

net80211: define a type for rssi values

Due to net80211 keeping values in 0.5dBm relative to the noise floor
an int8_t is not good enough to prevent a double wrap around, which
means the reported rssi values can be wrong (see D50928 or likely
a commit in the future for more information).

In order to address the problem and not break the userspace API,
start by defining a type within the kernel and use that.  In a
next step we will then update the int8_t to int16_t to avoid the
problem up to the ioctl code.  This will then allow us to work
on the the user space API indepedently (see PR 293016 for possible
impact outside the base system).

No functional changes intended.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    adrian
Differential Revision: https://reviews.freebsd.org/D57021
DeltaFile
+9-9sys/net80211/ieee80211_node.c
+10-5sys/net80211/_ieee80211.h
+4-3sys/net80211/ieee80211_wds.c
+3-3sys/net80211/ieee80211_var.h
+3-1sys/net80211/ieee80211_ioctl.c
+2-2sys/net80211/ieee80211_mesh.c
+31-239 files not shown
+47-3915 files

FreeBSD/src d201e4esys/dev/wtap if_wtap.c

wtap: use typed rssi and noise floor values

Adjust the rssi and nf arguments to typed int8_t and adjust the maths
for rssi to be consistant with what net80211 expects.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    lwhsu, adrian
Differential Revision: https://reviews.freebsd.org/D57020
DeltaFile
+12-2sys/dev/wtap/if_wtap.c
+12-21 files

FreeBSD/ports 57a371bemulators/qemu-devel distinfo Makefile

emulators/qemu-devel: Update version 10.2.20260228=>11.0.20260331
DeltaFile
+15-15emulators/qemu-devel/distinfo
+3-3emulators/qemu-devel/Makefile
+0-1emulators/qemu-devel/pkg-plist
+18-193 files

FreeBSD/ports b7b071asysutils/opentofu distinfo Makefile

sysutils/opentofu: Update version 1.11.7=>1.11.8

Changelog: https://github.com/opentofu/opentofu/releases/tag/v1.11.8
DeltaFile
+5-5sysutils/opentofu/distinfo
+1-1sysutils/opentofu/Makefile
+6-62 files

FreeBSD/ports fc7f196java/visualvm pkg-plist distinfo

java/visualvm: Update version 2.1.9=>2.1.10

Changelog: https://github.com/oracle/visualvm/releases/tag/2.1.10
DeltaFile
+8-6java/visualvm/pkg-plist
+3-3java/visualvm/distinfo
+1-2java/visualvm/Makefile
+12-113 files

FreeBSD/ports 1edcfacdevel/protoc-gen-go-grpc distinfo Makefile

devel/protoc-gen-go-grpc: Update snapshot 830c909=>3d0dd1e
DeltaFile
+13-15devel/protoc-gen-go-grpc/distinfo
+9-8devel/protoc-gen-go-grpc/Makefile
+22-232 files

FreeBSD/ports 2083f85net/libwebsockets distinfo Makefile

net/libwebsockets: Update version 4.4.4=>4.4.5

Changelog: https://github.com/warmcat/libwebsockets/releases/tag/v4.4.5
DeltaFile
+3-3net/libwebsockets/distinfo
+1-1net/libwebsockets/Makefile
+4-42 files

FreeBSD/ports f8a3ec8devel/py-ariadne distinfo Makefile

devel/py-ariadne: Update version 0.25.2=>0.26.0

Changelog: https://github.com/mirumee/ariadne/releases/tag/0.26.0
DeltaFile
+3-3devel/py-ariadne/distinfo
+1-1devel/py-ariadne/Makefile
+4-42 files

FreeBSD/ports 10df4f6net/google-cloud-sdk distinfo Makefile

net/google-cloud-sdk: Update version 567.0.0=>568.0.0
DeltaFile
+3-3net/google-cloud-sdk/distinfo
+1-1net/google-cloud-sdk/Makefile
+4-42 files

FreeBSD/ports 20107c8devel/py-lizard distinfo Makefile

devel/py-lizard: Update version 1.17.21=>1.17.22

Changelog: https://github.com/terryyin/lizard/releases/tag/1.17.22
DeltaFile
+3-3devel/py-lizard/distinfo
+1-1devel/py-lizard/Makefile
+4-42 files

FreeBSD/ports f9f46fddevel/p5-BZ-Client distinfo Makefile

devel/p5-BZ-Client: Update version 4.4=>4.4001

Changelog: https://metacpan.org/dist/BZ-Client/changes
DeltaFile
+3-3devel/p5-BZ-Client/distinfo
+1-1devel/p5-BZ-Client/Makefile
+4-42 files

FreeBSD/ports 900984edatabases/redis-devel distinfo Makefile

databases/redis-devel: Update version 8.4.0.20251129=>8.4.0.20251226
DeltaFile
+3-3databases/redis-devel/distinfo
+2-2databases/redis-devel/Makefile
+5-52 files

FreeBSD/ports 7d6a28cdevel/pickle Makefile, devel/pickle/files patch-src_pic14.c patch-src_pic16n.c

devel/pickle: Switch to llvm15
DeltaFile
+142-0devel/pickle/files/patch-src_pic14.c
+92-0devel/pickle/files/patch-src_pic16n.c
+83-0devel/pickle/files/patch-src_pic14n.c
+27-0devel/pickle/files/patch-src_io.c
+15-0devel/pickle/files/patch-src_io.h
+6-3devel/pickle/Makefile
+365-36 files

FreeBSD/ports acb6378devel/magic_enum distinfo Makefile

devel/magic_enum: Update version 0.9.7=>0.9.8

Changelog: https://github.com/Neargye/magic_enum/releases/tag/v0.9.8
DeltaFile
+3-3devel/magic_enum/distinfo
+1-1devel/magic_enum/Makefile
+4-42 files

FreeBSD/ports 281cecddatabases/clickhouse distinfo Makefile

databases/clickhouse: Update version 25.11.2.24=>25.11.3.54

Changelog: https://github.com/ClickHouse/ClickHouse/releases/tag/v25.11.3.54-stable
DeltaFile
+5-5databases/clickhouse/distinfo
+1-1databases/clickhouse/Makefile
+1-1databases/clickhouse/Makefile.submodules
+7-73 files

FreeBSD/ports 36b3cf7devel/libjitterentropy distinfo Makefile

devel/libjitterentropy: Update version 3.6.3=>3.7.0

Changelog: https://github.com/smuellerDD/jitterentropy-library/releases/tag/v3.7.0
DeltaFile
+3-3devel/libjitterentropy/distinfo
+1-2devel/libjitterentropy/Makefile
+4-52 files

FreeBSD/ports a03d88adatabases/freetds-devel distinfo Makefile

databases/freetds-devel: Update version 1.5.321=>1.5.326
DeltaFile
+3-3databases/freetds-devel/distinfo
+1-1databases/freetds-devel/Makefile
+4-42 files

Linux/linux b0662befs/smb/client fs_context.c transport.c, fs/smb/common fscc.h smb2pdu.h

Merge tag 'v7.1-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6

Pull smb client fixes from Steve French:

 - Fix integer overflow in read

 - Fix smbdirect error cleanup

 - Multichannel reconnect fix

 - Add some missing defines and correct some references to protocol spec

 - Fix oob symlink read

* tag 'v7.1-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
  smbdirect: Fix error cleanup in smbdirect_map_sges_from_iter()
  smb: client: avoid integer overflow in SMB2 READ length check
  cifs: client: stage smb3_reconfigure() updates and restore ctx on failure
  smb/client: fix possible infinite loop and oob read in symlink_data()
  SMB3.1.1: add missing QUERY_DIR info levels
DeltaFile
+109-54fs/smb/client/fs_context.c
+9-6fs/smb/client/transport.c
+3-1fs/smb/client/smb2ops.c
+2-2fs/smb/common/fscc.h
+4-0fs/smb/common/smb2pdu.h
+3-0fs/smb/client/smb2file.c
+130-631 files not shown
+131-647 files

LLVM/project aaaae52libc/test/integration/src/__support/threads cndvar_test.cpp, libc/test/integration/src/pthread pthread_cond_test.cpp

[libc] Reduce number of iterations in threading tests. (#198030)

Previously the threading tests were running noticeably slowly and
causing flakey timeouts on some buildbots (e.g.
https://lab.llvm.org/buildbot/#/builders/71/builds/48420)
DeltaFile
+3-3libc/test/integration/src/pthread/pthread_cond_test.cpp
+2-2libc/test/integration/src/__support/threads/cndvar_test.cpp
+5-52 files

Linux/linux fcbf68dfs/ceph quota.c xattr.c, net/ceph osdmap.c auth_x.c

Merge tag 'ceph-for-7.1-rc4' of https://github.com/ceph/ceph-client

Pull ceph fixes from Ilya Dryomov:
 "An important patch from Hristo that squashes a folio reference leak
  that could lead to OOM kills in CephFS and a number of miscellaneous
  fixes from Raphael and Slava.

  All but two are marked for stable"

* tag 'ceph-for-7.1-rc4' of https://github.com/ceph/ceph-client:
  libceph: Fix potential null-ptr-deref in decode_choose_args()
  libceph: handle rbtree insertion error in decode_choose_args()
  libceph: Fix potential out-of-bounds access in osdmap_decode()
  ceph: put folios not suitable for writeback
  ceph: add ceph_has_realms_with_quotas() check to ceph_quota_update_statfs()
  libceph: Fix potential out-of-bounds access in __ceph_x_decrypt()
  ceph: fix BUG_ON in __ceph_build_xattrs_blob() due to stale blob size
  ceph: fix a buffer leak in __ceph_setxattr()
  libceph: Fix unnecessarily high ceph_decode_need() for uniform bucket
  libceph: Fix potential out-of-bounds access in crush_decode()
DeltaFile
+27-10fs/ceph/quota.c
+17-0fs/ceph/xattr.c
+12-5net/ceph/osdmap.c
+1-5net/ceph/crush/crush.c
+5-0net/ceph/auth_x.c
+2-0fs/ceph/addr.c
+64-206 files

LLVM/project dd0bb3eclang/lib/CIR/CodeGen CIRGenCXX.cpp, clang/test/CIR/CodeGen global-dtor-union-narrowed.cpp

[CIR] Cast global var address to declared type at dtor call site

A C++ global with a constexpr default constructor that fixes the active member of a union — `std::basic_string`'s SSO `__short` variant is a common example — has a `cir.global` whose stored record type is the narrowed shape of that active variant.  Classic CodeGen does the same (`@g = global { { { [16 x i8] } } } zeroinitializer`) and accepts the resulting `__cxa_atexit(@D1, @g, ...)` because LLVM IR uses opaque pointers.  CIR has typed pointers, so the `cir.call` registering the destructor for `__cxa_atexit` carries an operand type that doesn't match the dtor's `this` parameter.  This trips 16 libcxx tests and 71 cases total across libcxx, MultiSource, SingleSource, and SPEC in our build.

`verifyPointerTypeArgs(oldF, newF, userMap)` in `CIRGenModule::applyReplacements` (`clang/lib/CIR/CodeGen/CIRGenModule.cpp:1700`) catches this when ctor-dtor aliases are enabled and D1 is RAUW'd by D2.  Without aliases, the `cir.call` op verifier rejects the same operand-type mismatch directly.

The fix mirrors the cast pattern `emitGlobalVarDeclLValue` (`clang/lib/CIR/CodeGen/CIRGenExpr.cpp:441-445`) already uses for every AST-level reference to a global: bitcast the result of `getAddrOfGlobalVar` to `convertTypeForMem(type)` before any typed-pointer op consumes it.  `getAddrOfGlobalVar` itself stays raw so callers that walk to the underlying `GetGlobalOp` via `getDefiningOp()` keep working.

`global-dtor-union-narrowed.cpp` pins the CIR bitcast, the lowered LLVM helper-wrapped `__cxa_atexit`, and the equivalent OGCG direct `__cxa_atexit`.
DeltaFile
+41-0clang/test/CIR/CodeGen/global-dtor-union-narrowed.cpp
+14-1clang/lib/CIR/CodeGen/CIRGenCXX.cpp
+55-12 files

LLVM/project 2825dfaclang/test/CodeGen scoped-atomic-ops.c, clang/test/CodeGenCUDA atomic-options.hip amdgpu-kernel-arg-pointer-type.cu

[clang] remove lots of "innocuous" addrspacecasts (#197745)

These originally added many addrspacecast early on, where often it
wasn't needed, or could be added later. This makes these fairly
straightforward to remove (other than changing some tests). By swapping
all calls to this function (except the intended semantic ones for
parameters and variables) with the uncasted version, AMDGPU will
eventually not need to attempt to apply a fix up afterwards by having
different addrspace maps. This PR does not yet fix all calls, but the
main ones that might have been missed are in matrix/vector extensions
(which seem to weirdly override the memory type for temporary values to
be different from the type of the object in all other uses).
DeltaFile
+568-852clang/test/CodeGen/scoped-atomic-ops.c
+144-216clang/test/CodeGenCUDA/atomic-options.hip
+95-103clang/test/CodeGenCUDA/amdgpu-kernel-arg-pointer-type.cu
+60-41clang/test/CodeGenCXX/amdgcn-func-arg.cpp
+36-54clang/test/CodeGenCUDA/builtins-spirv-amdgcn.cu
+32-42clang/test/OpenMP/target_teams_generic_loop_codegen_as_parallel_for.cpp
+935-1,30834 files not shown
+1,156-1,56040 files

LLVM/project ad42ae2llvm/include/llvm/Frontend/OpenMP OMPIRBuilder.h, llvm/lib/Frontend/OpenMP OMPIRBuilder.cpp

Fix dynamic map iterator target data lowering

Hoist runtime-sized offload map array allocation for regional target data with
iterator modifiers so the dynamic count and arrays dominate both begin and end
runtime calls.
DeltaFile
+58-30llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+28-2offload/test/offloading/fortran/map-motion-iterator.f90
+28-0mlir/test/Target/LLVMIR/openmp-iterator.mlir
+6-0llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
+2-2mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+122-345 files

FreeBSD/ports 427ab69math/R-cran-dplyr distinfo Makefile

math/R-cran-dplyr: Update to 1.2.1 (Unbreak with R 4.6.0)

ChangeLog:      https://github.com/tidyverse/dplyr/releases/tag/v1.2.1
PR:             295051
Approved by:    portmgr (build fix blanket)
DeltaFile
+3-3math/R-cran-dplyr/distinfo
+2-2math/R-cran-dplyr/Makefile
+5-52 files

FreeNAS/freenas 63d4abatests/sharing_protocols/fibre_channel test_fibre_channel.py, tests/sharing_protocols/nfs test_nfs_mt_races.py test_nfs_dacl_readdir.py

Temporarily restrict sharing tests to iSCSI
DeltaFile
+0-2,303tests/sharing_protocols/nvmet/test_nvmet_tcp.py
+0-1,081tests/sharing_protocols/fibre_channel/test_fibre_channel.py
+0-1,027tests/sharing_protocols/nfs/test_nfs_mt_races.py
+0-921tests/sharing_protocols/nvmet/nvmet_ha_utils.py
+0-818tests/sharing_protocols/smb/test_smb_protocol_base.py
+0-658tests/sharing_protocols/nfs/test_nfs_dacl_readdir.py
+0-6,80818 files not shown
+0-11,43224 files

FreeNAS/freenas a847e24src/middlewared/middlewared/etc_files scst.conf.mako

Always set bind_alua_state
DeltaFile
+1-0src/middlewared/middlewared/etc_files/scst.conf.mako
+1-01 files

FreeNAS/freenas 6438ef8tests/sharing_protocols/iscsi test_262_iscsi_alua.py

Increase timeout for test_failover_lun_replace
DeltaFile
+1-1tests/sharing_protocols/iscsi/test_262_iscsi_alua.py
+1-11 files

FreeNAS/freenas bcf8f35tests/sharing_protocols/iscsi test_262_iscsi_alua.py

Add restore_active_node fixture
DeltaFile
+41-1tests/sharing_protocols/iscsi/test_262_iscsi_alua.py
+41-11 files

FreeNAS/freenas 502d24ctests/sharing_protocols/iscsi test_262_iscsi_alua.py

iSCSI ALUA: regression test for failover LUN-replace stall

Add an extended test that builds 2 targets (25 + 10 LUNs), opens an
iSCSI session to the standby on the 25-LUN target so the kernel has
tgt_devs to clean up during become_active, then triggers an ungraceful
failover via poweroff_vm. Asserts:

  - /var/log/failover.log on the new master does not contain
    'Failed to restart service "iscsitarget" after 15 seconds',
    which would indicate the LUN-replace loop stalled.
  - /sys/kernel/scst_tgt/async_lun_replace reads 0 after failover,
    confirming reset_active released the parked cleanup work.
  - All LUNs are reachable on the new master.

A function-scoped fixture handles recovery (start_vm, wait_for_backup,
wait_for_settle) so the cluster is restored to a clean two-node state
even if an assertion above failed.

Uses the dataset() asset helper rather than zvol() for lower
per-extent overhead at this scale.
DeltaFile
+210-1tests/sharing_protocols/iscsi/test_262_iscsi_alua.py
+210-11 files