syzbot


KCSAN: data-race in lookup_fast / shrink_dentry_list (12)

Status: moderation: reported on 2025/11/03 01:39
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+ade48026cfd8dbd56f15@syzkaller.appspotmail.com
First crash: 18h15m, last: 18h15m
Similar bugs (11)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in lookup_fast / shrink_dentry_list (9) fs 6 1 900d 900d 0/29 auto-obsoleted due to no activity on 2023/06/21 20:05
upstream KCSAN: data-race in lookup_fast / shrink_dentry_list (6) fs 6 1 1208d 1208d 0/29 auto-closed as invalid on 2022/08/18 12:57
upstream KCSAN: data-race in lookup_fast / shrink_dentry_list (4) fs 6 1 1679d 1679d 0/29 auto-closed as invalid on 2021/05/04 09:30
upstream KCSAN: data-race in lookup_fast / shrink_dentry_list (10) fs 6 2 652d 654d 0/29 auto-obsoleted due to no activity on 2024/02/25 15:26
upstream KCSAN: data-race in lookup_fast / shrink_dentry_list (2) fs 6 1 1829d 1829d 0/29 auto-closed as invalid on 2020/12/05 11:21
upstream KCSAN: data-race in lookup_fast / shrink_dentry_list (11) fs 6 2 559d 563d 0/29 auto-obsoleted due to no activity on 2024/05/27 20:04
upstream KCSAN: data-race in lookup_fast / shrink_dentry_list (3) fs 6 2 1736d 1765d 0/29 auto-closed as invalid on 2021/03/08 10:39
upstream KCSAN: data-race in lookup_fast / shrink_dentry_list (8) fs 6 1 963d 963d 0/29 auto-obsoleted due to no activity on 2023/04/27 01:35
upstream KCSAN: data-race in lookup_fast / shrink_dentry_list (7) fs 6 1 1170d 1170d 0/29 auto-closed as invalid on 2022/09/24 23:48
upstream KCSAN: data-race in lookup_fast / shrink_dentry_list (5) fs 6 1 1529d 1529d 0/29 auto-closed as invalid on 2021/10/01 10:16
upstream KCSAN: data-race in lookup_fast / shrink_dentry_list fs 6 3 1887d 1912d 0/29 auto-closed as invalid on 2020/10/08 14:19

Sample crash report:
==================================================================
BUG: KCSAN: data-race in lookup_fast / shrink_dentry_list

read-write to 0xffff8881056e6240 of 4 bytes by task 12359 on cpu 0:
 d_shrink_del fs/dcache.c:515 [inline]
 shrink_dentry_list+0x22d/0x3d0 fs/dcache.c:1133
 shrink_dcache_sb+0x14f/0x280 fs/dcache.c:1261
 reconfigure_super+0x46a/0x580 fs/super.c:1054
 do_remount fs/namespace.c:3279 [inline]
 path_mount+0xad2/0xb70 fs/namespace.c:4029
 do_mount fs/namespace.c:4050 [inline]
 __do_sys_mount fs/namespace.c:4238 [inline]
 __se_sys_mount+0x28c/0x2e0 fs/namespace.c:4215
 __x64_sys_mount+0x67/0x80 fs/namespace.c:4215
 x64_sys_call+0x2b51/0x3000 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881056e6240 of 4 bytes by task 11791 on cpu 1:
 d_revalidate fs/namei.c:928 [inline]
 lookup_fast+0x72/0x320 fs/namei.c:1777
 lookup_fast_for_open fs/namei.c:3833 [inline]
 open_last_lookups fs/namei.c:3866 [inline]
 path_openat+0x43c/0x2170 fs/namei.c:4131
 do_filp_open+0x109/0x230 fs/namei.c:4161
 do_sys_openat2+0xa6/0x110 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_openat fs/open.c:1468 [inline]
 __se_sys_openat fs/open.c:1463 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1463
 x64_sys_call+0x2eab/0x3000 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00240444 -> 0x00200044

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 11791 Comm: syz-executor Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/03 01:38 upstream 6146a0f1dfae 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in lookup_fast / shrink_dentry_list
* Struck through repros no longer work on HEAD.