syzbot


KCSAN: data-race in copy_process / show_stat (2)

Status: auto-closed as invalid on 2020/11/28 01:56
Subsystems: kernel
[Documentation on labels]
First crash: 1560d, last: 1557d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in copy_process / show_stat (3) kernel 1 951d 951d 0/28 auto-closed as invalid on 2022/07/28 00:27
upstream KCSAN: data-race in copy_process / show_stat kernel 3 1595d 1633d 0/28 auto-closed as invalid on 2020/10/21 12:32
upstream KCSAN: data-race in copy_process / show_stat (4) kernel 1 708d 708d 0/28 auto-obsoleted due to no activity on 2023/04/17 12:00

Sample crash report:
==================================================================
BUG: KCSAN: data-race in copy_process / show_stat

read-write to 0xffffffff881c62d8 of 8 bytes by task 8570 on cpu 1:
 copy_process+0x2928/0x2e70 kernel/fork.c:2296
 kernel_clone+0x14b/0x680 kernel/fork.c:2456
 __do_sys_clone kernel/fork.c:2573 [inline]
 __se_sys_clone kernel/fork.c:2557 [inline]
 __x64_sys_clone+0xc8/0xf0 kernel/fork.c:2557
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffffffff881c62d8 of 8 bytes by task 8555 on cpu 0:
 show_stat+0xc5e/0xdc0 fs/proc/stat.c:204
 seq_read+0x2de/0x890 fs/seq_file.c:208
 pde_read fs/proc/inode.c:321 [inline]
 proc_reg_read+0xe1/0x1b0 fs/proc/inode.c:331
 do_loop_readv_writev fs/read_write.c:761 [inline]
 do_iter_read+0x3b1/0x4b0 fs/read_write.c:803
 vfs_readv fs/read_write.c:921 [inline]
 do_preadv+0x139/0x210 fs/read_write.c:1013
 __do_sys_preadv fs/read_write.c:1063 [inline]
 __se_sys_preadv fs/read_write.c:1058 [inline]
 __x64_sys_preadv+0x54/0x60 fs/read_write.c:1058
 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: 8555 Comm: syz-executor.2 Not tainted 5.9.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/24 01:46 upstream 0adc313c4f20 2bb6666c .config console log report info ci2-upstream-kcsan-gce
2020/10/21 15:58 upstream c4d6fe731176 99c64d5c .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.