syzbot


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

Status: auto-obsoleted due to no activity on 2024/09/13 03:18
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+eb9586e8da0284754dfa@syzkaller.appspotmail.com
First crash: 476d, last: 433d
Similar bugs (19)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (9) fs 6 1 1349d 1349d 0/29 auto-closed as invalid on 2022/03/12 00:21
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (17) fs 6 1 546d 546d 0/29 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 6 2 1585d 1618d 0/29 auto-closed as invalid on 2021/07/19 11:09
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (3) fs 6 6 1957d 1997d 0/29 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (2) fs 6 9 2086d 2155d 0/29 auto-closed as invalid on 2020/04/08 20:57
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (5) fs 6 1 1805d 1774d 0/29 auto-closed as invalid on 2020/12/21 11:58
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (10) fs 6 5 1248d 1310d 0/29 auto-closed as invalid on 2022/06/20 15:46
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (15) fs 6 13 757d 817d 0/29 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 6 1 853d 853d 0/29 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 6 3 1886d 1905d 0/29 auto-closed as invalid on 2020/09/21 06:01
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (11) fs 6 1 1209d 1209d 0/29 auto-closed as invalid on 2022/07/30 10:14
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (6) fs 6 1 1676d 1676d 0/29 auto-closed as invalid on 2021/04/18 21:16
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (16) fs 6 6 655d 676d 0/29 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 6 3 1113d 1159d 0/29 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 6 3 115d 190d 0/29 auto-obsoleted due to no activity on 2025/08/18 00:28
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (8) fs 6 13 1388d 1545d 0/29 auto-closed as invalid on 2022/02/01 06:29
upstream KCSAN: data-race in __dentry_kill / d_set_d_op fs 6 3 2167d 2174d 0/29 closed as invalid on 2019/11/19 14:14
upstream KCSAN: data-race in __dentry_kill / d_set_d_op (13) fs 6 4 964d 1023d 0/29 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 6 1 313d 313d 0/29 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 0xffff888107c93480 of 4 bytes by task 3505 on cpu 1:
 d_set_d_op+0x15b/0x1f0 fs/dcache.c:1803
 simple_lookup+0x7c/0xa0 fs/libfs.c:79
 lookup_open fs/namei.c:3556 [inline]
 open_last_lookups fs/namei.c:3647 [inline]
 path_openat+0xc5f/0x1f10 fs/namei.c:3883
 do_filp_open+0xf7/0x200 fs/namei.c:3913
 do_sys_openat2+0xab/0x120 fs/open.c:1416
 do_sys_open fs/open.c:1431 [inline]
 __do_sys_openat fs/open.c:1447 [inline]
 __se_sys_openat fs/open.c:1442 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1442
 x64_sys_call+0x1025/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888107c93480 of 4 bytes by task 3507 on cpu 0:
 dentry_unlist fs/dcache.c:580 [inline]
 __dentry_kill+0x2af/0x4c0 fs/dcache.c:624
 dput+0x5c/0xd0 fs/dcache.c:852
 handle_mounts fs/namei.c:1579 [inline]
 step_into+0x21a/0x810 fs/namei.c:1877
 open_last_lookups fs/namei.c:3674 [inline]
 path_openat+0x14f7/0x1f10 fs/namei.c:3883
 do_filp_open+0xf7/0x200 fs/namei.c:3913
 do_sys_openat2+0xab/0x120 fs/open.c:1416
 do_sys_open fs/open.c:1431 [inline]
 __do_sys_openat fs/open.c:1447 [inline]
 __se_sys_openat fs/open.c:1442 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1442
 x64_sys_call+0x1025/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x10000000 -> 0x00000008

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3507 Comm: udevd Not tainted 6.11.0-rc2-syzkaller-00042-gcf6d429eb656 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/09 03:18 upstream cf6d429eb656 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_set_d_op
2024/08/04 10:39 upstream defaf1a2113a 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_set_d_op
2024/07/23 17:11 upstream 66ebbdfdeb09 e50e8da5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_set_d_op
2024/06/27 06:47 upstream afcd48134c58 c6d33a01 .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.