syzbot


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

Status: auto-closed as invalid on 2021/06/09 02:47
Subsystems: kernel
[Documentation on labels]
First crash: 1524d, last: 1524d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in get_signal / ptrace_attach (2) kasan 1 1833d 1833d 0/29 auto-closed as invalid on 2020/08/04 00:25
upstream KCSAN: data-race in get_signal / ptrace_attach (7) kernel 1 183d 183d 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 1 1237d 1237d 0/29 auto-closed as invalid on 2022/03/23 02:38
upstream KCSAN: data-race in get_signal / ptrace_attach (6) kernel 1 493d 493d 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 1 1392d 1392d 0/29 auto-closed as invalid on 2021/10/19 11:18
upstream KCSAN: data-race in get_signal / ptrace_attach kasan 1 2068d 2068d 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 0xffff88815be2d070 of 4 bytes by task 24903 on cpu 0:
 ptrace_attach+0x243/0x510 kernel/ptrace.c:408
 __do_sys_ptrace kernel/ptrace.c:1281 [inline]
 __se_sys_ptrace+0xc1/0x1b0 kernel/ptrace.c:1261
 __x64_sys_ptrace+0x51/0x60 kernel/ptrace.c:1261
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88815be2d070 of 4 bytes by task 24902 on cpu 1:
 get_signal+0x733/0x1610 kernel/signal.c:2705
 arch_do_signal_or_restart+0x2a/0x220 arch/x86/kernel/signal.c:789
 handle_signal_work kernel/entry/common.c:147 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0x109/0x190 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301
 do_syscall_64+0x56/0x90 arch/x86/entry/common.c:57
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 24902 Comm: syz-executor.1 Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/05 02:43 upstream 5e321ded302d 06c27ff5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in get_signal / ptrace_attach
* Struck through repros no longer work on HEAD.