syzbot


KCSAN: data-race in detach_pid / proc_pid_status (2)

Status: auto-closed as invalid on 2021/02/05 23:49
Subsystems: kernel
[Documentation on labels]
First crash: 1218d, last: 1218d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in detach_pid / proc_pid_status (3) kernel 1 1112d 1112d 0/26 auto-closed as invalid on 2021/05/23 14:20
upstream KCSAN: data-race in detach_pid / proc_pid_status kernel 1 1288d 1288d 0/26 auto-closed as invalid on 2020/11/28 03:16

Sample crash report:
==================================================================
BUG: KCSAN: data-race in detach_pid / proc_pid_status

write to 0xffff88812d5bd5b8 of 8 bytes by task 4893 on cpu 1:
 __change_pid kernel/pid.c:347 [inline]
 detach_pid+0xd7/0x160 kernel/pid.c:358
 __unhash_process kernel/exit.c:74 [inline]
 __exit_signal kernel/exit.c:147 [inline]
 release_task+0x610/0xd30 kernel/exit.c:198
 wait_task_zombie kernel/exit.c:1105 [inline]
 wait_consider_task+0xf89/0x1820 kernel/exit.c:1332
 do_wait_thread kernel/exit.c:1395 [inline]
 do_wait+0x1b1/0x4e0 kernel/exit.c:1466
 kernel_wait4+0x13c/0x1a0 kernel/exit.c:1628
 __do_sys_wait4 kernel/exit.c:1656 [inline]
 __se_sys_wait4 kernel/exit.c:1652 [inline]
 __x64_sys_wait4+0x7a/0x100 kernel/exit.c:1652
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812d5bd5b8 of 8 bytes by task 4877 on cpu 0:
 pid_alive include/linux/sched.h:1439 [inline]
 task_state fs/proc/array.c:164 [inline]
 proc_pid_status+0xb1/0x13e0 fs/proc/array.c:443
 proc_single_show+0x84/0x100 fs/proc/base.c:775
 seq_read_iter+0x2d8/0x8e0 fs/seq_file.c:227
 seq_read+0x221/0x260 fs/seq_file.c:159
 vfs_read+0x154/0x5c0 fs/read_write.c:494
 ksys_read+0xce/0x180 fs/read_write.c:634
 __do_sys_read fs/read_write.c:644 [inline]
 __se_sys_read fs/read_write.c:642 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:642
 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: 4877 Comm: systemd-journal Not tainted 5.11.0-rc1-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
2021/01/01 23:49 upstream f6e1ea196492 79264ae3 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.