syzbot


KCSAN: data-race in load_elf_binary / task_dump_owner

Status: auto-closed as invalid on 2020/04/15 23:13
Subsystems: fs
[Documentation on labels]
First crash: 1818d, last: 1818d

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

write to 0xffff888095a130e4 of 4 bytes by task 25373 on cpu 0:
 load_elf_binary+0x716/0x2ef0 fs/binfmt_elf.c:857
 search_binary_handler fs/exec.c:1658 [inline]
 search_binary_handler+0x127/0x420 fs/exec.c:1635
 exec_binprm fs/exec.c:1701 [inline]
 __do_execve_file.isra.0+0xb6a/0x1140 fs/exec.c:1821
 do_execveat_common fs/exec.c:1867 [inline]
 do_execve fs/exec.c:1884 [inline]
 __do_sys_execve fs/exec.c:1960 [inline]
 __se_sys_execve fs/exec.c:1955 [inline]
 __x64_sys_execve+0x62/0x80 fs/exec.c:1955
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888095a130e4 of 4 bytes by task 25269 on cpu 1:
 task_dump_owner+0x43/0x260 fs/proc/base.c:1698
 proc_pid_make_inode+0x115/0x150 fs/proc/base.c:1772
 proc_pid_instantiate+0x45/0x110 fs/proc/base.c:3227
 proc_fill_cache+0x1db/0x290 fs/proc/base.c:1900
 proc_pid_readdir+0x1c4/0x423 fs/proc/base.c:3349
 proc_root_readdir+0x8f/0xb0 fs/proc/root.c:263
 iterate_dir+0x312/0x380 fs/readdir.c:65
 __do_sys_getdents fs/readdir.c:285 [inline]
 __se_sys_getdents fs/readdir.c:266 [inline]
 __x64_sys_getdents+0x14b/0x280 fs/readdir.c:266
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25269 Comm: ps Not tainted 5.5.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
2020/02/05 23:09 https://github.com/google/ktsan.git kcsan 245a43005292 662cf49a .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.