syzbot


KCSAN: data-race in do_brk_flags / task_mem

Status: auto-closed as invalid on 2020/03/30 11:20
Subsystems: fs
[Documentation on labels]
First crash: 1591d, last: 1551d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_brk_flags / task_mem

read to 0xffff8880b8ac06c0 of 8 bytes by task 27995 on cpu 1:
 task_mem+0xd0/0x450 fs/proc/task_mmu.c:46
 proc_pid_status+0x825/0x1000 fs/proc/array.c:416
 proc_single_show+0x92/0x120 fs/proc/base.c:756
 seq_read+0x350/0x9d0 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/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8880b8ac06c0 of 8 bytes by task 27950 on cpu 0:
 do_brk_flags+0x3cb/0x690 mm/mmap.c:3045
 vm_brk_flags+0x121/0x1c0 mm/mmap.c:3070
 set_brk+0xdf/0x100 fs/binfmt_elf.c:112
 load_elf_binary+0x11e1/0x2ef0 fs/binfmt_elf.c:1047
 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

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 27950 Comm: ifdown Not tainted 5.5.0-rc1-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/01/20 11:19 https://github.com/google/ktsan.git kcsan 245a43005292 c40da18c .config console log report ci2-upstream-kcsan-gce
2019/12/11 21:40 https://github.com/google/ktsan.git kcsan ef798c30ba4e 0d368675 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.