syzbot


KCSAN: data-race in get_signal / ptrace_attach (8)

Status: moderation: reported on 2025/11/24 19:14
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+aa76b57099e518972841@syzkaller.appspotmail.com
First crash: 14d, last: 14d
Similar bugs (7)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in get_signal / ptrace_attach (2) kasan 6 1 1987d 1987d 0/29 auto-closed as invalid on 2020/08/04 00:25
upstream KCSAN: data-race in get_signal / ptrace_attach (7) kernel 6 1 337d 337d 0/29 auto-obsoleted due to no activity on 2025/03/02 06:49
upstream KCSAN: data-race in get_signal / ptrace_attach (5) kernel 6 1 1391d 1391d 0/29 auto-closed as invalid on 2022/03/23 02:38
upstream KCSAN: data-race in get_signal / ptrace_attach (3) kernel 6 1 1678d 1678d 0/29 auto-closed as invalid on 2021/06/09 02:47
upstream KCSAN: data-race in get_signal / ptrace_attach (6) kernel 6 1 648d 648d 0/29 auto-obsoleted due to no activity on 2024/04/04 22:16
upstream KCSAN: data-race in get_signal / ptrace_attach (4) kernel 6 1 1546d 1546d 0/29 auto-closed as invalid on 2021/10/19 11:18
upstream KCSAN: data-race in get_signal / ptrace_attach kasan 6 1 2222d 2222d 0/29 closed as invalid on 2019/11/19 14:04

Sample crash report:
==================================================================
BUG: KCSAN: data-race in get_signal / ptrace_attach

write to 0xffff88811ad66330 of 4 bytes by task 16548 on cpu 0:
 ptrace_attach+0x26c/0x590 kernel/ptrace.c:462
 __do_sys_ptrace kernel/ptrace.c:1405 [inline]
 __se_sys_ptrace+0x146/0x2c0 kernel/ptrace.c:1387
 __x64_sys_ptrace+0x55/0x70 kernel/ptrace.c:1387
 x64_sys_call+0x2870/0x3000 arch/x86/include/generated/asm/syscalls_64.h:102
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88811ad66330 of 4 bytes by task 16549 on cpu 1:
 get_signal+0x3a0/0xf70 kernel/signal.c:2919
 arch_do_signal_or_restart+0x96/0x440 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop kernel/entry/common.c:40 [inline]
 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]
 irqentry_exit_to_user_mode+0x5b/0xa0 kernel/entry/common.c:73
 irqentry_exit+0x12/0x50 kernel/entry/common.c:191
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 16549 Comm: syz.8.4231 Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/24 19:13 upstream ac3fd01e4c1e bf6fe8fe .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in get_signal / ptrace_attach
* Struck through repros no longer work on HEAD.