================================================================== BUG: KCSAN: data-race in set_nlink / set_nlink read to 0xffff8881047a1ac0 of 4 bytes by task 5193 on cpu 0: set_nlink+0x2b/0xb0 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:525 [inline] inode_permission+0x18c/0x300 fs/namei.c:592 may_lookup fs/namei.c:1819 [inline] link_path_walk+0x14b/0x820 fs/namei.c:2425 path_lookupat+0x72/0x2b0 fs/namei.c:2633 filename_lookup+0x150/0x340 fs/namei.c:2663 do_readlinkat+0x89/0x210 fs/stat.c:562 __do_sys_readlink fs/stat.c:599 [inline] __se_sys_readlink fs/stat.c:596 [inline] __x64_sys_readlink+0x47/0x60 fs/stat.c:596 x64_sys_call+0x28ba/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:90 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 write to 0xffff8881047a1ac0 of 4 bytes by task 2999 on cpu 1: set_nlink+0x98/0xb0 fs/inode.c:448 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:525 [inline] inode_permission+0x18c/0x300 fs/namei.c:592 may_lookup fs/namei.c:1819 [inline] link_path_walk+0x14b/0x820 fs/namei.c:2425 path_lookupat+0x72/0x2b0 fs/namei.c:2633 filename_lookup+0x150/0x340 fs/namei.c:2663 vfs_statx+0x9a/0x170 fs/stat.c:344 vfs_fstatat fs/stat.c:366 [inline] __do_sys_newfstatat fs/stat.c:530 [inline] __se_sys_newfstatat+0xdc/0x300 fs/stat.c:524 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:524 x64_sys_call+0x236d/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:263 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: 0x00000018 -> 0x0000001b Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 2999 Comm: udevd Not tainted 6.13.0-rc2-syzkaller-00333-ga0e3919a2df2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================