================================================================== BUG: KCSAN: data-race in set_nlink / set_nlink read to 0xffff8881065e2eb8 of 4 bytes by task 3022 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_openat+0x1af/0x1fa0 fs/namei.c:3983 do_filp_open+0x107/0x230 fs/namei.c:4014 do_sys_openat2+0xab/0x120 fs/open.c:1402 do_sys_open fs/open.c:1417 [inline] __do_sys_openat fs/open.c:1433 [inline] __se_sys_openat fs/open.c:1428 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1428 x64_sys_call+0x2b30/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:258 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 0xffff8881065e2eb8 of 4 bytes by task 3314 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_openat+0x1af/0x1fa0 fs/namei.c:3983 do_filp_open+0x107/0x230 fs/namei.c:4014 do_sys_openat2+0xab/0x120 fs/open.c:1402 do_sys_open fs/open.c:1417 [inline] __do_sys_openat fs/open.c:1433 [inline] __se_sys_openat fs/open.c:1428 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1428 x64_sys_call+0x2b30/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:258 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: 0x00000006 -> 0x00000005 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 3314 Comm: udevd Not tainted 6.12.0-syzkaller-10689-g7af08b57bcb9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================