syzbot


KCSAN: data-race in ptrace_check_attach / zap_other_threads (5)

Status: auto-closed as invalid on 2021/07/05 18:29
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 473d, last: 432d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ptrace_check_attach / zap_other_threads 1 735d 735d 0/23 auto-closed as invalid on 2020/09/05 20:28
upstream KCSAN: data-race in ptrace_check_attach / zap_other_threads (2) 1 700d 700d 0/23 auto-closed as invalid on 2020/10/10 22:50
upstream KCSAN: data-race in ptrace_check_attach / zap_other_threads (3) 1 641d 608d 0/23 auto-closed as invalid on 2020/12/21 11:57
upstream KCSAN: data-race in ptrace_check_attach / zap_other_threads (4) 1 530d 530d 0/23 auto-closed as invalid on 2021/03/30 13:55

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ptrace_check_attach / zap_other_threads

write to 0xffff888140dc1518 of 8 bytes by task 30212 on cpu 1:
 task_clear_jobctl_pending kernel/signal.c:342 [inline]
 zap_other_threads+0x98/0x1e0 kernel/signal.c:1398
 do_group_exit+0x145/0x1a0 kernel/exit.c:918
 __do_sys_exit_group+0xb/0x10 kernel/exit.c:934
 __se_sys_exit_group+0x5/0x10 kernel/exit.c:932
 __x64_sys_exit_group+0x16/0x20 kernel/exit.c:932
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888140dc1518 of 8 bytes by task 30218 on cpu 0:
 ptrace_freeze_traced kernel/ptrace.c:194 [inline]
 ptrace_check_attach+0x144/0x2c0 kernel/ptrace.c:264
 __do_sys_ptrace kernel/ptrace.c:1307 [inline]
 __se_sys_ptrace+0xd8/0x1b0 kernel/ptrace.c:1277
 __x64_sys_ptrace+0x51/0x60 kernel/ptrace.c:1277
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000010000 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 30218 Comm: syz-executor.4 Tainted: G        W         5.13.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (9):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/05/31 18:25 upstream c2131f7e73c9 032639db .config log report info KCSAN: data-race in ptrace_check_attach / zap_other_threads
ci2-upstream-kcsan-gce 2021/05/23 05:04 upstream 23d729263037 3c7fef33 .config log report info KCSAN: data-race in ptrace_check_attach / zap_other_threads
ci2-upstream-kcsan-gce 2021/05/21 20:13 upstream 79a106fc6585 3c7fef33 .config log report info KCSAN: data-race in ptrace_check_attach / zap_other_threads
ci2-upstream-kcsan-gce 2021/05/15 05:34 upstream bd3c9cdb21a2 8bdd5343 .config log report info KCSAN: data-race in ptrace_check_attach / zap_other_threads
ci2-upstream-kcsan-gce 2021/05/08 19:29 upstream dd860052c99b bc5434be .config log report info KCSAN: data-race in ptrace_check_attach / zap_other_threads
ci2-upstream-kcsan-gce 2021/04/27 00:10 upstream 9f4ad9e425a1 8ee2dea6 .config log report info KCSAN: data-race in ptrace_check_attach / zap_other_threads
ci2-upstream-kcsan-gce 2021/04/22 21:22 upstream 16fc44d6387e 33c28d03 .config log report info KCSAN: data-race in ptrace_check_attach / zap_other_threads
ci2-upstream-kcsan-gce 2021/04/21 08:21 upstream 1fe5501ba1ab 95777977 .config log report info KCSAN: data-race in ptrace_check_attach / zap_other_threads
ci2-upstream-kcsan-gce 2021/04/21 07:21 upstream 1fe5501ba1ab c0ced557 .config log report info KCSAN: data-race in ptrace_check_attach / zap_other_threads