================================================================== BUG: KCSAN: data-race in alloc_empty_file / percpu_counter_add_batch read (marked) to 0xffffffff86e09788 of 8 bytes by task 3291 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 3443 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_dec include/linux/percpu_counter.h:272 [inline] file_free fs/file_table.c:99 [inline] __fput+0x4de/0x660 fs/file_table.c:526 ____fput+0x1c/0x30 fs/file_table.c:541 task_work_run+0x145/0x1a0 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x4a7/0x1530 kernel/exit.c:980 do_group_exit+0x138/0x140 kernel/exit.c:1123 __do_sys_exit_group kernel/exit.c:1134 [inline] __se_sys_exit_group kernel/exit.c:1132 [inline] __x64_sys_exit_group+0x1f/0x20 kernel/exit.c:1132 x64_sys_call+0x254f/0x2550 arch/x86/include/generated/asm/syscalls_64.h:232 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: 3443 Comm: modprobe Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 ==================================================================