================================================================== BUG: KCSAN: data-race in set_nlink / set_nlink read to 0xffff888106c39858 of 4 bytes by task 3477 on cpu 1: set_nlink+0x2b/0xb0 fs/inode.c:-1 kernfs_refresh_inode fs/kernfs/inode.c:180 [inline] kernfs_iop_permission+0x1c8/0x210 fs/kernfs/inode.c:288 do_inode_permission fs/namei.c:526 [inline] inode_permission+0x18c/0x300 fs/namei.c:593 may_lookup fs/namei.c:1835 [inline] link_path_walk+0x147/0x840 fs/namei.c:2441 path_openat+0x1b4/0x2000 fs/namei.c:4000 do_filp_open+0x115/0x240 fs/namei.c:4031 do_sys_openat2+0xaa/0x110 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0xf8/0x120 fs/open.c:1455 x64_sys_call+0x1ac/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f write to 0xffff888106c39858 of 4 bytes by task 3003 on cpu 0: set_nlink+0x98/0xb0 fs/inode.c:458 kernfs_refresh_inode fs/kernfs/inode.c:180 [inline] kernfs_iop_permission+0x1c8/0x210 fs/kernfs/inode.c:288 do_inode_permission fs/namei.c:526 [inline] inode_permission+0x18c/0x300 fs/namei.c:593 may_lookup fs/namei.c:1835 [inline] link_path_walk+0x147/0x840 fs/namei.c:2441 path_lookupat+0x6c/0x2a0 fs/namei.c:2649 filename_lookup+0x14b/0x340 fs/namei.c:2679 vfs_statx+0x9d/0x310 fs/stat.c:346 vfs_fstatat+0xe4/0x130 fs/stat.c:368 __do_sys_newfstatat fs/stat.c:532 [inline] __se_sys_newfstatat+0x58/0x260 fs/stat.c:526 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:526 x64_sys_call+0x2d6f/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:263 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000009 -> 0x00000008 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3003 Comm: udevd Not tainted 6.14.0-syzkaller-10764-gaa918db707fb #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 ==================================================================