syzbot


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

Status: auto-obsoleted due to no activity on 2023/04/04 19:35
Subsystems: fs
[Documentation on labels]
First crash: 491d, last: 432d
Similar bugs (16)
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 817d 817d 0/26 auto-closed as invalid on 2022/03/12 00:21
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (17) fs 1 14d 14d 0/26 moderation: reported on 2024/04/18 05:15
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (7) fs 2 1053d 1086d 0/26 auto-closed as invalid on 2021/07/19 11:09
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (3) fs 6 1425d 1465d 0/26 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (2) fs 9 1554d 1623d 0/26 auto-closed as invalid on 2020/04/08 20:57
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (5) fs 1 1273d 1242d 0/26 auto-closed as invalid on 2020/12/21 11:58
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (10) fs 5 716d 778d 0/26 auto-closed as invalid on 2022/06/20 15:46
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (15) fs 13 225d 285d 0/26 auto-obsoleted due to no activity on 2023/10/24 14:04
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (14) fs 1 321d 321d 0/26 auto-obsoleted due to no activity on 2023/07/21 00:16
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (4) fs 3 1354d 1373d 0/26 auto-closed as invalid on 2020/09/21 06:01
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (11) fs 1 677d 677d 0/26 auto-closed as invalid on 2022/07/30 10:14
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (6) fs 1 1144d 1144d 0/26 auto-closed as invalid on 2021/04/18 21:16
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (16) fs 6 123d 144d 0/26 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 581d 627d 0/26 auto-obsoleted due to no activity on 2022/11/02 16:09
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (8) fs 13 856d 1013d 0/26 auto-closed as invalid on 2022/02/01 06:29
upstream KCSAN: data-race in __dentry_kill / d_set_d_op fs 3 1635d 1642d 0/26 closed as invalid on 2019/11/19 14:14

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

read-write to 0xffff888142662d80 of 4 bytes by task 3310 on cpu 1:
 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:1686
 lookup_slow+0x3c/0x60 fs/namei.c:1703
 walk_component+0x1ec/0x230 fs/namei.c:1994
 lookup_last fs/namei.c:2451 [inline]
 path_lookupat+0x10a/0x2a0 fs/namei.c:2475
 filename_lookup+0x126/0x300 fs/namei.c:2504
 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 0xffff888142662d80 of 4 bytes by task 3882 on cpu 0:
 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:1549 [inline]
 step_into+0x21a/0x800 fs/namei.c:1832
 walk_component+0x164/0x230 fs/namei.c:2000
 lookup_last fs/namei.c:2451 [inline]
 path_lookupat+0x10a/0x2a0 fs/namei.c:2475
 filename_lookup+0x126/0x300 fs/namei.c:2504
 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: 0 PID: 3882 Comm: udevd Not tainted 6.2.0-syzkaller-09238-gd2980d8d8265-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/24 16:41 upstream d2980d8d8265 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_set_d_op
2023/02/18 17:44 upstream 38f8ccde04a3 d02e9a70 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_set_d_op
2023/02/04 23:49 upstream db27c22251e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_set_d_op
2022/12/27 18:48 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_set_d_op
* Struck through repros no longer work on HEAD.