From: Bobby Eshleman <bobbyeshleman@meta.com>
To: Michal Luczaj <mhal@rbox.co>
Cc: Stefano Garzarella <sgarzare@redhat.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
George Zhang <georgezhang@vmware.com>,
Andy King <acking@vmware.com>, Dmitry Torokhov <dtor@vmware.com>,
<virtualization@lists.linux.dev>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, Kyle Zeng <kylebot@openai.com>
Subject: Re: [PATCH net v2] vsock: only undo SS_CONNECTING when connect() fails
Date: Tue, 24 Nov 2026 12:42:08 -0800 [thread overview]
Message-ID: <awX2oDI/Mbt+z6J2@devvm29614.prn0.facebook.com> (raw)
In-Reply-To: <ca274ecf-3525-4bf0-a525-0460b5ea2d28@rbox.co>
On Tue, Nov 24, 2026 at 05:17:56PM +0100, Michal Luczaj wrote:
> On 11/24/26 00:19, Bobby Eshleman wrote:
> > On Sat, Nov 21, 2026 at 07:32:15PM +0100, Michal Luczaj wrote:
[...]
> > So the attempt never times out, and a late OP_RESPONSE connects a
> > socket the user already shut down, overwriting SS_DISCONNECTING with
> > SS_CONNECTED. I think that's a separate bug for a separate patch,
> > though.
>
> Great, I'm all in favour of consolidation. So in the scenario above,
> invoking vsock_connect_close() on vsock_connect_timeout() (with sk_shutdown
> check dropped) would result in CLOSE/DISCONNECTING, and no more late
> virtio_transport_recv_connecting(), right?
Right, that late response will fall through and get an RST back. I'm
not 100% sure yet about how to rework the sk_shutdown check yet
though. I mention TCP's approach to shutdowns in my reply to Paolo and
I'm thinking thats probably the right way to go about it, but not 100%
sure yet...
Do we agree that touching vsock_connect_timeout() should not happen in
this patch? Is there anything pending on this one from your perspective
Michal?
[...]
> One more detail: currently a sock that went through a failed connect() can
> still become a listener. A transport-bearing listener, which I don't think
> is good. So, except for the connect+shutdown case, this does not change
> with your patch, right?
Yeah I don't think this changes here.
Best,
Bobby
next prev parent reply other threads:[~2026-11-24 20:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 1:34 [PATCH net v2] vsock: only undo SS_CONNECTING when connect() fails Bobby Eshleman
2026-11-18 1:38 ` netdev-bot+sinfo
2026-11-19 1:34 ` sashiko-bot
2026-11-19 2:27 ` netdev-bot+sashiko
2026-11-21 18:32 ` Michal Luczaj
2026-11-23 23:19 ` Bobby Eshleman
2026-11-24 14:39 ` Paolo Abeni
2026-11-24 20:30 ` Bobby Eshleman
2026-11-25 9:54 ` Paolo Abeni
2026-11-30 16:09 ` Bobby Eshleman
2026-11-24 16:17 ` Michal Luczaj
2026-11-24 20:42 ` Bobby Eshleman [this message]
2026-11-25 15:10 ` Michal Luczaj
2026-11-25 20:25 ` Michal Luczaj
2026-11-26 9:25 ` Stefano Garzarella
2026-12-01 0:40 ` Bobby Eshleman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awX2oDI/Mbt+z6J2@devvm29614.prn0.facebook.com \
--to=bobbyeshleman@meta.com \
--cc=acking@vmware.com \
--cc=davem@davemloft.net \
--cc=dtor@vmware.com \
--cc=edumazet@kernel.org \
--cc=georgezhang@vmware.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kylebot@openai.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mhal@rbox.co \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sgarzare@redhat.com \
--cc=virtualization@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.