syzbot


KCSAN: data-race in flush_old_exec / get_task_mm

Status: closed as invalid on 2019/11/19 13:24
Subsystems: fs
[Documentation on labels]
First crash: 1637d, last: 1637d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in flush_old_exec / get_task_mm

write to 0xffff8880a516a124 of 4 bytes by task 7535 on cpu 1:
 flush_old_exec fs/exec.c:1294 [inline]
 flush_old_exec+0x6b8/0xfd0 fs/exec.c:1258
 load_elf_binary+0x69a/0x2ec0 fs/binfmt_elf.c:847
 search_binary_handler fs/exec.c:1659 [inline]
 search_binary_handler+0x127/0x420 fs/exec.c:1636
 exec_binprm fs/exec.c:1702 [inline]
 __do_execve_file.isra.0+0xb76/0x11d0 fs/exec.c:1822
 do_execveat_common fs/exec.c:1868 [inline]
 do_execve fs/exec.c:1885 [inline]
 __do_sys_execve fs/exec.c:1961 [inline]
 __se_sys_execve fs/exec.c:1956 [inline]
 __x64_sys_execve+0x62/0x80 fs/exec.c:1956
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880a516a124 of 4 bytes by task 7529 on cpu 0:
 get_task_mm+0x4f/0xa0 kernel/fork.c:1209
 proc_pid_status+0x4a/0x1000 fs/proc/array.c:407
 proc_single_show+0x89/0xe0 fs/proc/base.c:756
 seq_read+0x350/0x960 fs/seq_file.c:229
 __vfs_read+0x67/0xc0 fs/read_write.c:425
 vfs_read fs/read_write.c:461 [inline]
 vfs_read+0x143/0x2c0 fs/read_write.c:446
 ksys_read+0xd5/0x1b0 fs/read_write.c:587
 __do_sys_read fs/read_write.c:597 [inline]
 __se_sys_read fs/read_write.c:595 [inline]
 __x64_sys_read+0x4c/0x60 fs/read_write.c:595
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7529 Comm: ps Not tainted 5.4.0-rc3+ #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
2019/10/30 07:21 https://github.com/google/ktsan.git kcsan 05f2236801fe 5ea87a66 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.