================================================================== BUG: KCSAN: data-race in alloc_empty_file / percpu_counter_add_batch read (marked) to 0xffffffff86e09788 of 8 bytes by task 3492 on cpu 1: 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 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 read-write to 0xffffffff86e09788 of 8 bytes by task 3489 on cpu 0: 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: 0 UID: 0 PID: 3489 Comm: modprobe Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 ==================================================================