🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15427

Re: [PATCH net] vlan: prevent cross-netns MII register writes

#15427
From: Jakub Kicinski
Date: Thu, 12 Nov 2026 19:35
15 lines
8435 bytes
On Thu, 12 Nov 2026 09:42:32 -0800 Florian Fainelli wrote:
> >> Andrew, Florian, any idea if we could delete this completely?
> >> Why would anyone want to run MII/PHY commands on a VLAN?  
> > 
> > It does seem questionable.  
> 
> Agreed, it does not quite make sense to me to forward these ioctl() 
> calls. Looks like this predates the import of Linux-2.6.12-rc2 into git, 
> need to do some more history digging to find out why this was done.

Maybe we can just delete it in -next and see if anyone complains?
The "fix" as posted would have to go to -next too, given regression
potential, so if we can't think of a use case let's try the bigger
hammer?
Technical Details
Message-ID: <20261112113550.016cdab3@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362164-linux-kernel-netdev=dewy.ru
References: <20261106124639.12584-1-dennylin0707@gmail.com> <20261112075624.23c04230@kernel.org> <706b09ea-49cc-4801-a24b-b22d2ea7d257@lunn.ch> <bc45c1e8-6904-47f7-9c96-512e024c9d71@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362164-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] vlan: prevent cross-netns MII register writes
Date: Thu, 12 Nov 2026 11:35:50 -0800
Organization: Usenet Network
Message-ID: <20261112113550.016cdab3@kernel.org>
References: <20261106124639.12584-1-dennylin0707@gmail.com>
	<20261112075624.23c04230@kernel.org>
	<706b09ea-49cc-4801-a24b-b22d2ea7d257@lunn.ch>
	<bc45c1e8-6904-47f7-9c96-512e024c9d71@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1197996"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:WCj6Nw2X7+Smp+zxvsdMdG9aJbE= sha256:T1rYd2f2u7Isihzhbee7E7OSDW4ZkXQ6HZsBR9S4vGw=
	sha1:7GuVwGOZMq6rj/3fM7bqk8RwqXo= sha256:aaNTdnm8VPLtFr16OWz6N2IXIFBpoxz6glCZwwR1koA=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 51BD11143BD; Fri, 13 Nov 2026 01:47:48 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id NeYi54KmCaCY;
	Fri, 13 Nov 2026 01:47:45 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-362164-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id C7DED1143BA; Fri, 13 Nov 2026 01:47:36 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 218E8E9381; Thu, 12 Nov 2026 19:35:54 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794512152;
	b=LCqO4AN5PppnnARrm6uPp1UsLbufNd26ore+TEcxkx1Mh4FiV7ApQiRL1E1Rsfa2AT9/
	 H7rE3noxjduV558rM/nMdJSvJ8cbEnJNEzgZ7jdwz2T/fGNUwKDWWHOxxdxWh3mgfw7PK
	 xr9eaR6FEeUBlLf+fJLAJ6VKh4U7vDXxR1+0JLm5w43y2em37AtE/8qBXhVPxJj2LftEG
	 Py+SRDK7NXsvFAZUk5erD4r7riQtBdja12WyiOACGqbaZ754I2qMcmiL8RJ1wJwslm4rp
	 UJ5ZBThuN62WKijwyWJq+mZTTrEQGpkH481HTp0qfMf/n/GD7YzHZpiHGn01wqAqy6w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794512152;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=0pR+2UJYSRWXBY+JsM7wm51ZPBa8tWt5k1rdTgbE/xQ=;
	b=mkBJ0jz/tIb3MdPUbJ2c6FdROJWNXYHE4qaH4PCmq+BmeOSKm4Og8/WU0gROpXsYZRZ/
	 ie3FHIQx6gttRZNbMJ2tfEyuU8vYqUzl3Hu8ACnPYxJVk5fELs8tAigUKx2Lg3/XkVFte
	 qeQpcM+hGCM8wXNh8o39Wc2DB+YBax8RL+Oavxw4ePZ/mi2RgCuBzmzw3bnZZnnwduDGx
	 Q4fllrLD5CWz1/xnN3IOCX9ooU+a+H0rVkDzgIy76tM6MKkxg2f3hfyiGsZpNK8WLbNrf
	 P+TjMBdxea83zd3rANF06t3azofbY3AoMweQd81Ct8dZlLGdwWQdY+BEpGrbjAvRsgw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ut0Fcfgo;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id A0025606A330;
	Thu, 12 Nov 2026 19:35:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ut0Fcfgo
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794512151;
	b=uQ2auNY2sWmqNQv1ZsTAghmt9zAbRyWCzsU+ySNrqLJkSphjx6hgzO1G28l7v7TFz7JW
	 66S7oo8TFYBw01UlwTlAs0MHwPSBPjFan9a/s6JJPgk2KZwB5OLXXDzHoIGG5sRsnQI9P
	 dr8YZ5c0zKbyXaG4oXOqv+j4CyMAp8JAkQGrklzgZv32ULyckIUl5oNekAxi3F1pYvssR
	 OQVlbaf3F3thCwhMDzyAGjcfuR7xh1Xg70Mrgv0CSxEDCyBCaDMV9M8jIxSwcCqixxSTi
	 /fS9YaILtNYaMdy32HGGVa0maCnhbvJ/z/xA8JEFqwE/4hdia/p7UboGjfdNL5VRrqQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794512151;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=0pR+2UJYSRWXBY+JsM7wm51ZPBa8tWt5k1rdTgbE/xQ=;
	b=dxHH2aJ4BefFRKYkGtE0eF0BY8cC6f8hIHbsde19/TRn3gfu+eq+kBe4+TFtshKaxe74
	 VB1lfYr1gUvGd9zvjOVj0didlTKnS1D3P8s03BizBz/QezWvHSyNyjxg4aH4ymfEHWG6Q
	 2+M0gJ7wyKsRF78ra2p7aRE6XCwK8fka6P2EBi5RytMJsO4e5cdpieys6/j3rkEIUtaE8
	 UnxW9oFMe317BMIqwqbfdCXq9NWdbnRMvX15ElQAyq5VvIJOZ8D84Hs5P4ymk0er9WLCx
	 CNYuSarDyeC3KJd/brWMZQDdBvisNbgAeFYGMXcgqKD8lnQCT0ZG0opCPBqR0VbYuLw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ut0Fcfgo;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAD3E606A31C;
	Thu, 12 Nov 2026 19:35:51 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DCAD1F000C4;
	Thu, 12 Nov 2026 19:35:51 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794512151;
	bh=0pR+2UJYSRWXBY+JsM7wm51ZPBa8tWt5k1rdTgbE/xQ=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=Ut0FcfgouxV577mJYjBqO1L3l5W21Z/uBAa+z5N6a/Yi7ntWpoq07z3DG3Tcns7zE
	 fvez0g4AYMyBHMuOZtEjurIlCKUcfynFvabRQ4T9gjcAPdEvdVBFStQ9r0eL8rBeH8
	 xMLPiAw8s73R7kdKRnDVe7+CIQds3YH+FCGkfcE/vr46OHkwkwjvDP0atv+3hyJbCy
	 3Yb4noJB7QUYdzxeS+SJmDsat9XwKQkb6dUx2OVjsBmazrw4Wm/vpOXwhBvYwvQf+s
	 yjc1v3qnehxbLM1EQtTHgQEyN2qXTpEVDjQy5V6Ihb4Og5pYFGeiTyH1trdUqYGSBF
	 9E2FfLhcBHtPQ==
X-Cc: Andrew Lunn <andrew@lunn.ch>, Hungyu Lin <dennylin0707@gmail.com>,
 davem@davemloft.net, edumazet@kernel.org, pabeni@redhat.com,
 horms@kernel.org, n05ec@lzu.edu.cn, ylong030@ucr.edu,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <bc45c1e8-6904-47f7-9c96-512e024c9d71@gmail.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list