Re: [PATCH net] vsock/virtio: flush works in dependency order
| Newsgroups | dev.linux.lists.virtualization,org.kernel.vger.kvm,org.kernel.vger.linux-kernel,org.kernel.vger.netdev,org.kernel.vger.stable |
|---|---|
| Message-ID | <178765440842.3381513.12080866327704897722.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>: On Sun, 23 Aug 2026 00:45:56 +0800 you wrote: > virtio_vsock_remove() stops the virtqueues and then flushes each work > item before freeing the enclosing virtio_vsock. The current order does > not account for dependencies between those items: tx_work may queue > send_pkt_work, and send_pkt_work may queue rx_work. > > In particular, send_pkt_work can set restart_rx and release tx_lock. > The remove path can then stop the queues and flush rx_work before > send_pkt_work queues it. Although the later send_pkt_work flush waits > for that producer to finish, nothing waits for the newly queued rx_work, > so kfree(vsock) can race with it. > > [...] Here is the summary with links: - [net] vsock/virtio: flush works in dependency order https://git.kernel.org/netdev/net/c/728836ebca23 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html