syzbot


KCSAN: data-race in do_task_stat / load_elf_binary

Status: auto-closed as invalid on 2021/05/17 09:31
Subsystems: fs
[Documentation on labels]
First crash: 1083d, last: 1083d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_task_stat / load_elf_binary

write to 0xffff88810d040dd8 of 8 bytes by task 8397 on cpu 1:
 load_elf_binary+0x24cd/0x2790 fs/binfmt_elf.c:1265
 search_binary_handler fs/exec.c:1720 [inline]
 exec_binprm+0x1d9/0x720 fs/exec.c:1761
 bprm_execve+0x3b8/0x530 fs/exec.c:1830
 do_execveat_common+0x621/0x6e0 fs/exec.c:1919
 do_execve fs/exec.c:1987 [inline]
 __do_sys_execve fs/exec.c:2063 [inline]
 __se_sys_execve fs/exec.c:2058 [inline]
 __x64_sys_execve+0x56/0x70 fs/exec.c:2058
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88810d040dd8 of 8 bytes by task 1 on cpu 0:
 do_task_stat+0xf24/0x10c0 fs/proc/array.c:633
 proc_tgid_stat+0x2f/0x40 fs/proc/array.c:663
 proc_single_show+0x84/0x100 fs/proc/base.c:774
 seq_read_iter+0x2ef/0x910 fs/seq_file.c:227
 seq_read+0x221/0x260 fs/seq_file.c:159
 vfs_read+0x154/0x5d0 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/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1 Comm: systemd Not tainted 5.12.0-rc6-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/04/09 17:16 upstream 17e7124aad76 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_task_stat / load_elf_binary
* Struck through repros no longer work on HEAD.