syzbot


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

Status: auto-closed as invalid on 2022/01/30 21:35
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 341d, last: 341d
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 498d 512d 0/24 auto-closed as invalid on 2021/08/26 15:59
upstream KCSAN: data-race in prepare_signal / ptrace_attach 1 892d 892d 0/24 auto-closed as invalid on 2020/07/29 00:33
upstream KCSAN: data-race in prepare_signal / ptrace_attach (2) 3 816d 851d 0/24 auto-closed as invalid on 2020/10/13 05:51
upstream KCSAN: data-race in prepare_signal / ptrace_attach (7) 1 278d 278d 0/24 auto-closed as invalid on 2022/04/03 14:09
upstream KCSAN: data-race in prepare_signal / ptrace_attach (8) 1 200d 200d 0/24 auto-closed as invalid on 2022/06/20 14:20
upstream KCSAN: data-race in prepare_signal / ptrace_attach (4) 1 582d 582d 0/24 auto-closed as invalid on 2021/06/03 07:49
upstream KCSAN: data-race in prepare_signal / ptrace_attach (3) 2 676d 711d 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 0xffff88812fa8a030 of 4 bytes by task 12750 on cpu 1:
 ptrace_attach+0x217/0x4c0 kernel/ptrace.c:424
 __do_sys_ptrace kernel/ptrace.c:1297 [inline]
 __se_sys_ptrace+0xc1/0x2d0 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/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812fa8a030 of 4 bytes by task 12751 on cpu 0:
 prepare_signal+0x27b/0x670 kernel/signal.c:930
 __send_signal+0x64/0x790 kernel/signal.c:1082
 send_signal+0x28b/0x3a0 kernel/signal.c:1245
 do_send_sig_info+0x9b/0xe0 kernel/signal.c:1294
 group_send_sig_info kernel/signal.c:1441 [inline]
 kill_pid_info+0x7f/0x100 kernel/signal.c:1475
 kill_proc_info kernel/signal.c:1492 [inline]
 do_rt_sigqueueinfo kernel/signal.c:3977 [inline]
 __do_sys_rt_sigqueueinfo kernel/signal.c:3993 [inline]
 __se_sys_rt_sigqueueinfo+0xc8/0x110 kernel/signal.c:3986
 __x64_sys_rt_sigqueueinfo+0x3f/0x50 kernel/signal.c:3986
 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: 0 PID: 12751 Comm: syz-executor.3 Not tainted 5.16.0-rc6-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/12/26 21:33 upstream 438645193e59 e4f103c4 .config log report info KCSAN: data-race in prepare_signal / ptrace_attach
* Struck through repros no longer work on HEAD.