LLVM/project c4d2c30 — llvm/test/tools/llvm-rc tokenizer.test resname-string.test, llvm/test/tools/llvm-rc/Inputs tokens.rc resname-string.rc

[llvm-rc] Allow '+' in identifiers (#247298)

Unquoted resource names and filenames in Windows resource scripts can
now contain '+' characters (for example, "libc++.dll" in user-defined
resources). Microsoft rc.exe accepts '+' within unquoted resource
identifiers.

Previously, Tokenizer::canContinueIdentifier() did not handle '+',
splitting "libc++.dll" into "libc", '+', '+', ".dll" and failing with
"expected int or identifier, got +".

Allow '+' in Tokenizer::canContinueIdentifier(), matching how '-' and
'/' are already handled.

Assisted-by: Antigravity, especially for tests and review
DeltaFile
+1-1llvm/tools/llvm-rc/ResourceScriptToken.cpp
+2-0llvm/test/tools/llvm-rc/resname-string.test
+2-0llvm/test/tools/llvm-rc/Inputs/resname-string.rc
+1-0llvm/test/tools/llvm-rc/tokenizer.test
+1-0llvm/test/tools/llvm-rc/Inputs/tokens.rc
+7-15 files

LLVM/project 683e4d0 — libc/src/__support/threads thread.cpp, libc/test/src/pthread CMakeLists.txt pthread_tss_test.cpp

[libc] Check upper key limit in TSSKeyMgr::is_valid_key (#247857)

`TSSKeyMgr::get_dtor`, `TSSKeyMgr::remove_key`, and `get_tss_value`
check `key >= TSS_KEY_COUNT` before indexing key storage, while
`TSSKeyMgr::is_valid_key` indexed `units[key]` directly. Check `key >=
TSS_KEY_COUNT` in `is_valid_key` as well so `set_tss_value` returns
`false` for keys at or above `TSS_KEY_COUNT`, and add `pthread_tss_test`
covering `pthread_key_*` and `tss_*` key validation.

Assisted-By: Gemini
DeltaFile
+71-0libc/test/src/pthread/pthread_tss_test.cpp
+23-0libc/test/src/pthread/CMakeLists.txt
+8-1libc/src/__support/threads/thread.cpp
+102-13 files

HardenedBSD/ports 0ca36eb — irc/dxirc Makefile

HBSD: Resolve merge conflict

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+0-5irc/dxirc/Makefile
+0-51 files

HardenedBSD/ports b509189 — irc/dxirc pkg-plist, java/openjdk26 Makefile

Merge remote-tracking branch 'rad/freebsd/main' into hardenedbsd/main

Conflicts:
        irc/dxirc/Makefile (unresolved)
DeltaFile
+15,127-0www/dolibarr23/pkg-plist
+4,486-254irc/dxirc/pkg-plist
+535-1,031www/dolibarr/pkg-plist
+219-239shells/sheldon/distinfo
+108-118shells/sheldon/Makefile.crates
+0-211java/openjdk26/Makefile
+20,475-1,853719 files not shown
+22,796-5,024725 files

FreeBSD/ports e546ba3 — devel/aphpunit Makefile distinfo

devel/aphpunit: Upgrade from 2.3 to 2.42.0

  Changelog:

    Feature: Add optional legacy JUnit XML reports for CI and test-case management systems
    Feature: Add --max-forks option to configure the number of parallel tests
    Feature: Display test-case discovery and execution progress
    Bugfix: Reap all finished child processes when SIGCHLD signals are combined
    Bugfix: Report the test case and message and queue sizes when sending an IPC message fails
    Bugfix: Add the missing bin/aphpunit executable for Composer installations
    Bugfix: Use a separate IPC queue for each APHPUnit instance to support parallel runs

  Taken from: https://gitlab.p.variablis.de/open-source/aphpunit/-/releases/2.42.0

Sponsored by:   OTTRIA

(cherry picked from commit beecb1c707e52b0b92b3d7195fb82b3a24b32131)
DeltaFile
+3-3devel/aphpunit/distinfo
+1-1devel/aphpunit/Makefile
+4-42 files

LLVM/project ee6a5a0 — clang/lib/Basic/Targets AMDGPU.h AMDGPU.cpp

[Clang][AMDGPU] Remove redundant isAMDGCN checks. NFC (#246818)

After the r600 target removal, AMDGPUTargetInfo is only created for
the amdgcn triple, so every `isAMDGCN()` check in it is always true.
Drop those checks and the helpers that only wrapped them.

```
if (hasFMAF())
  Builder.defineMacro("__HAS_FMAF__");
  -->
Builder.defineMacro("__HAS_FMAF__");
```

RFC: https://discourse.llvm.org/t/rfc-amdgpu-deprecating-and-removing-llvm-s-r600-terascale-backend/92840
DeltaFile
+15-22clang/lib/Basic/Targets/AMDGPU.cpp
+5-25clang/lib/Basic/Targets/AMDGPU.h
+20-472 files

FreeBSD/ports beecb1c — devel/aphpunit Makefile distinfo

devel/aphpunit: Upgrade from 2.3 to 2.42.0

  Changelog:

    Feature: Add optional legacy JUnit XML reports for CI and test-case management systems
    Feature: Add --max-forks option to configure the number of parallel tests
    Feature: Display test-case discovery and execution progress
    Bugfix: Reap all finished child processes when SIGCHLD signals are combined
    Bugfix: Report the test case and message and queue sizes when sending an IPC message fails
    Bugfix: Add the missing bin/aphpunit executable for Composer installations
    Bugfix: Use a separate IPC queue for each APHPUnit instance to support parallel runs

  Taken from: https://gitlab.p.variablis.de/open-source/aphpunit/-/releases/2.42.0

Sponsored by:   OTTRIA
DeltaFile
+3-3devel/aphpunit/distinfo
+1-1devel/aphpunit/Makefile
+4-42 files

LLVM/project 374a3d6 — llvm/docs ReleaseNotes.md

Add release note
DeltaFile
+3-1llvm/docs/ReleaseNotes.md
+3-11 files

OpenZFS/src c615b79 — .github/workflows/scripts qemu-1-setup.sh

CI: calculate and prioritize fast apt mirrors in QEMU setup

GitHub-hosted ubuntu-24.04 runners land on both Azure and AWS EC2, where
default cloud apt mirrors frequently throttle or stall until the 60
minute Setup QEMU timeout.  Probe a random sample of US mirrors in
parallel, rank them fastest-first in /etc/apt/apt-mirrors.txt with short
socket timeouts and the official Ubuntu mirrors as fallbacks, and retry
on the next mirror if apt-get install exceeds 5 minutes.

Also run apt-get update only after the mirrors are ranked, and fix the
quoting of the unneeded package pattern so the preinstalled packages
are actually removed.

Assisted-by: Antigravity
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Ananda Bhattacharya <a3217055 at gmail.com>
Closes #20027
DeltaFile
+66-21.github/workflows/scripts/qemu-1-setup.sh
+66-211 files

LLVM/project 44fb772 — llvm/include/llvm/IR RuntimeLibcalls.td

RuntimeLibcalls: Add attributes to ObjC runtime calls (#244695)

Mark the ObjC runtime functions nounwind, and mark the argument of
the functions whose intrinsics mark their argument returned.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+31-26llvm/include/llvm/IR/RuntimeLibcalls.td
+31-261 files

FreeBSD/ports 3e54447 — sysutils/py-dbuild Makefile distinfo

sysutils/py-dbuild: Update to 1.14.0

ChangeLog:

- https://github.com/daemonless/dbuild/releases/tag/v1.14.0

Reviewed by:    dtxdf
Approved by:    dtxdf (mentor, maintainer)
Differential Revision:  https://reviews.freebsd.org/D62304
DeltaFile
+3-3sysutils/py-dbuild/distinfo
+1-1sysutils/py-dbuild/Makefile
+4-42 files

LLVM/project 9e5ebe0 — llvm/include/llvm/IR RuntimeLibcalls.td

RuntimeLibcalls: Add attributes to operator new and delete (#244712)

Annotate operator new and delete implementation variants. The nothrow
variants are nounwind. No library registers these yet so they don't
appear in the DeclareRuntimeLibcalls tests.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+100-64llvm/include/llvm/IR/RuntimeLibcalls.td
+100-641 files

FreeBSD/src 8758499 — usr.sbin/traceroute6 traceroute6.c traceroute6.8

traceroute6: do not print an ECN report for an echo reply

packet_ok() takes the ECN bits from the IPv6 header quoted by an
ICMPv6 error message.  The destination answers an ICMPv6 probe (-I)
with an echo reply, which repeats the ICMPv6 data of the probe but not
its IPv6 header, so for that reply the main loop used whatever an
earlier packet had left in ecn.

With -E the ECN report for the destination therefore repeated the
bits quoted by an earlier ICMPv6 error.  If no ICMPv6 error had been
received before, because the destination is one hop away, the first
hops are skipped with -f or the routers on the path are silent, ecn
was still uninitialized:

        $ traceroute6 -E -I -n -q 1 ::1
        traceroute6 to ::1 (::1) from ::1, 64 hops max, 20 byte packets
         1  ::1  0.055 ms (ecn=bleached)

Print the ECN report only when there is a quoted header.  Document

    [9 lines not shown]
DeltaFile
+4-1usr.sbin/traceroute6/traceroute6.8
+3-1usr.sbin/traceroute6/traceroute6.c
+7-22 files

FreeBSD/src b09f9a9 — usr.sbin/traceroute traceroute.c traceroute.8

traceroute: do not use a stale or NULL quoted header with -E

packet_ok() points the global hip at the IP header quoted by an ICMP
error message and nothing resets it afterwards.  The destination
answers an ICMP probe (-I) with an echo reply, which repeats the ICMP
data of the probe but not its IP header, so for that reply the main
loop used whatever an earlier packet had left in hip.

With -E the ECN report for the destination was therefore read from
the payload of the echo reply.  If no ICMP error had been received
before, because the destination is one hop away, the first hops are
skipped with -f or the routers on the path are silent, hip was still
NULL and traceroute crashed:

        $ traceroute -E -I 127.0.0.1
        traceroute to 127.0.0.1 (127.0.0.1), 64 hops max, 48 byte packets
        Segmentation fault

With -D the stale quote was compared with the probe.

    [12 lines not shown]
DeltaFile
+4-1usr.sbin/traceroute/traceroute.c
+4-1usr.sbin/traceroute/traceroute.8
+8-22 files

LLVM/project 6a0ed03 — llvm/test/Transforms/LoopVectorize vplan-based-stride-mv.ll, llvm/test/Transforms/LoopVectorize/VPlan vplan-based-stride-mv.ll

Add a test causing infinite recursion

AI-found
DeltaFile
+146-0llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv.ll
+70-0llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
+216-02 files

LLVM/project 27340ec — clang/lib/Sema SemaCast.cpp, clang/test/SemaOpenCLCXX address-space-reference-casts.clcpp

[Clang] Check address space overlap for C-style casts to references

In OpenCL and SYCL, `TryAddressSpaceCast` rejects a pointer cast between
two address spaces that don't overlap, but a C-style cast to a reference
is not checked (there is a FIXME for it). As a result,
`(__local int &)global_var` is accepted and we emit an `addrspacecast`.

This PR checks such reference casts in the same way. We only check the
case where the reference binds to the operand directly, i.e. the two
types are related. Other casts to a reference are not affected.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+65-0clang/test/SemaOpenCLCXX/address-space-reference-casts.clcpp
+32-3clang/lib/Sema/SemaCast.cpp
+10-0clang/test/SemaSYCL/address-space-array-reference-casts.cpp
+3-0clang/test/SemaSYCL/address-space-conversions.cpp
+110-34 files

FreeBSD/src b808b9d — . ObsoleteFiles.inc, sys/dev/cxgbe t4_sge.c

mbuf: declare mbuf hash types as distinct types, not flags

This refactors b06db8c9dafb to use language rather then a test case to
enforce correct use mbuf hash types.  Also it makes debugger
print readable values, when you look up an mbuf.

Reviewed by:            gallatin, kbowling
Differential Revision:  https://reviews.freebsd.org/D60987
DeltaFile
+30-34sys/sys/mbuf.h
+0-53tests/sys/sys/mbuf_test.c
+2-4sys/kern/uipc_mbuf.c
+3-0ObsoleteFiles.inc
+1-1sys/net/iflib.h
+1-1sys/dev/cxgbe/t4_sge.c
+37-933 files not shown
+39-949 files

LLVM/project d540cf9 — clang/lib/Sema SemaCast.cpp, clang/test/SemaOpenCLCXX address-space-reference-casts.clcpp

[Clang] Check address space overlap for C-style casts to references

In OpenCL and SYCL, `TryAddressSpaceCast` rejects a pointer cast between
two address spaces that don't overlap, but a C-style cast to a reference
is not checked (there is a FIXME for it). As a result,
`(__local int &)global_var` is accepted and we emit an `addrspacecast`.

This PR checks such reference casts in the same way. We only check the
case where the reference binds to the operand directly, i.e. the two
types are related. Other casts to a reference are not affected.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+65-0clang/test/SemaOpenCLCXX/address-space-reference-casts.clcpp
+32-3clang/lib/Sema/SemaCast.cpp
+10-0clang/test/SemaSYCL/address-space-array-reference-casts.cpp
+3-0clang/test/SemaSYCL/address-space-conversions.cpp
+110-34 files

OpenZFS/src 8919e31 — tests/zfs-tests/tests/functional/anyraid anyraid_clean_mirror_004_pos.ksh anyraid_clean_mirror_003_pos.ksh, tests/zfs-tests/tests/functional/cli_root/zdb zdb_display_block.ksh

ZTS: clean up everything a test creates

These tests' cleanup leaves some of what the test made or changed, or
stops partway:

- zpool_attach_003_pos: don't stop the cleanup when the pool does not
  exist, so that the vdev files are still removed.
- anyraid_tile_layout: remove the file vdevs.
- zed_slow_io, zed_slow_io_many_vdevs, zed_diagnose_multiple: remove
  the mount point directory.
- removal_cancel: destroy the pool.
- slog_015_neg: remove the vdev directories.
- zvol_misc_fua: remove the temporary files even when the cleanup
  fails partway, and remove each of them once.  Restore
  zvol_use_blk_mq, which the test left set to 1.
- import_log_missing: remove the backup device directory, in the
  zpool_import cleanup that all these tests use.
- mmp tests: remove the vdev directory, not only its files.
- anyraid tests, zpool_add_001_pos, zpool_add_009_neg,

    [21 lines not shown]
DeltaFile
+0-15tests/zfs-tests/tests/functional/zvol/zvol_swap/cleanup.ksh
+0-12tests/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap.cfg
+6-6tests/zfs-tests/tests/functional/cli_root/zdb/zdb_display_block.ksh
+8-0tests/zfs-tests/tests/functional/anyraid/anyraid_clean_mirror_004_pos.ksh
+8-0tests/zfs-tests/tests/functional/anyraid/anyraid_clean_mirror_003_pos.ksh
+8-0tests/zfs-tests/tests/functional/anyraid/anyraid_clean_mirror_002_pos.ksh
+30-3341 files not shown
+103-5847 files

FreeBSD/ports 7beb59d — net/freerdp3 pkg-plist Makefile

net/freerdp3: Update 3.34.0 => 3.34.1

Changelog:
https://github.com/FreeRDP/FreeRDP/releases/tag/3.34.1

Sponsored by:   UNIS Labs
MFH:            2026Q4

(cherry picked from commit 013aad74c2bcacc822e6a37914497eab1fbb30d6)
DeltaFile
+3-3net/freerdp3/distinfo
+1-1net/freerdp3/pkg-plist
+1-1net/freerdp3/Makefile
+5-53 files

FreeBSD/ports 013aad7 — net/freerdp3 pkg-plist Makefile

net/freerdp3: Update 3.34.0 => 3.34.1

Changelog:
https://github.com/FreeRDP/FreeRDP/releases/tag/3.34.1

Sponsored by:   UNIS Labs
MFH:            2026Q4
DeltaFile
+3-3net/freerdp3/distinfo
+1-1net/freerdp3/pkg-plist
+1-1net/freerdp3/Makefile
+5-53 files

OpenZFS/src f0df708 — tests/zfs-tests/tests/functional/libzfs libzfs_input.ksh, tests/zfs-tests/tests/functional/pam pam_recursive.ksh pam_mount_recursively.ksh

ZTS: destroy the datasets that tests create

These tests pass but leave datasets, snapshots or bookmarks in their
group's pools, where later tests in the group can trip over them:

- zfs_rename_001_pos, 002_pos, 004_neg, 005_neg: destroy the file
  system and container that additional_setup creates.
- zfs_rename_012_neg, libzfs_input, pam_mount_recursively,
  pam_recursive, send_encrypted_freeobjects, send_freeobjects: add a
  cleanup function, which they did not have.
  pam_mount_recursively's and pam_recursive's also delete the user
  that the test adds.
- zfs_bookmark_cliargs: put back an empty recv dataset in place of the
  received one; zfs_bookmark_recursive: destroy its bookmarks.
- zfs_create_010_neg: destroy the volume if the test created it.
- zfs_destroy_clone_livelist, zfs_mount_remount,
  zfs_share_concurrent_shares, zfs_unload-key_recursive,
  idmap_mount_005, user_namespace_002, xattr_004_pos,
  send_partial_dataset: destroy the datasets that the cleanup missed.

    [16 lines not shown]
DeltaFile
+10-1tests/zfs-tests/tests/functional/rsend/rsend_019_pos.ksh
+8-1tests/zfs-tests/tests/functional/rsend/send-c_longname.ksh
+9-0tests/zfs-tests/tests/functional/rsend/send_encrypted_freeobjects.ksh
+9-0tests/zfs-tests/tests/functional/pam/pam_recursive.ksh
+9-0tests/zfs-tests/tests/functional/pam/pam_mount_recursively.ksh
+9-0tests/zfs-tests/tests/functional/libzfs/libzfs_input.ksh
+54-218 files not shown
+124-724 files

LLVM/project 6836dd9 — llvm/test/CodeGen/AMDGPU licm-regpressure-peak.mir, llvm/test/CodeGen/NVPTX atomicrmw-elementwise-sm90.ll atomicrmw-elementwise-sm70.ll

[MachineLICM] Track peak register pressure when hoisting

The pressure check in MachineLICM only looks at the estimates saved in
BackTrace. These record pressure at block boundaries, so they can miss an
earlier peak in the current BB or an ancestor BB. If pressure falls before the
candidate, the check can allow it to move even though its def then needs to stay
live across that earlier peak. This can push pressure beyond the limit and cause
spills.

This PR adds PeakPressure alongside RegPressure and saves the previous peak with
the existing boundary estimate in BackTrace. The pressure check considers the
current BB's peak and both saved estimates. Normal hoists adjust the current and
saved peaks, and scope exit restores the previous peak. Preheader scanning skips
peak updates and seeds the starting pressure from its final estimate.

Fixes LCOMPILER-3233.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+412-412llvm/test/CodeGen/NVPTX/atomicrmw-elementwise-sm70.ll
+412-412llvm/test/CodeGen/NVPTX/atomicrmw-elementwise-sm60.ll
+604-0llvm/test/CodeGen/AMDGPU/licm-regpressure-peak.mir
+263-263llvm/test/CodeGen/Thumb2/mve-gather-increment.ll
+92-108llvm/test/CodeGen/RISCV/rvv/pr165232.ll
+65-65llvm/test/CodeGen/NVPTX/atomicrmw-elementwise-sm90.ll
+1,848-1,26010 files not shown
+2,124-1,50816 files

FreeBSD/src c721025 — sys/netinet tcp_var.h tcp_output.c, sys/netinet/tcp_stacks rack.c

tcp: update the send/recv pipes in hostcache during connection lifetime

Modern browsers usually open multiple connections to a site and
connections that were created later now can benefit from host cache data
that was gathered by earlier (but still open) connection.

Reviewed by:            tuexen
Differential Revision:  https://reviews.freebsd.org/D60733
DeltaFile
+15-0sys/netinet/tcp_hostcache.c
+2-0sys/netinet/tcp_stacks/rack.c
+2-0sys/netinet/tcp_input.c
+1-0sys/netinet/tcp_var.h
+1-0sys/netinet/tcp_output.c
+21-05 files

FreeBSD/src 25086c5 — sys/dev/hyperv/hvsock hv_sock.h hv_sock.c

hvsock: make protosw methods static

No functional change.
DeltaFile
+41-44sys/dev/hyperv/hvsock/hv_sock.c
+0-14sys/dev/hyperv/hvsock/hv_sock.h
+41-582 files

FreeBSD/src 95e115d — sys/netgraph/bluetooth/include ng_btsocket_l2cap.h, sys/netgraph/bluetooth/socket ng_btsocket.c ng_btsocket_l2cap_raw.c

bluetooth: remove stub method

pr_init() will set this method to official stub pr_send_notsupp().
DeltaFile
+0-14sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c
+0-3sys/netgraph/bluetooth/include/ng_btsocket_l2cap.h
+0-1sys/netgraph/bluetooth/socket/ng_btsocket.c
+0-183 files

FreeBSD/src 27dbfb9 — sys/kern uipc_socket.c, sys/sys sockopt.h

sockets: garbage collect soopt_mcopyout()

It came from KAME and was a complement of soopt_mcopyin(), that
copied socket options passed by setsockopt(2) to mbufs.  It was
unused since f95d46333db63ce9df4e8a2ca8c5c09bc0edfe72 in 2003
also from KAME.
DeltaFile
+0-34sys/kern/uipc_socket.c
+0-1sys/sys/sockopt.h
+0-352 files

OpenZFS/src 8510fc2 — tests/zfs-tests/tests/functional/cli_root/zdb zdb_004_pos.ksh zdb_006_pos.ksh, tests/zfs-tests/tests/functional/cli_root/zpool_expand zpool_expand_003_neg.ksh zpool_expand_001_pos.ksh

ZTS: detach devices and clear labels that tests leave

- mmp_on_zdb, zdb_004_pos, zdb_006_pos: clear the labels of the pool's
  own vdevs.  The cleanup ran labelclear on $DEV_RDSKDIR/$DISK, which
  misses the labels in a whole disk's partition, so a pool these tests
  left exported stayed on the disks.  zdb_004_pos does that every time
  it runs.
- zpool_expand_001_pos, zpool_expand_003_neg: detach the loop device
  without first looking for its name in "losetup -a".  Where /dev/loop
  is a directory (Alpine), "losetup -a" names it /dev/loop/N, while
  "losetup -f", which chose it, names it /dev/loopN, so a loop device
  was left attached in each pass.
- zvol_misc_zil: wait for the zvol's device node before writing to it,
  so that the test does not create a regular file at its path in
  /dev/zvol.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Matthew Ahrens <matt at mahrens.org>
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Closes #20082
DeltaFile
+5-5tests/zfs-tests/tests/functional/mmp/mmp_on_zdb.ksh
+4-2tests/zfs-tests/tests/functional/cli_root/zdb/zdb_006_pos.ksh
+3-2tests/zfs-tests/tests/functional/cli_root/zdb/zdb_004_pos.ksh
+2-1tests/zfs-tests/tests/functional/cli_root/zpool_expand/zpool_expand_003_neg.ksh
+2-1tests/zfs-tests/tests/functional/cli_root/zpool_expand/zpool_expand_001_pos.ksh
+1-0tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_zil.ksh
+17-116 files

FreeBSD/src 05951ed — . ObsoleteFiles.inc

ObsoleteFiles.inc: augment if_vte.4 symlink removal

Reported by:    llm-postcr
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-0ObsoleteFiles.inc
+1-01 files

LLVM/project 7c3d7ba — compiler-rt/lib/tsan/rtl tsan_interceptors_posix.cpp, compiler-rt/test/sanitizer_common/TestCases/Posix c11_cnd.c

[tsan] Intercept C11 cnd_* functions on glibc (#247719)

glibc implements the C11 condition variable functions with its internal
pthread_cond functions, so TSan doesn't see a cnd_wait release and
reacquire its mutex and reports false data races (#199585).

Intercept cnd_init, cnd_signal, cnd_broadcast, cnd_wait, cnd_timedwait
and cnd_destroy, forwarding to the real functions and doing what the
pthread_cond interceptors do. The waits reuse cond_wait. C11 condition
variables always have the current pthread_cond_t layout, so they don't
go through init_cond.

Enable c11_cnd.c for TSan on glibc.

Assisted-by: Claude
DeltaFile
+45-0compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
+0-2compiler-rt/test/sanitizer_common/TestCases/Posix/c11_cnd.c
+45-22 files