syzbot


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

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

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

read-write to 0xffffffff86dfe868 of 8 bytes by task 14781 on cpu 0:
 copy_process+0x1fa5/0x2100 kernel/fork.c:2489
 kernel_clone+0x169/0x560 kernel/fork.c:2681
 __do_sys_clone kernel/fork.c:2822 [inline]
 __se_sys_clone kernel/fork.c:2806 [inline]
 __x64_sys_clone+0xdf/0x110 kernel/fork.c:2806
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffffffff86dfe868 of 8 bytes by task 14782 on cpu 1:
 show_stat+0xba7/0xcf0 fs/proc/stat.c:207
 seq_read_iter+0x2bc/0x8f0 fs/seq_file.c:230
 proc_reg_read_iter+0xe8/0x180 fs/proc/inode.c:301
 call_read_iter include/linux/fs.h:2183 [inline]
 generic_file_splice_read+0xe3/0x290 fs/splice.c:309
 do_splice_to fs/splice.c:793 [inline]
 splice_direct_to_actor+0x25a/0x5f0 fs/splice.c:865
 do_splice_direct+0x104/0x180 fs/splice.c:974
 do_sendfile+0x3b8/0x950 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0xbd/0x150 fs/read_write.c:1309
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000000000134c3 -> 0x00000000000134c4

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14782 Comm: syz-executor.3 Not tainted 6.2.0-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/20 11:29 upstream c9c3395d5e3d bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / show_stat
* Struck through repros no longer work on HEAD.