syzbot


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

Status: auto-closed as invalid on 2020/12/21 12:01
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+d33cd1e392a2a2a90c70@syzkaller.appspotmail.com
First crash: 1256d, last: 1256d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in complete_signal / ptrace_attach (5) kernel 1 952d 952d 0/26 auto-closed as invalid on 2021/10/20 20:50
upstream KCSAN: data-race in complete_signal / ptrace_attach kernel 1 1382d 1382d 0/26 auto-closed as invalid on 2020/08/16 11:51
upstream KCSAN: data-race in complete_signal / ptrace_attach (4) kernel 2 997d 1017d 0/26 auto-closed as invalid on 2021/09/05 09:58
upstream KCSAN: data-race in complete_signal / ptrace_attach (3) kernel 1 1215d 1215d 0/26 auto-closed as invalid on 2021/01/30 06:54

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

write to 0xffff888137010068 of 4 bytes by task 18535 on cpu 1:
 ptrace_attach+0x217/0x4b0 kernel/ptrace.c:413
 __do_sys_ptrace kernel/ptrace.c:1262 [inline]
 __se_sys_ptrace+0xc1/0x2e0 kernel/ptrace.c:1242
 __x64_sys_ptrace+0x51/0x60 kernel/ptrace.c:1242
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888137010068 of 4 bytes by task 18538 on cpu 0:
 complete_signal+0x455/0x5f0 kernel/signal.c:1034
 __send_signal+0x666/0x780 kernel/signal.c:1181
 send_signal+0x39f/0x3d0 kernel/signal.c:1242
 do_send_sig_info+0x9b/0xe0 kernel/signal.c:1291
 do_send_specific kernel/signal.c:3799 [inline]
 do_tkill kernel/signal.c:3825 [inline]
 __do_sys_tkill kernel/signal.c:3860 [inline]
 __se_sys_tkill+0x12b/0x180 kernel/signal.c:3854
 __x64_sys_tkill+0x2d/0x40 kernel/signal.c:3854
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 18538 Comm: syz-executor.3 Not tainted 5.10.0-rc3-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
2020/11/15 18:37 upstream 0062442ecfef 1bf9a662 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.