================================================================== BUG: KCSAN: data-race in set_nlink / set_nlink read to 0xffff888105334ee8 of 4 bytes by task 22820 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:462 [inline] inode_permission+0x184/0x300 fs/namei.c:529 may_lookup fs/namei.c:1724 [inline] link_path_walk+0x19e/0x7e0 fs/namei.c:2271 path_openat+0x1a0/0x1d70 fs/namei.c:3775 do_filp_open+0xf6/0x200 fs/namei.c:3809 do_sys_openat2+0xab/0x110 fs/open.c:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_openat fs/open.c:1471 [inline] __se_sys_openat fs/open.c:1466 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1466 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b write to 0xffff888105334ee8 of 4 bytes by task 2782 on cpu 1: set_nlink+0x98/0xb0 fs/inode.c:371 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:1724 [inline] link_path_walk+0x19e/0x7e0 fs/namei.c:2271 path_lookupat+0x72/0x2a0 fs/namei.c:2482 filename_lookup+0x126/0x300 fs/namei.c:2512 vfs_statx+0xa2/0x430 fs/stat.c:240 vfs_fstatat+0xcd/0x100 fs/stat.c:295 __do_sys_newfstatat fs/stat.c:459 [inline] __se_sys_newfstatat+0x58/0x260 fs/stat.c:453 __x64_sys_newfstatat+0x55/0x60 fs/stat.c:453 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x00000009 -> 0x00000008 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 2782 Comm: udevd Not tainted 6.7.0-rc2-syzkaller-00029-g9b6de136b5f0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 ==================================================================