================================================================== BUG: KCSAN: data-race in set_nlink / set_nlink read to 0xffff8881053e0798 of 4 bytes by task 29577 on cpu 0: set_nlink+0x2b/0xb0 kernfs_refresh_inode fs/kernfs/inode.c:180 [inline] kernfs_iop_permission+0x1dd/0x220 fs/kernfs/inode.c:288 do_inode_permission fs/namei.c:461 [inline] inode_permission+0x18c/0x300 fs/namei.c:528 may_lookup fs/namei.c:1726 [inline] link_path_walk+0x1b8/0x810 fs/namei.c:2273 path_openat+0x1a1/0x1d80 fs/namei.c:3795 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 write to 0xffff8881053e0798 of 4 bytes by task 2783 on cpu 1: set_nlink+0x98/0xb0 fs/inode.c:373 kernfs_refresh_inode fs/kernfs/inode.c:180 [inline] kernfs_iop_permission+0x1dd/0x220 fs/kernfs/inode.c:288 do_inode_permission fs/namei.c:461 [inline] inode_permission+0x18c/0x300 fs/namei.c:528 may_lookup fs/namei.c:1726 [inline] link_path_walk+0x1b8/0x810 fs/namei.c:2273 path_lookupat+0x72/0x2b0 fs/namei.c:2484 filename_lookup+0x127/0x300 fs/namei.c:2514 vfs_statx+0xa2/0x320 fs/stat.c:244 vfs_fstatat+0xcd/0x100 fs/stat.c:304 __do_sys_newfstatat fs/stat.c:468 [inline] __se_sys_newfstatat+0x58/0x260 fs/stat.c:462 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:462 x64_sys_call+0x25ff/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:263 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: 0x00000009 -> 0x00000008 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 2783 Comm: udevd Not tainted 6.9.0-rc3-syzkaller-00355-g7efd0a74039f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ==================================================================