================================================================== BUG: KCSAN: data-race in unix_notinflight / wait_for_unix_gc write to 0xffffffff841b9d54 of 4 bytes by task 4986 on cpu 0: unix_notinflight+0x1f2/0x280 net/unix/scm.c:83 unix_detach_fds net/unix/scm.c:134 [inline] unix_destruct_scm+0x117/0x190 net/unix/scm.c:145 skb_release_head_state+0xb3/0x170 net/core/skbuff.c:728 skb_release_all net/core/skbuff.c:739 [inline] __kfree_skb+0x14/0x150 net/core/skbuff.c:755 kfree_skb+0x4d/0x130 net/core/skbuff.c:773 __skb_queue_purge include/linux/skbuff.h:2826 [inline] unix_gc+0x7d7/0x8d0 net/unix/garbage.c:296 unix_release_sock+0x644/0x6f0 net/unix/af_unix.c:598 unix_release+0x2f/0x50 net/unix/af_unix.c:867 __sock_release net/socket.c:648 [inline] sock_close+0x6c/0x150 net/socket.c:1300 __fput+0x25b/0x4e0 fs/file_table.c:280 ____fput+0x11/0x20 fs/file_table.c:313 task_work_run+0xae/0x130 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302 do_syscall_64+0x49/0x90 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffffff841b9d54 of 4 bytes by task 4987 on cpu 1: wait_for_unix_gc+0x24/0x140 net/unix/garbage.c:196 unix_dgram_sendmsg+0x5f/0x1600 net/unix/af_unix.c:1684 unix_seqpacket_sendmsg+0xcc/0x110 net/unix/af_unix.c:2107 sock_sendmsg_nosec net/socket.c:703 [inline] sock_sendmsg net/socket.c:723 [inline] ____sys_sendmsg+0x360/0x4d0 net/socket.c:2392 ___sys_sendmsg net/socket.c:2446 [inline] __sys_sendmsg+0x1ed/0x270 net/socket.c:2475 __do_sys_sendmsg net/socket.c:2484 [inline] __se_sys_sendmsg net/socket.c:2482 [inline] __x64_sys_sendmsg+0x42/0x50 net/socket.c:2482 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000001 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 4987 Comm: syz-executor.1 Not tainted 5.14.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================