On Mon, Nov 30, 2026 at 02:23:11PM +0100, Michal Luczaj wrote:
> Right, the leak is real. And netdev bot reported it some time ago [1].
> Not sure what's the status of that series, though.
>
> [1]
> https://lore.kernel.org/netdev/1790…@kernel.org/
>
> > Found during a GLM-5.4-assisted code audit and verified manually against
> > mainline; compile-tested only (not triggered at runtime).
>
> I'm really curious: did you/GLM try to trigger the leak (and fail), or you
> just didn't try triggering it in the first place?
Hi Michal,
Thanks for checking this and for the pointer to [1]!
To answer your question honestly: we didn't try triggering it at runtime
before sending v1 -- GLM-5.4 flagged the window between work dequeue
(clearing WORK_STRUCT_PENDING_BIT) and lock_sock(sk) during a static
audit pass, and we manually traced virtio_transport_close_timeout() vs
virtio_transport_do_close(vsk, true) against mainline and compile-tested
the patch.
Looking at current net / net-next, virtio_transport_common.c still skips
cleanup in virtio_transport_close_timeout() when SOCK_DONE is already
set, so virtio / vsock_loopback / vhost-vsock remain affected. We also
booted a QEMU kernel with CONFIG_VSOCKETS_LOOPBACK=y, CONFIG_KASAN=y,
and CONFIG_PROVE_LOCKING=y to verify the close paths with the fix
applied. Happy to follow up with a regression test under
tools/testing/vsock/ if that would be useful.
Best regards,
Hu Xinyao