================================================================== BUG: KCSAN: data-race in unix_inflight / wait_for_unix_gc write to 0xffffffff8419f114 of 4 bytes by task 1655 on cpu 0: unix_inflight+0x1e8/0x280 net/unix/scm.c:63 unix_attach_fds+0x10c/0x1e0 net/unix/scm.c:121 unix_scm_to_skb net/unix/af_unix.c:1637 [inline] unix_stream_sendmsg+0x51a/0xfb0 net/unix/af_unix.c:2034 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] ____sys_sendmsg+0x39a/0x510 net/socket.c:2409 ___sys_sendmsg net/socket.c:2463 [inline] __sys_sendmsg+0x242/0x2c0 net/socket.c:2492 __do_sys_sendmsg net/socket.c:2501 [inline] __se_sys_sendmsg net/socket.c:2499 [inline] __x64_sys_sendmsg+0x42/0x50 net/socket.c:2499 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffffff8419f114 of 4 bytes by task 1654 on cpu 1: wait_for_unix_gc+0x24/0x160 net/unix/garbage.c:196 unix_dgram_sendmsg+0x8e/0x1650 net/unix/af_unix.c:1735 unix_seqpacket_sendmsg+0xcc/0x110 net/unix/af_unix.c:2221 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] ____sys_sendmsg+0x39a/0x510 net/socket.c:2409 __sys_sendmsg_sock+0x25/0x30 net/socket.c:2475 io_sendmsg fs/io_uring.c:4727 [inline] io_issue_sqe+0x21b3/0x6590 fs/io_uring.c:6621 __io_queue_sqe+0x34/0x460 fs/io_uring.c:6907 io_queue_sqe fs/io_uring.c:6958 [inline] io_submit_sqe+0x88b/0x3e80 fs/io_uring.c:7134 io_submit_sqes+0x505/0xde0 fs/io_uring.c:7240 __do_sys_io_uring_enter fs/io_uring.c:9882 [inline] __se_sys_io_uring_enter+0x20d/0xb30 fs/io_uring.c:9824 __x64_sys_io_uring_enter+0x74/0x80 fs/io_uring.c:9824 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000000 -> 0x00000001 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1654 Comm: syz-executor.4 Tainted: G W 5.15.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================