syzbot


KCSAN: data-race in d_lru_add / path_openat

Status: auto-closed as invalid on 2020/05/08 08:47
Subsystems: fs
[Documentation on labels]
First crash: 1517d, last: 1517d

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

write to 0xffff8880b1d939c0 of 4 bytes by task 23153 on cpu 0:
 d_lru_add+0x50/0xf0 fs/dcache.c:400
 retain_dentry fs/dcache.c:653 [inline]
 dput+0x3f4/0x700 fs/dcache.c:854
 __fput+0x28c/0x4f0 fs/file_table.c:293
 ____fput+0x1b/0x30 fs/file_table.c:313
 task_work_run+0xf5/0x130 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2ae/0x2c0 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:278 [inline]
 do_syscall_64+0x36e/0x390 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b1d939c0 of 4 bytes by task 23155 on cpu 1:
 d_is_symlink include/linux/dcache.h:419 [inline]
 step_into fs/namei.c:1878 [inline]
 do_last fs/namei.c:3455 [inline]
 path_openat+0x377/0x2f70 fs/namei.c:3607
 do_filp_open+0x11e/0x1b0 fs/namei.c:3637
 do_sys_openat2+0x4f5/0x620 fs/open.c:1149
 do_sys_open+0xa2/0x110 fs/open.c:1165
 ksys_open include/linux/syscalls.h:1386 [inline]
 __do_sys_open fs/open.c:1171 [inline]
 __se_sys_open fs/open.c:1169 [inline]
 __x64_sys_open+0x50/0x60 fs/open.c:1169
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23155 Comm: syz-executor.1 Not tainted 5.6.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/28 08:42 https://github.com/google/ktsan.git kcsan 766d004d1b85 c88c7b75 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.