syzbot


KCSAN: data-race in __dput_to_list / link_path_walk

Status: auto-closed as invalid on 2021/09/08 19:34
Subsystems: fs
[Documentation on labels]
First crash: 967d, last: 967d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dput_to_list / link_path_walk (4) fs 1 227d 227d 0/26 auto-obsoleted due to no activity on 2023/09/18 22:37
upstream KCSAN: data-race in __dput_to_list / link_path_walk (3) fs 1 380d 380d 0/26 auto-obsoleted due to no activity on 2023/04/25 15:20
upstream KCSAN: data-race in __dput_to_list / link_path_walk (2) fs 2 685d 719d 0/26 auto-closed as invalid on 2022/06/17 17:19

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __dput_to_list / link_path_walk

write to 0xffff888145f93b40 of 4 bytes by task 1777 on cpu 1:
 d_lru_del fs/dcache.c:412 [inline]
 __dput_to_list+0xb6/0x250 fs/dcache.c:901
 shrink_dentry_list+0x15d/0x340 fs/dcache.c:1175
 shrink_dcache_parent+0x4d/0x1c0 fs/dcache.c:1603
 vfs_rmdir+0x15c/0x2c0 fs/namei.c:3909
 do_rmdir+0x14a/0x2e0 fs/namei.c:3968
 __do_sys_rmdir fs/namei.c:3986 [inline]
 __se_sys_rmdir fs/namei.c:3984 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:3984
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888145f93b40 of 4 bytes by task 21719 on cpu 0:
 link_path_walk+0x384/0x770 fs/namei.c:2248
 path_openat+0x1a0/0x1f20 fs/namei.c:3503
 do_filp_open+0xe9/0x200 fs/namei.c:3534
 do_sys_openat2+0xa3/0x250 fs/open.c:1204
 do_sys_open fs/open.c:1220 [inline]
 __do_sys_creat fs/open.c:1294 [inline]
 __se_sys_creat fs/open.c:1288 [inline]
 __x64_sys_creat+0x62/0x80 fs/open.c:1288
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00280000 -> 0x00200100

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 21719 Comm: syz-executor.0 Not tainted 5.14.0-rc4-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
2021/08/04 19:34 upstream d5ad8ec3cfb5 b97d64c9 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dput_to_list / link_path_walk
* Struck through repros no longer work on HEAD.