================================================================== BUG: KCSAN: data-race in fasync_remove_entry / sock_wake_async write to 0xffff88810a1d2358 of 8 bytes by task 21225 on cpu 0: fasync_remove_entry+0xd5/0x130 fs/fcntl.c:878 fasync_helper+0x96/0xc0 fs/fcntl.c:977 sock_fasync+0x60/0xd0 net/socket.c:1422 __fput+0x532/0x570 fs/file_table.c:318 ____fput+0x15/0x20 fs/file_table.c:349 task_work_run+0x135/0x1a0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xd1/0xe0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff88810a1d2358 of 8 bytes by task 21211 on cpu 1: sock_wake_async+0x2a/0x120 net/socket.c:1437 sk_wake_async include/net/sock.h:2518 [inline] unix_release_sock+0x483/0x780 net/unix/af_unix.c:636 unix_release+0x52/0x70 net/unix/af_unix.c:1042 __sock_release net/socket.c:653 [inline] sock_close+0x70/0x150 net/socket.c:1397 __fput+0x245/0x570 fs/file_table.c:321 ____fput+0x15/0x20 fs/file_table.c:349 task_work_run+0x135/0x1a0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xd1/0xe0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0xffff8881741b2540 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 21211 Comm: syz-executor.4 Not tainted 6.4.0-rc4-syzkaller-00051-g48b1320a674e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 ==================================================================