> A non-blocking connect() running in parallel with a blocking connect(),
> combined with a racy listen() that hits right after a connect timeout:
> TCP_SYN_SENT -> TCP_CLOSE -> TCP_LISTEN, while the connect() loop is still
> in progress.
>
> Enforce the invariant. Prevent a socket from becoming a listener after
> acquiring a transport.
>
> Fixes: c0cfa2d8a788 ("vsock: add multi-transports support")
> Signed-off-by: Michal Luczaj <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review ยท
https://sashiko.dev/#/patchset/[email protected]?part=3