syzbot


KCSAN: data-race in prepare_signal / ptrace_attach (7)

Status: auto-closed as invalid on 2022/04/03 14:09
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 274d, last: 274d
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in prepare_signal / ptrace_attach (5) 2 494d 508d 0/24 auto-closed as invalid on 2021/08/26 15:59
upstream KCSAN: data-race in prepare_signal / ptrace_attach 1 888d 888d 0/24 auto-closed as invalid on 2020/07/29 00:33
upstream KCSAN: data-race in prepare_signal / ptrace_attach (6) 1 337d 337d 0/24 auto-closed as invalid on 2022/01/30 21:35
upstream KCSAN: data-race in prepare_signal / ptrace_attach (2) 3 812d 847d 0/24 auto-closed as invalid on 2020/10/13 05:51
upstream KCSAN: data-race in prepare_signal / ptrace_attach (8) 1 196d 196d 0/24 auto-closed as invalid on 2022/06/20 14:20
upstream KCSAN: data-race in prepare_signal / ptrace_attach (4) 1 579d 579d 0/24 auto-closed as invalid on 2021/06/03 07:49
upstream KCSAN: data-race in prepare_signal / ptrace_attach (3) 2 673d 707d 0/24 auto-closed as invalid on 2021/03/01 09:38

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

write to 0xffff888137f763f0 of 4 bytes by task 25370 on cpu 0:
 ptrace_attach+0x203/0x4a0 kernel/ptrace.c:422
 __do_sys_ptrace kernel/ptrace.c:1295 [inline]
 __se_sys_ptrace+0xc1/0x2d0 kernel/ptrace.c:1275
 __x64_sys_ptrace+0x51/0x60 kernel/ptrace.c:1275
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888137f763f0 of 4 bytes by task 25383 on cpu 1:
 sig_ignored kernel/signal.c:116 [inline]
 prepare_signal+0x5a1/0x7b0 kernel/signal.c:965
 __send_signal+0x64/0x790 kernel/signal.c:1085
 send_signal+0x28b/0x3a0 kernel/signal.c:1248
 do_send_sig_info+0x9b/0xe0 kernel/signal.c:1297
 do_send_specific kernel/signal.c:3915 [inline]
 do_tkill kernel/signal.c:3941 [inline]
 __do_sys_tkill kernel/signal.c:3976 [inline]
 __se_sys_tkill+0x12b/0x180 kernel/signal.c:3970
 __x64_sys_tkill+0x2d/0x40 kernel/signal.c:3970
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000 -> 0x00010001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25383 Comm: syz-executor.2 Not tainted 5.17.0-rc5-syzkaller-00306-g2293be58d6a1-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/02/27 14:08 upstream 2293be58d6a1 45a13a73 .config log report info KCSAN: data-race in prepare_signal / ptrace_attach
* Struck through repros no longer work on HEAD.