syzbot


KCSAN: data-race in __d_drop / __d_lookup (4)

Status: auto-obsoleted due to no activity on 2022/12/10 21:46
Subsystems: fs
[Documentation on labels]
First crash: 537d, last: 537d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __d_drop / __d_lookup (3) fs 1 1067d 1067d 0/26 auto-closed as invalid on 2021/06/28 08:08
upstream KCSAN: data-race in __d_drop / __d_lookup fs 1 1296d 1296d 0/26 auto-closed as invalid on 2020/11/11 19:25
upstream KCSAN: data-race in __d_drop / __d_lookup (2) fs 1 1163d 1163d 0/26 auto-closed as invalid on 2021/03/24 15:45

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __d_drop / __d_lookup

write to 0xffff88810616a490 of 8 bytes by task 1818 on cpu 1:
 __hlist_bl_del include/linux/list_bl.h:128 [inline]
 ___d_drop fs/dcache.c:500 [inline]
 __d_drop+0x116/0x240 fs/dcache.c:507
 __dentry_kill+0x12f/0x450 fs/dcache.c:602
 shrink_dentry_list+0x20f/0x380 fs/dcache.c:1201
 shrink_dcache_parent+0x4d/0x1b0
 vfs_rmdir+0x27f/0x2f0 fs/namei.c:4124
 do_rmdir+0x178/0x300 fs/namei.c:4181
 __do_sys_unlinkat fs/namei.c:4361 [inline]
 __se_sys_unlinkat fs/namei.c:4355 [inline]
 __x64_sys_unlinkat+0xa0/0xb0 fs/namei.c:4355
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810616a490 of 8 bytes by task 1435 on cpu 0:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:335 [inline]
 __d_lookup+0x14d/0x3d0 fs/dcache.c:2491
 lookup_fast+0x4b/0x270 fs/namei.c:1643
 open_last_lookups fs/namei.c:3450 [inline]
 path_openat+0x457/0x1b00 fs/namei.c:3710
 do_filp_open+0x105/0x220 fs/namei.c:3740
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1337
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xffff88811f6fb6c8 -> 0xffff88823775dc30

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1435 Comm: udevd Not tainted 6.1.0-rc3-syzkaller-00288-gb208b9fbbcba-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/05 21:44 upstream b208b9fbbcba 6d752409 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __d_drop / __d_lookup
* Struck through repros no longer work on HEAD.