================================================================== BUG: KCSAN: data-race in set_nlink / set_nlink read to 0xffff88810694a048 of 4 bytes by task 2998 on cpu 0: set_nlink+0x29/0xb0 fs/inode.c:-1 kernfs_refresh_inode fs/kernfs/inode.c:180 [inline] kernfs_iop_permission+0x1e2/0x220 fs/kernfs/inode.c:288 do_inode_permission fs/namei.c:526 [inline] inode_permission+0x1ca/0x310 fs/namei.c:593 may_lookup fs/namei.c:1845 [inline] link_path_walk+0x162/0x900 fs/namei.c:2454 path_lookupat+0x63/0x2a0 fs/namei.c:2662 filename_lookup+0x147/0x340 fs/namei.c:2692 vfs_statx+0x9d/0x390 fs/stat.c:353 vfs_fstatat+0x115/0x170 fs/stat.c:375 __do_sys_newfstatat fs/stat.c:542 [inline] __se_sys_newfstatat+0x55/0x260 fs/stat.c:536 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:536 x64_sys_call+0x2c22/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:263 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f write to 0xffff88810694a048 of 4 bytes by task 3298 on cpu 1: set_nlink+0x99/0xb0 fs/inode.c:458 kernfs_refresh_inode fs/kernfs/inode.c:180 [inline] kernfs_iop_permission+0x1e2/0x220 fs/kernfs/inode.c:288 do_inode_permission fs/namei.c:526 [inline] inode_permission+0x1ca/0x310 fs/namei.c:593 may_lookup fs/namei.c:1845 [inline] link_path_walk+0x162/0x900 fs/namei.c:2454 path_openat+0x1de/0x2170 fs/namei.c:4042 do_filp_open+0x109/0x230 fs/namei.c:4073 do_sys_openat2+0xa6/0x110 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0xf2/0x120 fs/open.c:1463 x64_sys_call+0x1af/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000008 -> 0x00000009 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 3298 Comm: udevd Not tainted 6.16.0-rc1-syzkaller-00004-gaef17cb3d3c4 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================