================================================================== BUG: KCSAN: data-race in alloc_empty_file / percpu_counter_add_batch read (marked) to 0xffffffff86e09788 of 8 bytes by task 3294 on cpu 0: percpu_counter_read_positive include/linux/percpu_counter.h:121 [inline] get_nr_files fs/file_table.c:113 [inline] alloc_empty_file+0x20/0x1e0 fs/file_table.c:252 alloc_file fs/file_table.c:396 [inline] alloc_file_pseudo+0x92/0x120 fs/file_table.c:427 sock_alloc_file+0x9c/0x1e0 net/socket.c:557 sock_map_fd net/socket.c:587 [inline] __sys_socket+0x118/0x180 net/socket.c:1830 __do_sys_socket net/socket.c:1835 [inline] __se_sys_socket net/socket.c:1833 [inline] __x64_sys_socket+0x3f/0x50 net/socket.c:1833 x64_sys_call+0x246e/0x2550 arch/x86/include/generated/asm/syscalls_64.h:42 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f read-write to 0xffffffff86e09788 of 8 bytes by task 3463 on cpu 1: percpu_counter_add_batch+0x101/0x120 lib/percpu_counter.c:107 percpu_counter_add include/linux/percpu_counter.h:71 [inline] percpu_counter_inc include/linux/percpu_counter.h:267 [inline] alloc_empty_file+0xbc/0x1e0 fs/file_table.c:272 path_openat+0x50/0x11e0 fs/namei.c:5002 do_file_open+0x16c/0x290 fs/namei.c:5045 do_sys_openat2+0xa1/0x140 fs/open.c:1443 do_sys_open fs/open.c:1449 [inline] __do_sys_openat fs/open.c:1465 [inline] __se_sys_openat fs/open.c:1460 [inline] __x64_sys_openat+0xf2/0x120 fs/open.c:1460 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 3463 Comm: modprobe Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 ==================================================================