Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp589324lqt; Thu, 6 Jun 2024 12:04:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRtbxThFjE4rjchYbdCuOJScysNdoRPQllNOeqj8pjsMZi7Z/lJ0bcXIH1mXn7lYjsRYnEKux89mNA5JZZWtmt26Xa2EfCo+YFV3fwNg== X-Google-Smtp-Source: AGHT+IGOEAIIDHHdkglwQOh0IgRSWMbPA3n/ax/g4RchToEnSasoErTsRQjnZQR0PiZzICKxXY3l X-Received: by 2002:a17:90a:a00e:b0:2b3:5d8a:a13f with SMTP id 98e67ed59e1d1-2c2bcc61b68mr365110a91.47.1717700675734; Thu, 06 Jun 2024 12:04:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717700675; cv=pass; d=google.com; s=arc-20160816; b=OFPhzIB4/WX6HlUgyVtWEDWqs9bP1AyfSSbgKuKkH47XOwFCYCkq9xp5O670nsJoM6 HXgX0pdkgVrWkYuukm1ptUC4PlTlo9P/ifcC9L2uo+5xw9d5OAxLFkXls7Pm10MsZ8nq SJ16hVxaFBq4XOq0/8cLYOwmgB07n77XL416reydNPlY93mcd4Eg6V9Fjf5tP7d7Quir FPTQziaCE+nlx2by7EAeqym3ZLPWJwTAAvNOfUMQ7GMqi1vN8DVHGo2MSWqAtmaVygmF A9PYJ8GKt7yoSQ9rCwXoUYK6akiaYY++N6yP6FJgtk2pCP4vf3uaYdN5YN8ZGBzFC5ej sFYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KS2oYQ6kEvwe+tStHjauZWJyl0wKHtSJW2cYetOHMQY=; fh=5QPt/Adu61Vf0R0jBLvFDuZbHSGu6Eh2PT8FJQ519lo=; b=UtzdjcrtPKK4YVi3yGq4O21C44CACqD/VvFqbyLk/AaVWPR5yqinns9IMOOR8pFirB c5uXMAw+YN3t3JRVZ8DWD1ab6YROpIqU/riDg8/0Booyxkjrfmbb+oh7z6INZSZXtZQz 0KCwYXYr0XlvgTTWj1AI26Pkc2HOFKgTy2k7p5+mIvrs9mfiyUh0puyIUSJAQ+MdxhLl 8vPxQSnuVJUADumwQqww8FvcwqMOaBs0BG8FLW8krGT1h7BojUNJFcjmHpXXesOyTblI NDw5kBiydjLSVeYJe3clwc6IljK54Vlmva5x9F55ky1j+1UqypHOXzeklcwaYQOwIzNh gIlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=GluwDzP0; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-204888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204888-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2559e739fsi1550940a91.1.2024.06.06.12.04.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 12:04:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=GluwDzP0; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-204888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204888-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 22220B25C3E for ; Thu, 6 Jun 2024 18:32:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B23A45945; Thu, 6 Jun 2024 18:32:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="GluwDzP0" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0A228821; Thu, 6 Jun 2024 18:32:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717698726; cv=none; b=UfXQCHBG3tci/b19A5s0wVtHP5Rct3VCBSOxfEZH7GQ6Qs/HkaH7nom5rmBktIFYjb1eE4kJds7ROrja0xftx4XBOe2TbSU5fJaqMLRC3fTGSEN8Ob0PBkyDh8a0a1MMSf/1/RUaHqfM8AMBhICE3rvCDo1Q3Y15mcNX4uRyoN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717698726; c=relaxed/simple; bh=c8317Md13mBmS3nLncmRd43PS4wNRAjjAbEJxzLRCHA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E+vT0DtNuoKLyPIKpVcDKtfAaxsZcJHK4fOdhWhtFnjTQWNfy3ugAwfDWFq1W/2PbXm/B3+WmLuZ2VRgBOAxRUwAZ37hsO6jbjdM4G8tGEHG7mXq2+9CT8wMcpCDGDoI/E/v6fwk4M0b92UKWL6oSY1HhYVq1IkvbUwLHdIxtC8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=GluwDzP0; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=KS2oYQ6kEvwe+tStHjauZWJyl0wKHtSJW2cYetOHMQY=; b=GluwDzP0zbxIddz8/0rWtWfUnP Ln4KiPloTvSPVnN8yiLLtHlYqh8rz0Jk8wsMbDT/9VSmeb4d3lPfYsukLdRZPYCkvXRKB0jEnwcKV FwKqjeHY+qO2mKiCRJ9IGOvDwycriNLjaoJdyeIFPSxXEUPBmHctT/baE7rsilrMSIK4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sFHtn-00H2hc-F7; Thu, 06 Jun 2024 20:31:43 +0200 Date: Thu, 6 Jun 2024 20:31:43 +0200 From: Andrew Lunn To: Jacob Keller Cc: jackie.jone@alliedtelesis.co.nz, davem@davemloft.net, jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, kuba@kernel.org, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, chris.packham@alliedtelesis.co.nz Subject: Re: [PATCH] igb: Add MII write support Message-ID: <12b1febd-a634-43bb-8edf-79ccb4f9e3aa@lunn.ch> References: <20240604031020.2313175-1-jackie.jone@alliedtelesis.co.nz> <1dbb8291-9004-4ec2-a01b-9dd5b2a8be39@lunn.ch> 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: > Yea, its extremely easy to break things if you don't know what you're > doing here. So its more a question of "are we ok exposing yet another > way root can brick things?" Many MAC drivers allow it, and we have not had complaints. It is not really something i'm a fan of, it in theory allows user space drivers for PHYs, but it is full of race conditions so in practice unlikely to work reliably. If you are worried about it causing additional support issues because it gets abused, you could make it taint the kernel. That makes it clear all bets are off if used. For the use case presented here, a tainted kernel does not matter, it for lab testing, not production. Andrew