syzbot


KCSAN: data-race in __dentry_kill / fast_dput

Status: moderation: reported on 2024/01/22 03:37
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+f4714f42412e27001a49@syzkaller.appspotmail.com
First crash: 96d, last: 13d

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

write to 0xffff8881069b8550 of 8 bytes by task 3065 on cpu 1:
 __d_drop fs/dcache.c:509 [inline]
 __dentry_kill+0x13b/0x4b0 fs/dcache.c:601
 dput+0x5c/0xd0 fs/dcache.c:845
 do_unlinkat+0x257/0x4c0 fs/namei.c:4402
 __do_sys_unlink fs/namei.c:4447 [inline]
 __se_sys_unlink fs/namei.c:4445 [inline]
 __x64_sys_unlink+0x30/0x40 fs/namei.c:4445
 x64_sys_call+0x286b/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881069b8550 of 8 bytes by task 3359 on cpu 0:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:347 [inline]
 retain_dentry fs/dcache.c:686 [inline]
 fast_dput+0x62/0x2b0 fs/dcache.c:782
 dput+0x24/0xd0 fs/dcache.c:839
 handle_mounts fs/namei.c:1553 [inline]
 step_into+0x21a/0x810 fs/namei.c:1842
 open_last_lookups fs/namei.c:3589 [inline]
 path_openat+0x10fc/0x1d80 fs/namei.c:3796
 do_filp_open+0xf7/0x200 fs/namei.c:3826
 do_sys_openat2+0xab/0x120 fs/open.c:1406
 do_sys_open fs/open.c:1421 [inline]
 __do_sys_openat fs/open.c:1437 [inline]
 __se_sys_openat fs/open.c:1432 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1432
 x64_sys_call+0x2cad/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff8882379c0328 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3359 Comm: udevd Not tainted 6.9.0-rc3-syzkaller-00344-g8f2c057754b2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
==================================================================

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/13 12:54 upstream 8f2c057754b2 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / fast_dput
2024/04/10 01:03 upstream 20cb38a7af88 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / fast_dput
2024/03/27 18:12 upstream 498e47cd1d1f 454571b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / fast_dput
2024/03/20 10:59 upstream a4145ce1e7bc a485f239 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / fast_dput
2024/03/09 21:38 upstream 09e5c48fea17 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / fast_dput
2024/03/06 07:02 upstream 29cd507cbec2 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / fast_dput
2024/03/03 08:21 upstream 04b8076df253 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / fast_dput
2024/02/20 20:31 upstream b401b621758e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / fast_dput
2024/01/22 03:37 upstream 4fbbed787267 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / fast_dput
* Struck through repros no longer work on HEAD.