From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.226.149.38 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796239674; b=AlIuTHWeR067n7s2XizmlSpswCQy5UJ3j3tU7nFRUUkP5AkEkmhXsWVBEPwUvsT1AckD i98PQWmoMEHEGnMXQLXVpJH1vMZWS249WnMGstSx+RP1nsHeWoEIdr7uf2n1g9LmZSFCk Ptz8/ijELFzXO+AemovaLYOT/D9yXcqWPqHn/pKikKYBMHHJFYwTtay0E4fcHGXirg8t8 fx7HIW4kRyMsTPpvjHweijJpaPtnUA16rvXYwTf6sb/TuX6tgQikYL23B3CX6i2+Bo3g6 OOjih0lJVsTfgQekBizpwzChMzhoBNpjdt+t7jDVT3Ug3ic+t2xfhioy0icF5OdGkiQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796239674; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Message-ID: Date:MIME-Version:User-Agent:From:Subject:To:Cc:References: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=RLCal/gOCmgRqlMyTN60xYIfihrXcPmaT1Ktl4uOdK4=; b=d/oP3mNtUSkfQ/Fd82CRRMGAf5UEHkA6zjitP6fnRvVVz2EIiVWYTNDc3kQk3Ju2pLRb wYa/iE8cx2aGZmgyUcZeVXAqPMk8iV3txTVm0PeluCj9TNeX8XBtF9ZEvLsvZAgUpstgb +yTHxWPVcgKwd0iapXnM13j2B45juG4ozIhebYFCr0dw7eyI0ZfUIGocCzEScXTMglisr InsA/e5EEQzDxXNhcMD2vimt7UOZkgtJgRRzrLVyDmaX/r1WkzXUbfeuZT8WNCsA3dxJp J6wdTQi1zdGf+nrSE3mi0Oz0SJxFamD3G8H/i/t1xRtAGGTD+wgEKZMg5bKLXnLPwXQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=rbox.co; spf=pass smtp.mailfrom=rbox.co; dkim=pass header.d=rbox.co header.i=@rbox.co header.a=rsa-sha256 header.s=selector1 header.b=IHui9OrE; arc=none smtp.remote-ip=185.226.149.38 Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [185.226.149.38]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8440606A322; Wed, 2 Dec 2026 19:27:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C8440606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rbox.co Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rbox.co Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=rbox.co header.i=@rbox.co header.a=rsa-sha256 header.s=selector1 header.b=IHui9OrE Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1xYpz1-00HQh5-CB; Wed, 02 Dec 2026 20:27:15 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=rbox.co; s=selector1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References: Cc:To:Subject:From:MIME-Version:Date:Message-ID; bh=RLCal/gOCmgRqlMyTN60xYIfihrXcPmaT1Ktl4uOdK4=; b=IHui9OrE9FLwZZIuShS+NUdwn+ XrAnpf5JMENx1okHgR+sylqLlYifJQajtcTGy3F2LkC9mCS83IZw9KN5GJpuAIiIHSoxpMjc4k0eW qRs1p73hM7cvhnMhic7XgIk27St/lruaDyrlkrPiafjdxpJnRSawrx5aPZ4LmoF6fsyzyq/4OvuCC 0zF3qAfmYThFytNXdNjXoMaDSmNdqUO/Bo++hZfnxpr26fFGKkP6DSQy4YnZGCtOGKCWWea9Ha2YC XHW8ypWj9dfEckHZnu7AJEB9H0jMVT3q4Aw96n4kHvyXUoYvGwfyomTBla95RzO0u6cRTHFOwIm71 jkxLtZdQ==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1xYpy4-0008Uv-CD; Wed, 02 Dec 2026 20:26:56 +0100 Received: by submission03.runbox with esmtpsa [Authenticated ID (604044)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) id 1xYpxr-00Gtsl-LR; Wed, 02 Dec 2026 20:26:03 +0100 Message-ID: Date: Wed, 2 Dec 2026 20:26:01 +0100 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Michal Luczaj Subject: Re: [PATCH net-next v8 4/7] vsock: add a netlink command to assign the g2h device to a netns To: Bobby Eshleman Cc: Stefano Garzarella , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Simon Horman , Jonathan Corbet , Shuah Khan , Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , =?UTF-8?Q?Eugenio_P=C3=A9rez?= , Shuah Khan , Randy Dunlap , Donald Hunter , Eric Dumazet , George Zhang , Andy King , Dmitry Torokhov , Willem de Bruijn , virtualization@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, sargun@sargun.me, jlinbox@meta.com References: <20261130-vsock-guest-ns-v8-0-5fff852d325b@meta.com> <20261130-vsock-guest-ns-v8-4-5fff852d325b@meta.com> Content-Language: pl-PL, en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/1/26 22:05, Bobby Eshleman wrote: > On Tue, Dec 01, 2026 at 05:19:31PM +0100, Michal Luczaj wrote: >> Are you sure a lockless (sk_lock-wise) reset is the right approach? I was >> hoping we could "reuse" vsock_g2h_reset_unreachable() from v7 to finally >> fix all those lockless transport resets. With this version, instead, we're >> introducing more lockless socket state writes. >> >> thanks, >> Michal > > I definitely agree with that goal. But since the lockless resets are a > broader vsock issue (virtio_vsock_reset_sock(), > vhost_vsock_reset_orphans(), vmci_transport_handle_detach()), I'd like > to treat them as pre-existing for this series and fix socket state > handling across vsock in follow-up patches. > > Long term I agree with using lock_sock(), but in this series AFAICT it > mostly just prevents an inconsistent state that doesn't affect the user > much (mid-sweep RX RST resulting in TCP_CLOSING instead of TCP_CLOSE, w/ > ECONNRESET). I'm just not sure I see a big enough win to justify the > extra complexity of iterator functions, the extra mutex, etc... > (additional ~75 lines of code) for this series in particular. Ah, ok. I get your point. Let me know if you'll be following up on this locklessness or I should give it a try. I just hope my questions were not taken as an attempt to put more work on you. Thanks, Michal