syzbot


KCSAN: data-race in __dentry_kill / d_set_d_op (14)

Status: auto-obsoleted due to no activity on 2023/07/21 00:16
Subsystems: fs
[Documentation on labels]
First crash: 671d, last: 671d
Similar bugs (19)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (9) fs 1 1167d 1167d 0/28 auto-closed as invalid on 2022/03/12 00:21
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (17) fs 1 364d 364d 0/28 auto-obsoleted due to no activity on 2024/05/23 05:15
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (7) fs 2 1403d 1436d 0/28 auto-closed as invalid on 2021/07/19 11:09
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (3) fs 6 1775d 1815d 0/28 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (2) fs 9 1904d 1974d 0/28 auto-closed as invalid on 2020/04/08 20:57
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (5) fs 1 1623d 1592d 0/28 auto-closed as invalid on 2020/12/21 11:58
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (10) fs 5 1067d 1128d 0/28 auto-closed as invalid on 2022/06/20 15:46
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (15) fs 13 576d 636d 0/28 auto-obsoleted due to no activity on 2023/10/24 14:04
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (4) fs 3 1704d 1723d 0/28 auto-closed as invalid on 2020/09/21 06:01
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (11) fs 1 1027d 1027d 0/28 auto-closed as invalid on 2022/07/30 10:14
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (6) fs 1 1494d 1494d 0/28 auto-closed as invalid on 2021/04/18 21:16
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (16) fs 6 473d 494d 0/28 auto-obsoleted due to no activity on 2024/02/04 06:56
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (12) fs 3 932d 977d 0/28 auto-obsoleted due to no activity on 2022/11/02 16:09
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (20) fs 1 8d14h 8d14h 0/28 moderation: reported on 2025/04/09 04:25
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (8) fs 13 1206d 1363d 0/28 auto-closed as invalid on 2022/02/01 06:29
upstream KCSAN: data-race in __dentry_kill / d_set_d_op fs 3 1985d 1992d 0/28 closed as invalid on 2019/11/19 14:14
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (18) fs 4 251d 294d 0/28 auto-obsoleted due to no activity on 2024/09/13 03:18
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (13) fs 4 783d 842d 0/28 auto-obsoleted due to no activity on 2023/04/04 19:35
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (19) fs 1 131d 131d 0/28 auto-obsoleted due to no activity on 2025/02/01 04:42

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __dentry_kill / d_set_d_op

read-write to 0xffff8881260773c0 of 4 bytes by task 16598 on cpu 0:
 d_set_d_op+0x150/0x1e0 fs/dcache.c:1936
 simple_lookup+0x7c/0xa0 fs/libfs.c:75
 __lookup_slow+0x17a/0x230 fs/namei.c:1690
 lookup_slow+0x3c/0x60 fs/namei.c:1707
 walk_component+0x1ec/0x230 fs/namei.c:1998
 lookup_last fs/namei.c:2455 [inline]
 path_lookupat+0x10a/0x2a0 fs/namei.c:2479
 filename_lookup+0x126/0x300 fs/namei.c:2508
 vfs_statx+0xa9/0x300 fs/stat.c:238
 vfs_fstatat fs/stat.c:276 [inline]
 __do_sys_newfstatat fs/stat.c:446 [inline]
 __se_sys_newfstatat+0x8a/0x2a0 fs/stat.c:440
 __x64_sys_newfstatat+0x55/0x60 fs/stat.c:440
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff8881260773c0 of 4 bytes by task 25846 on cpu 1:
 dentry_unlist fs/dcache.c:572 [inline]
 __dentry_kill+0x237/0x4a0 fs/dcache.c:603
 dentry_kill+0x8d/0x1e0
 dput+0x118/0x1f0 fs/dcache.c:913
 handle_mounts fs/namei.c:1551 [inline]
 step_into+0x21a/0x800 fs/namei.c:1836
 walk_component+0x164/0x230 fs/namei.c:2004
 lookup_last fs/namei.c:2455 [inline]
 path_lookupat+0x10a/0x2a0 fs/namei.c:2479
 filename_lookup+0x126/0x300 fs/namei.c:2508
 vfs_statx+0xa9/0x300 fs/stat.c:238
 vfs_fstatat fs/stat.c:276 [inline]
 __do_sys_newfstatat fs/stat.c:446 [inline]
 __se_sys_newfstatat+0x8a/0x2a0 fs/stat.c:440
 __x64_sys_newfstatat+0x55/0x60 fs/stat.c:440
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x10000000 -> 0x00000008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25846 Comm: udevd Not tainted 6.4.0-rc6-syzkaller-00049-g62d8779610bb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/16 00:07 upstream 62d8779610bb f3921d4d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_set_d_op
* Struck through repros no longer work on HEAD.