================================================================== BUG: KCSAN: data-race in set_nlink / set_nlink read to 0xffff88810533ac78 of 4 bytes by task 3105 on cpu 1: 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:462 [inline] inode_permission+0x184/0x300 fs/namei.c:529 may_lookup fs/namei.c:1727 [inline] link_path_walk+0x1b8/0x800 fs/namei.c:2274 path_openat+0x1a0/0x1d40 fs/namei.c:3798 do_filp_open+0xf6/0x200 fs/namei.c:3829 do_sys_openat2+0xab/0x110 fs/open.c:1404 do_sys_open fs/open.c:1419 [inline] __do_sys_openat fs/open.c:1435 [inline] __se_sys_openat fs/open.c:1430 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1430 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+0x63/0x6b write to 0xffff88810533ac78 of 4 bytes by task 2773 on cpu 0: set_nlink+0x98/0xb0 fs/inode.c:372 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:462 [inline] inode_permission+0x184/0x300 fs/namei.c:529 may_lookup fs/namei.c:1727 [inline] link_path_walk+0x1b8/0x800 fs/namei.c:2274 path_lookupat+0x72/0x2a0 fs/namei.c:2485 filename_lookup+0x126/0x300 fs/namei.c:2515 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/0x60 fs/stat.c:462 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+0x63/0x6b value changed: 0x00000009 -> 0x00000008 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 2773 Comm: udevd Not tainted 6.8.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 ==================================================================