[all-commits] [llvm/llvm-project] a708b4: [sanitizer] Print diagnostic if ptrace syscall fai...
Stanislav Mekhanoshin via All-commits
all-commits at lists.llvm.org
Mon Aug 4 15:41:50 PDT 2025
Branch: refs/heads/users/rampitec/08-04-_amdgpu_gfx1250_v_wmma_scale_16__f32_16x16x128_f8f6f4_codegen
Home: https://github.com/llvm/llvm-project
Commit: a708b4bf21d7c2298224cdacf7d424abc3c8fed4
https://github.com/llvm/llvm-project/commit/a708b4bf21d7c2298224cdacf7d424abc3c8fed4
Author: Thurston Dang <thurston at google.com>
Date: 2025-08-04 (Mon, 04 Aug 2025)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
Log Message:
-----------
[sanitizer] Print diagnostic if ptrace syscall fails (#151406)
StopTheWorld() clones a child process (with shared virtual address space
and shared TLS) that calls ptrace before releasing a mutex; the parent
process yields until the mutex is unlocked. If seccomp kills the child
process, the parent process will silently hang. The parent process
cannot use waitpid to detect that the child process has been killed,
because the processes share errno.
This patch forks the process one-time to test whether ptrace is allowed.
If it fails, it prints an informational message (though it does not
abort the sanitizer).
Fixes https://github.com/llvm/llvm-project/issues/150380 and
https://github.com/google/sanitizers/issues/777
Commit: f9676dfad20863d429bd79039137019e67f4165b
https://github.com/llvm/llvm-project/commit/f9676dfad20863d429bd79039137019e67f4165b
Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
Date: 2025-08-04 (Mon, 04 Aug 2025)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
Log Message:
-----------
Merge branch 'main' into users/rampitec/08-04-_amdgpu_gfx1250_v_wmma_scale_16__f32_16x16x128_f8f6f4_codegen
Compare: https://github.com/llvm/llvm-project/compare/8b3559f36b0b...f9676dfad208
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list