syzbot


KCSAN: data-race in complete_signal / ptrace_attach (5)

Status: auto-closed as invalid on 2021/10/20 20:50
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 436d, last: 436d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in complete_signal / ptrace_attach (2) 1 740d 719d 0/24 auto-closed as invalid on 2020/12/21 12:01
upstream KCSAN: data-race in complete_signal / ptrace_attach 1 867d 867d 0/24 auto-closed as invalid on 2020/08/16 11:51
upstream KCSAN: data-race in complete_signal / ptrace_attach (4) 2 482d 502d 0/24 auto-closed as invalid on 2021/09/05 09:58
upstream KCSAN: data-race in complete_signal / ptrace_attach (3) 1 700d 700d 0/24 auto-closed as invalid on 2021/01/30 06:54

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

write to 0xffff88814782d070 of 4 bytes by task 18475 on cpu 0:
 ptrace_attach+0x243/0x510 kernel/ptrace.c:424
 __do_sys_ptrace kernel/ptrace.c:1297 [inline]
 __se_sys_ptrace+0xc1/0x1b0 kernel/ptrace.c:1277
 __x64_sys_ptrace+0x51/0x60 kernel/ptrace.c:1277
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88814782d070 of 4 bytes by task 18476 on cpu 1:
 complete_signal+0x453/0x600 kernel/signal.c:1047
 __send_signal+0x680/0x760 kernel/signal.c:1195
 send_signal+0x281/0x390 kernel/signal.c:1258
 do_send_sig_info kernel/signal.c:1307 [inline]
 do_send_specific+0x13d/0x1c0 kernel/signal.c:3919
 do_tkill kernel/signal.c:3945 [inline]
 __do_sys_tkill kernel/signal.c:3980 [inline]
 __se_sys_tkill kernel/signal.c:3974 [inline]
 __x64_sys_tkill+0xe2/0x120 kernel/signal.c:3974
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 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: 18476 Comm: syz-executor.0 Tainted: G        W         5.15.0-rc1-syzkaller #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 2021/09/15 20:42 upstream 80be5998ad63 07e953c1 .config log report info KCSAN: data-race in complete_signal / ptrace_attach
* Struck through repros no longer work on HEAD.