From: Michal Luczaj <mhal@rbox.co>
To: Bobby Eshleman <bobbyeshleman@meta.com>
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: Wed, 25 Nov 2026 16:10:47 +0100 [thread overview]
Message-ID: <23a40881-5e6c-4c4e-86c3-97f3500438e5@rbox.co> (raw)
In-Reply-To: <awX2oDI/Mbt+z6J2@devvm29614.prn0.facebook.com>
On 11/24/26 21:42, Bobby Eshleman wrote:
> 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?
I think we're good. Patch fixes what started the discussion.
And if I get this right, the only unintended side-effect is that
shutdown/connect inconsistency, but the sibling thread concludes shutdown
handling needs rework anyway.
Reviewed-by: Michal Luczaj <mhal@rbox.co>
thanks,
Michal
prev parent reply other threads:[~2026-11-25 15:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 1:34 Bobby Eshleman
2026-11-18 1:38 ` netdev-bot+sinfo
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-24 16:17 ` Michal Luczaj
2026-11-24 20:42 ` Bobby Eshleman
2026-11-25 15:10 ` Michal Luczaj [this message]
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=23a40881-5e6c-4c4e-86c3-97f3500438e5@rbox.co \
--to=mhal@rbox.co \
--cc=acking@vmware.com \
--cc=bobbyeshleman@meta.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=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®