syzbot


KCSAN: data-race in d_invalidate / fast_dput (4)

Status: moderation: reported on 2024/10/01 16:37
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+ece4b976a38eaf570d93@syzkaller.appspotmail.com
First crash: 50d, last: 10d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in d_invalidate / fast_dput (2) fs 1 169d 169d 0/28 auto-obsoleted due to no activity on 2024/07/09 14:03
upstream KCSAN: data-race in d_invalidate / fast_dput (3) fs 2 96d 106d 0/28 auto-obsoleted due to no activity on 2024/09/21 03:13
upstream KCSAN: data-race in d_invalidate / fast_dput fs 4 242d 289d 0/28 auto-obsoleted due to no activity on 2024/04/27 15:57

Sample crash report:
==================================================================
BUG: KCSAN: data-race in d_invalidate / fast_dput

write to 0xffff88813008a610 of 8 bytes by task 4934 on cpu 1:
 __d_drop fs/dcache.c:521 [inline]
 d_invalidate+0x5c/0x1c0 fs/dcache.c:1597
 lookup_fast+0x254/0x2a0 fs/namei.c:1697
 walk_component fs/namei.c:2049 [inline]
 link_path_walk+0x464/0x820 fs/namei.c:2418
 path_openat+0x1af/0x1fa0 fs/namei.c:3929
 do_filp_open+0xf7/0x200 fs/namei.c:3960
 do_sys_openat2+0xab/0x120 fs/open.c:1415
 do_sys_open fs/open.c:1430 [inline]
 __do_sys_openat fs/open.c:1446 [inline]
 __se_sys_openat fs/open.c:1441 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1441
 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 0xffff88813008a610 of 8 bytes by task 4932 on cpu 0:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:354 [inline]
 retain_dentry fs/dcache.c:698 [inline]
 fast_dput+0x65/0x2c0 fs/dcache.c:794
 dput+0x24/0xd0 fs/dcache.c:851
 handle_mounts fs/namei.c:1579 [inline]
 step_into+0x21a/0x810 fs/namei.c:1891
 walk_component fs/namei.c:2059 [inline]
 link_path_walk+0x54c/0x820 fs/namei.c:2418
 path_openat+0x1af/0x1fa0 fs/namei.c:3929
 do_filp_open+0xf7/0x200 fs/namei.c:3960
 do_sys_openat2+0xab/0x120 fs/open.c:1415
 do_sys_open fs/open.c:1430 [inline]
 __do_sys_openat fs/open.c:1446 [inline]
 __se_sys_openat fs/open.c:1441 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1441
 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: 0xffff8882374fa170 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4932 Comm: udevd Not tainted 6.12.0-rc6-syzkaller-00279-gde2f378f2b77 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/10 15:13 upstream de2f378f2b77 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_invalidate / fast_dput
2024/10/26 07:52 upstream 850925a8133c 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_invalidate / fast_dput
2024/10/22 21:40 upstream d12937763990 a93682b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_invalidate / fast_dput
2024/10/01 16:36 upstream e32cde8d2bd7 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_invalidate / fast_dput
* Struck through repros no longer work on HEAD.