syzbot


KCSAN: data-race in dentry_unlink_inode / step_into_slowpath

Status: moderation: reported on 2025/12/02 06:25
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+6b0be41ebcb0c7cd64a5@syzkaller.appspotmail.com
First crash: 4d20h, last: 3h11m

Sample crash report:
==================================================================
BUG: KCSAN: data-race in dentry_unlink_inode / step_into_slowpath

write to 0xffff8881073fd330 of 8 bytes by task 3312 on cpu 0:
 __d_clear_type_and_inode fs/dcache.c:420 [inline]
 dentry_unlink_inode+0x65/0x260 fs/dcache.c:457
 d_delete+0x164/0x180 fs/dcache.c:2520
 d_delete_notify+0x32/0x100 include/linux/fsnotify.h:375
 vfs_unlink+0x32c/0x440 fs/namei.c:5384
 do_unlinkat+0x1cd/0x4b0 fs/namei.c:5439
 __do_sys_unlink fs/namei.c:5474 [inline]
 __se_sys_unlink fs/namei.c:5472 [inline]
 __x64_sys_unlink+0x2e/0x40 fs/namei.c:5472
 x64_sys_call+0x2f48/0x3000 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd8/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881073fd330 of 8 bytes by task 3010 on cpu 1:
 step_into_slowpath+0x113/0x480 fs/namei.c:2046
 step_into fs/namei.c:2091 [inline]
 walk_component fs/namei.c:2227 [inline]
 lookup_last fs/namei.c:2722 [inline]
 path_lookupat+0x330/0x500 fs/namei.c:2746
 filename_lookup+0x147/0x340 fs/namei.c:2775
 do_readlinkat+0x7d/0x320 fs/stat.c:576
 __do_sys_readlink fs/stat.c:613 [inline]
 __se_sys_readlink fs/stat.c:610 [inline]
 __x64_sys_readlink+0x47/0x60 fs/stat.c:610
 x64_sys_call+0x2af1/0x3000 arch/x86/include/generated/asm/syscalls_64.h:90
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd8/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff888123774368 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3010 Comm: udevd Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
==================================================================

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/06 23:33 upstream cc3ee4ba57b7 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dentry_unlink_inode / step_into_slowpath
2025/12/06 11:56 upstream 416f99c3b16f d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dentry_unlink_inode / step_into_slowpath
2025/12/06 01:12 upstream d1d36025a617 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dentry_unlink_inode / step_into_slowpath
2025/12/05 06:53 upstream 2061f18ad76e d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dentry_unlink_inode / step_into_slowpath
2025/12/04 17:32 upstream 559e608c4655 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dentry_unlink_inode / step_into_slowpath
2025/12/04 07:26 upstream 8f7aa3d3c732 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dentry_unlink_inode / step_into_slowpath
2025/12/03 21:29 upstream 3f9f0252130e d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dentry_unlink_inode / step_into_slowpath
2025/12/03 02:51 upstream d61f1cc5db79 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dentry_unlink_inode / step_into_slowpath
2025/12/02 14:10 upstream 4a26e7032d7d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dentry_unlink_inode / step_into_slowpath
2025/12/02 06:25 upstream 1d18101a644e d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dentry_unlink_inode / step_into_slowpath
* Struck through repros no longer work on HEAD.