From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E531E35580E for ; Tue, 13 Jan 2026 22:26:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768343187; cv=none; b=GWxc8ybTCtJBNqPAIzNiaTTXwE2/LMk4FR1BnWWzZe5asSpxD5hoz2efElfya79XpfJi+SBi75JMWJ3yRERBuglzJN0zvNNj73vjfOlKUOBV9zUvNQt65CypSEtZ1N8CWJVc56Pfrob6e5iGKMDXgt1jmqwY2xRr5Oa4D2j7qJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768343187; c=relaxed/simple; bh=h+UznknjOhsgpxn2WvyaKZdy+E01z3xst2FqiSOZMS0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sByF5AZ9GdU1Ltt3IzeI6/llV9KWCh3G5Xr44drWMoo7ev+mWPZFOgXLFLBPkuYW7dgbNTZI9M9Eyld2LWPIW6a0om1hcrEQDI+4MzAJfA6H91qdXuFcHhiqAIiB7RC4I7EOJxr/xEgQar00EGFVllbYbQheUdr2hMoRxPjf52g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RKNhoeb7; arc=none smtp.client-ip=209.85.222.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RKNhoeb7" Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-8b25ed53fcbso348915785a.0 for ; Tue, 13 Jan 2026 14:26:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768343185; x=1768947985; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=QzIlW73SYpRCgsFT6C0OFykRPA/kKAr4bQkErotYYOY=; b=RKNhoeb76aqA9JNaJfY6H9iwMvcvN8UEY8qGF/BPG0FACPsF3g3LOyWOHwFWh6AuRX VL8mX3drhC8eUXeUJXj1LooNDyym/YBbDZszOEeGfBmtSZEGyD/6VNEr9s9RQV6bpD6o T/sQZMAbXgKpJH2NWZ2TaVW5GV8k7kvJPGko5XlzgvGvkq3EEMypoIfgFy2hiuff2OMs 52K2c3tbWj9MJyG9J/fGUGlTO1P86OwCfpommvAyo+2383ZlDnVY2d2/N8s5XCOh8dnB 4XLRoTaRLDMjiZolTa9upvMF6XU/prgdej5LTEOg0LtwzZ0hY2KLL1ndJW+/hxXh1zAy v4rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768343185; x=1768947985; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QzIlW73SYpRCgsFT6C0OFykRPA/kKAr4bQkErotYYOY=; b=ihYcka8+uta4YxZKrHxelhKnwHhy8iEXC0Ooqt313fU4aZTd883qQBkSuEd9hvFEjm tcJP7+6n+NpyH5aC+3dGmDBU2ErA2qMlE/I++Ylo2QiwI1nkHqRwXM9e1dh9NBA7pQFr YaeFyKdDOG6DAacVdytBQiM2Yemba+07BEj519PuiW80wVK/vaUyoLKUEWxdzrl8g/wR Pfd77Wtv9YFFX5fDilnKkhNtghisMYJEowi1pymuwi3b7r+eP6fS2/gjsvdGMie5nysE QxARuojCqxtvRM+HoWVtzlGI9gO+Go+xYCha5cMPDbxD0+x8/SirK3StLa+ibLkOHkx2 xHPQ== X-Forwarded-Encrypted: i=1; AJvYcCXtM/0zTufjjLQXz3bKjE6bOxXZJ+yKvxA+TmcsD20MWG1ZCyBhkllSCAlCE6rLDT8Cdr+qGCq/HEtxWqM=@vger.kernel.org X-Gm-Message-State: AOJu0Yy7CwifsEXxVC2qlTpZ8ZaEY4K1lKFGtqN6x+6d67RsGNGu2B/j 9GdGGCwzKh17yrw7YVMtgjvYP0z8Mk9DzfuRJ6Xp5ESKkDOAmjOwq4WQ X-Gm-Gg: AY/fxX7NUSvW1RqGqUavowRs7/EjpWROkyS+EZplthWgVLdloe8LRs47JfC8U9Q8YR3 mYzShn2mV70Tx9yuo7r8vAAgDe9lTxzZkVy0jD3qy6x853bjgLgNpEdfYcTDLNs9e5UYq0ut34+ uAhCGUDFCqdckyTc9atIjIvQ+AQ+SKFSdL3YxKN9LqdBBKDim/De+TyTFYmLCCi0XPKdrHQKnLs js+DPdgjnPrAykqHLbMuIMGOkE69yWOuAxBgF/6SVPMpH7VZN3A0a6Iydp40jYVQbG9TXjwlbCk tspzmJQgMRmDkf7QwBoK6If6i7tHo3gf4mxp/Pzh5ccYenGB0mSxjyZ0vEpVBYDbhwRzFx5iRUa vPnW70qR7M+s1vb84rqIMk1vsG6EnweZIcqAaGvLWCGvvoUQWkJB412Ptuut1fzRT8HdndqFwkA sXruPHWRMFGbyOLxz2hiyLEAv1Bkm+an39lki08yC2SKqyvg== X-Received: by 2002:a05:690c:c85:b0:78f:f3e2:35e0 with SMTP id 00721157ae682-793a1d4bad1mr1649307b3.42.1768336120080; Tue, 13 Jan 2026 12:28:40 -0800 (PST) Received: from devvm11784.nha0.facebook.com ([2a03:2880:25ff:4a::]) by smtp.gmail.com with ESMTPSA id 00721157ae682-790b1be88dcsm77661627b3.47.2026.01.13.12.28.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jan 2026 12:28:39 -0800 (PST) Date: Tue, 13 Jan 2026 12:28:38 -0800 From: Bobby Eshleman To: "Michael S. Tsirkin" Cc: Stefano Garzarella , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Stefan Hajnoczi , Jason Wang , Eugenio =?iso-8859-1?Q?P=E9rez?= , Xuan Zhuo , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Bryan Tan , Vishnu Dasa , Broadcom internal kernel review list , Shuah Khan , Long Li , linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, netdev@vger.kernel.org, kvm@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-kselftest@vger.kernel.org, berrange@redhat.com, Sargun Dhillon , Bobby Eshleman Subject: Re: [PATCH net-next v14 01/12] vsock: add netns to vsock core Message-ID: References: <20260112-vsock-vmtest-v14-0-a5c332db3e2b@meta.com> <20260112-vsock-vmtest-v14-1-a5c332db3e2b@meta.com> <20260113024503-mutt-send-email-mst@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260113024503-mutt-send-email-mst@kernel.org> On Tue, Jan 13, 2026 at 02:45:32AM -0500, Michael S. Tsirkin wrote: > On Mon, Jan 12, 2026 at 07:11:10PM -0800, Bobby Eshleman wrote: > > From: Bobby Eshleman > > > > Add netns logic to vsock core. Additionally, modify transport hook > > prototypes to be used by later transport-specific patches (e.g., > > *_seqpacket_allow()). > > > > Namespaces are supported primarily by changing socket lookup functions > > (e.g., vsock_find_connected_socket()) to take into account the socket > > namespace and the namespace mode before considering a candidate socket a > > "match". > > > > This patch also introduces the sysctl /proc/sys/net/vsock/ns_mode to > > report the mode and /proc/sys/net/vsock/child_ns_mode to set the mode > > for new namespaces. > > > > Add netns functionality (initialization, passing to transports, procfs, > > etc...) to the af_vsock socket layer. Later patches that add netns > > support to transports depend on this patch. > > > > dgram_allow(), stream_allow(), and seqpacket_allow() callbacks are > > modified to take a vsk in order to perform logic on namespace modes. In > > future patches, the net will also be used for socket > > lookups in these functions. > > > > Signed-off-by: Bobby Eshleman > > --- > > Changes in v14: > > - include linux/sysctl.h in af_vsock.c > > - squash patch 'vsock: add per-net vsock NS mode state' into this patch > > (prior version can be found here): > > https://lore.kernel.org/all/20251223-vsock-vmtest-v13-1-9d6db8e7c80b@meta.com/) > > So, about the static port, are you going to address it in > the next version then? Yes, just wanted to get the rebase out to unblock review of the child_ns_mode changes. I should have mentioned the static port was a known issue and still under discussion. - Bobby