syzbot


KCSAN: data-race in ___d_drop / __d_lookup_rcu (2)

Status: auto-obsoleted due to no activity on 2024/02/14 17:51
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+20600f628d785b116b74@syzkaller.appspotmail.com
First crash: 570d, last: 570d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ___d_drop / __d_lookup_rcu fs 6 1 777d 773d 0/29 auto-obsoleted due to no activity on 2023/07/22 13:59

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ___d_drop / __d_lookup_rcu

read to 0xffff88810054fe50 of 8 bytes by task 3412 on cpu 0:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:336 [inline]
 __d_lookup_rcu+0x120/0x290 fs/dcache.c:2401
 lookup_fast+0x8e/0x290 fs/namei.c:1629
 walk_component fs/namei.c:1998 [inline]
 link_path_walk+0x3f4/0x7e0 fs/namei.c:2329
 path_openat+0x1a0/0x1d30 fs/namei.c:3775
 do_filp_open+0xf6/0x200 fs/namei.c:3806
 do_sys_openat2+0xab/0x110 fs/open.c:1404
 do_sys_open fs/open.c:1419 [inline]
 __do_sys_openat fs/open.c:1435 [inline]
 __se_sys_openat fs/open.c:1430 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1430
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

write to 0xffff88810054fe50 of 8 bytes by task 3119 on cpu 1:
 __hlist_bl_del include/linux/list_bl.h:128 [inline]
 ___d_drop+0x106/0x220 fs/dcache.c:502
 __d_drop fs/dcache.c:509 [inline]
 __dentry_kill+0x147/0x4a0 fs/dcache.c:604
 shrink_dentry_list+0x207/0x380 fs/dcache.c:1203
 shrink_dcache_parent+0x44/0x1a0
 vfs_rmdir+0x283/0x2f0 fs/namei.c:4190
 do_rmdir+0x194/0x320 fs/namei.c:4245
 __do_sys_unlinkat fs/namei.c:4421 [inline]
 __se_sys_unlinkat fs/namei.c:4415 [inline]
 __x64_sys_unlinkat+0xa4/0xb0 fs/namei.c:4415
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3119 Comm: syz-executor.4 Not tainted 6.7.0-syzkaller-01727-gab27740f7665 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/10 17:51 upstream ab27740f7665 04815ef1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ___d_drop / __d_lookup_rcu
* Struck through repros no longer work on HEAD.