syzbot


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

Status: auto-closed as invalid on 2022/06/20 15:46
Subsystems: fs
[Documentation on labels]
First crash: 912d, last: 850d
Similar bugs (17)
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 951d 951d 0/27 auto-closed as invalid on 2022/03/12 00:21
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (17) fs 1 147d 147d 0/27 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 1186d 1219d 0/27 auto-closed as invalid on 2021/07/19 11:09
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (3) fs 6 1558d 1598d 0/27 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (2) fs 9 1688d 1757d 0/27 auto-closed as invalid on 2020/04/08 20:57
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (5) fs 1 1407d 1375d 0/27 auto-closed as invalid on 2020/12/21 11:58
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (15) fs 13 359d 419d 0/27 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 455d 455d 0/27 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 1487d 1506d 0/27 auto-closed as invalid on 2020/09/21 06:01
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (11) fs 1 810d 810d 0/27 auto-closed as invalid on 2022/07/30 10:14
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (6) fs 1 1278d 1278d 0/27 auto-closed as invalid on 2021/04/18 21:16
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (16) fs 6 256d 278d 0/27 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 715d 760d 0/27 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 989d 1146d 0/27 auto-closed as invalid on 2022/02/01 06:29
upstream KCSAN: data-race in __dentry_kill / d_set_d_op fs 3 1768d 1775d 0/27 closed as invalid on 2019/11/19 14:14
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (18) fs 4 34d 77d 0/27 moderation: reported on 2024/06/27 06:48
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (13) fs 4 566d 625d 0/27 auto-obsoleted due to no activity on 2023/04/04 19:35

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

read-write to 0xffff8881263fa480 of 4 bytes by task 1837 on cpu 0:
 d_set_d_op+0x14c/0x1e0 fs/dcache.c:1936
 simple_lookup+0x78/0x90 fs/libfs.c:74
 lookup_open fs/namei.c:3308 [inline]
 open_last_lookups fs/namei.c:3400 [inline]
 path_openat+0xb0f/0x1b30 fs/namei.c:3606
 do_filp_open+0x105/0x220 fs/namei.c:3636
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1213
 do_sys_open fs/open.c:1229 [inline]
 __do_sys_openat fs/open.c:1245 [inline]
 __se_sys_openat fs/open.c:1240 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1240
 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+0x44/0xae

read to 0xffff8881263fa480 of 4 bytes by task 1840 on cpu 1:
 dentry_unlist fs/dcache.c:572 [inline]
 __dentry_kill+0x1e7/0x450 fs/dcache.c:603
 dentry_kill+0x8d/0x1e0
 dput+0x11e/0x1f0 fs/dcache.c:913
 handle_mounts fs/namei.c:1552 [inline]
 step_into+0x1c7/0x760 fs/namei.c:1850
 open_last_lookups fs/namei.c:3423 [inline]
 path_openat+0xf6c/0x1b30 fs/namei.c:3606
 do_filp_open+0x105/0x220 fs/namei.c:3636
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1213
 do_sys_open fs/open.c:1229 [inline]
 __do_sys_openat fs/open.c:1245 [inline]
 __se_sys_openat fs/open.c:1240 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1240
 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+0x44/0xae

value changed: 0x10000000 -> 0x00000008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1840 Comm: syz-executor.4 Not tainted 5.18.0-rc7-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/16 15:46 upstream 42226c989789 744a39e2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_set_d_op
2022/04/26 08:37 upstream d615b5416f8a 1fa34c1b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_set_d_op
2022/04/03 18:58 upstream be2d3ecedd99 79a2a8fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_set_d_op
2022/03/25 15:25 upstream 34af78c4e616 89bc8608 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_set_d_op
2022/03/15 20:38 upstream 56e337f2cf13 9e8eaa75 .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.