syzbot


KCSAN: data-race in d_lru_del / path_openat

Status: auto-closed as invalid on 2020/02/14 19:16
Subsystems: fs
[Documentation on labels]
First crash: 1880d, last: 1880d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in d_lru_del / path_openat

write to 0xffff88812569af00 of 4 bytes by task 1 on cpu 1:
 d_lru_del+0x5d/0xf0 fs/dcache.c:410
 select_collect+0x179/0x1a0 fs/dcache.c:1484
 d_walk+0x1b1/0x520 fs/dcache.c:1305
 shrink_dcache_parent+0xa4/0x280 fs/dcache.c:1544
 d_invalidate fs/dcache.c:1656 [inline]
 d_invalidate+0x85/0x180 fs/dcache.c:1641
 proc_flush_task_mnt fs/proc/base.c:3147 [inline]
 proc_flush_task+0x14c/0x2e0 fs/proc/base.c:3217
 release_task+0x83/0xc60 kernel/exit.c:202
 wait_task_zombie kernel/exit.c:1106 [inline]
 wait_consider_task+0x190e/0x1a10 kernel/exit.c:1333
 do_wait_thread kernel/exit.c:1396 [inline]
 do_wait+0x1c9/0x4c0 kernel/exit.c:1467
 kernel_wait4+0x156/0x240 kernel/exit.c:1639
 __do_sys_wait4+0xea/0x100 kernel/exit.c:1651
 __se_sys_wait4 kernel/exit.c:1647 [inline]
 __x64_sys_wait4+0x5e/0x80 kernel/exit.c:1647
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812569af00 of 4 bytes by task 7876 on cpu 0:
 d_is_symlink include/linux/dcache.h:419 [inline]
 step_into fs/namei.c:1763 [inline]
 do_last fs/namei.c:3373 [inline]
 path_openat+0x338/0x36e0 fs/namei.c:3525
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_open fs/open.c:1115 [inline]
 __se_sys_open fs/open.c:1110 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1110
 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: 7876 Comm: ps Not tainted 5.4.0-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
2019/12/06 19:10 https://github.com/google/ktsan.git kcsan ef798c30ba4e 85f26751 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.