================================================================== BUG: KCSAN: data-race in alloc_empty_file / percpu_counter_add_batch write to 0xffffffff85c08548 of 8 bytes by task 3878 on cpu 0: percpu_counter_add_batch+0xca/0x150 lib/percpu_counter.c:91 percpu_counter_add include/linux/percpu_counter.h:55 [inline] percpu_counter_dec include/linux/percpu_counter.h:184 [inline] file_free fs/file_table.c:57 [inline] __fput+0x35d/0x520 fs/file_table.c:298 ____fput+0x1f/0x30 fs/file_table.c:313 task_work_run+0xf6/0x130 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x545/0x18c0 kernel/exit.c:797 do_group_exit+0xb4/0x1c0 kernel/exit.c:895 __do_sys_exit_group kernel/exit.c:906 [inline] __se_sys_exit_group kernel/exit.c:904 [inline] __x64_sys_exit_group+0x2e/0x30 kernel/exit.c:904 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffffffff85c08548 of 8 bytes by task 3883 on cpu 1: get_nr_files fs/file_table.c:66 [inline] alloc_empty_file+0x2d/0x180 fs/file_table.c:142 alloc_file+0x4e/0x2b0 fs/file_table.c:193 alloc_file_pseudo+0x11c/0x1b0 fs/file_table.c:232 sock_alloc_file+0x69/0x130 net/socket.c:398 sock_map_fd net/socket.c:422 [inline] __sys_socket+0xe8/0x170 net/socket.c:1517 __do_sys_socket net/socket.c:1522 [inline] __se_sys_socket net/socket.c:1520 [inline] __x64_sys_socket+0x4c/0x60 net/socket.c:1520 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3883 Comm: syz-executor.4 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================