Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp515804lqt; Thu, 6 Jun 2024 09:56:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMd2oQ05QwnSK1OJJew+RbvG9LnqOxOgL3wYy2S+xUXAEqhxlL71dkHXHOJXyDsifWpEWoYeLSAhfQIDE9WSIEASawGeAcltdGIkuiIQ== X-Google-Smtp-Source: AGHT+IHypy199J9RNXCkoD0R3hYB8LoYxP1KbyQSzKa3GC3ctbz+K+62bkCZQtl2DL0dvtfXJuaN X-Received: by 2002:a50:cd17:0:b0:56d:c928:ad76 with SMTP id 4fb4d7f45d1cf-57a8bc912e8mr4376922a12.26.1717692991429; Thu, 06 Jun 2024 09:56:31 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae0fcebdsi889736a12.190.2024.06.06.09.56.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 09:56:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kpPWG5Ct; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-204745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204745-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id F32251F2A4E8 for ; Thu, 6 Jun 2024 16:56:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4836C198E7A; Thu, 6 Jun 2024 16:56:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kpPWG5Ct" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 305E5224D1; Thu, 6 Jun 2024 16:56:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.8 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717692976; cv=fail; b=t6ep/CG7cRjzb1wiYZdGiaKZUgS/0X4Xjv5aHD/DQwbtJc1jSC6Pn4VJWTjrIyxg+9xgiBcAUZmM5Gzxql1h/pwVKJlwWC1BFerSxOCDRwaZwFSeDFa/KlDbXjiLX+pGnXt9absoBL+neVKOaJXOX/RdDixsjP5McIduNImG9kI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717692976; c=relaxed/simple; bh=lcWXSTHI2Ds84ZPg1R65hHzT1wVCKAXmKrl8ywULgOo=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=ZhgLxrW3iXFhmTP3OfuIO+tSIcFpgnKgnELEXv19RekokiaL1QyC5YMzwll31DtIhmMNGSkSXZufeB8NbMk1svNHM+A9uoZgMeNleujrN00y6sOZGJkKgcCk1bfn3sxRNWEekTdRkwaMebLxmi9DMALj0TU0d0FpkMSTSHSYN7M= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kpPWG5Ct; arc=fail smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717692974; x=1749228974; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=lcWXSTHI2Ds84ZPg1R65hHzT1wVCKAXmKrl8ywULgOo=; b=kpPWG5CtQkVL46Z7Ov3g56YXfHk7lmTL9fJOeOgWpLaHZv+cB5H/5kav tT0G+z9YAv1TO4Qwj5omaUuWrLcCEzvLLVXXXg6gOf4v0neYE/rFNduJg +JwLVJ4fky1jtBcHoB8VF5W4sNjSopsyFf1x1OvYUL2Hgfl6D6Jv+ae/8 eqcvzr2dRfAoHmOy7Gf8ryjsHVMVP/iccvCvs0I9LH5k1RtRwSGXPMrei tPQ2Qiia7ENvftPwMTQny6Z/l8ThkpjW0ADEpNb4G02g8TlphBHAlX0mY l0MkzfBB0MkD8hZOl4zXDk164MxAjwz/YlGMY5JXnLNIYFKr7oaHmaRKx w==; X-CSE-ConnectionGUID: zHvt50vdRAqDl98b3G9WqA== X-CSE-MsgGUID: 9DN/btZ8SoexaLCiTKfFgw== X-IronPort-AV: E=McAfee;i="6600,9927,11095"; a="31924779" X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="31924779" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 09:56:13 -0700 X-CSE-ConnectionGUID: qHPwDb05QEmzfKPD2TCipg== X-CSE-MsgGUID: S3rrMkhzSJa7M0SDyyBemw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="42494433" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmviesa003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 06 Jun 2024 09:56:14 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 6 Jun 2024 09:56:13 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Thu, 6 Jun 2024 09:56:13 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.41) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 6 Jun 2024 09:56:12 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MtsRTck85S3jwTu1Dbw9ZsMRumDrBGX2HGJUBzv8TTV1Vi3wFi/9kDPsHrKKmSne8FnhxycArX/ObdZGwhxChrbXKVWsMDiUeYXEQM6sVGFnRF9t9gHOQ4T9RbCZVoq0b7u7KdnDBl6wHOP9X/QJGfWKiXcXn7eRZXHG+i9DurvYsEAf+2L2CAhruUIFHeMZRVIbzGhZrQYaZKQ2zYoWyD4t6FZUhidmcEksAdhqlvPJRhpF1H65ly6l0vhcoFDlohHk9uqCFKkoYHX4zy33PBS2PrSf38dIjQDswH5P52JFzsMge/ykLavs4f0FQuaCNl4hjj3V6jvm+4kMqUox6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NZ/daOLr6ATh3VRRK36CaScFCXRGx+3/J9AFSAhRvY4=; b=KpES6iYTDyYmZn3i33+ZnF3lW47x5NlzsbkIpV1dtOpq2zPTq1Zd3jqIx5uv0Wp9npL9k2BWQqxgYe9ME+64V/cdWcwQsnSoxDmKZU1t/tK4svSWXaarL0Qd1XWI+Q9FhDg8SWW8dgKNxy+YZu676vJeAYqLfGaGHR/QqC2DRU5sbxRhjkLOMtCRxt9uNXxhgT2gneilPUZuwffft+8gmhaXRCT8qqtIZPqUX5z2sA4t2oBGGeErETe5d4UKJ5rKBdevSoNHIKkYQgELwfwoLkhsIk5hHOju77vaWCPShO5NMMjcdpsgeZcULk/SU7dzGdwtzavwqcq0kkLA2NkG3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) by SJ0PR11MB8270.namprd11.prod.outlook.com (2603:10b6:a03:479::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.33; Thu, 6 Jun 2024 16:56:10 +0000 Received: from CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::7de8:e1b1:a3b:b8a8]) by CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::7de8:e1b1:a3b:b8a8%3]) with mapi id 15.20.7633.033; Thu, 6 Jun 2024 16:56:10 +0000 Message-ID: Date: Thu, 6 Jun 2024 09:56:08 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] igb: Add MII write support To: Andrew Lunn CC: , , , , , , , , References: <20240604031020.2313175-1-jackie.jone@alliedtelesis.co.nz> <1dbb8291-9004-4ec2-a01b-9dd5b2a8be39@lunn.ch> Content-Language: en-US From: Jacob Keller In-Reply-To: <1dbb8291-9004-4ec2-a01b-9dd5b2a8be39@lunn.ch> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR03CA0183.namprd03.prod.outlook.com (2603:10b6:303:b8::8) To CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB5089:EE_|SJ0PR11MB8270:EE_ X-MS-Office365-Filtering-Correlation-Id: 2605a6bf-08a1-401f-9b8e-08dc86499109 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?T0RWUGdhL3M1a21CMHErdnF4eWRSWGVweXV4Uzc4VXgzMFQyYlNyM3hVK2NK?= =?utf-8?B?UWF5cElPdks1T0xic2xlTVFhR0dSWW9YRVhNSUhYbkVBYUNBVUY2U3N4Z0R2?= =?utf-8?B?WmEybnhaNXN4NDFBSnUveGh6M2lIWXlBU1hFNmFDOWx5OTN3RHRodGQ1Rit6?= =?utf-8?B?MGdjbklUQ0U1Z21JUUlhY1YySmpiMGQ4dWgrVlBNeHRPejBxRU1QL2dLSWpL?= =?utf-8?B?UGp5UUVCdDdTS1VnT0dJOGZqVFhseTFNVmRobldBTW9NSjliMmd6OXBhVHJE?= =?utf-8?B?WVArcndGMG1UdWVpZWZwMXI0VGJ0d3NtYVpCU29NbHI2c2xudTVKL1g5ZDhO?= =?utf-8?B?WlRhamhGS3VRRjdudDUvekpWYmcrd3BpcUNrcXVHeEdqeGlpc05kaHg0ZVV5?= =?utf-8?B?d1dmZjl3RzdXOGVpTFJvdDlPdklUaW1iW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dHFOeS9KbzlkM3d5WEI3WjJ6dGZRL2hrZUdXZkJKUEd0a043?= =?utf-8?B?VGtFK2RjUUZnZ25tbUZ6d2dFekFDTDJHZ1FOMnBqSWF0a2ZOdHB6V2NwemVG?= =?utf-8?B?Ti9iRzZ4OEtoaCt1aTJkNnM3WWJmLzQzYkM5ZlpKcTVROXlNNlAxMlE4Vi9Z?= =?utf-8?B?YUZQdUUwZlBnSmlnWUx6UUx1c2luMTZHdFM1d3ZJNVI0UStGQWVCeEVJSE9V?= =?utf-8?B?dElLYzA2V0cvS2hSQ1VKK2MySWtyR2wzV3FFZXVGeEJRem5Oc00rQXpXcXZY?= =?utf-8?B?RFk0cGZ2VE1FcUY4UmNsT0s0Mlpja09PUXhjQkFpK3N1Tkhya2ZudFZtaHhN?= =?utf-8?Q?L93VIWGpyydsNw99+y8W?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB5089.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RVhaOERYTmZ5bDFxV0hGajZDa1lxdkNsWXhZM21TK3dScWRSMzh6a1RlTjJR?= =?utf-8?B?L3Y1S1ZrR0cxVERvbk1vTVdpY0loaTdqRTdGSXllaXVCSmEwbHNFaVRjeFJJ?= =?utf-8?B?VmlkVXhIeHVzRUhCbGJYcmcrNjNwVFYvU2g4citLanpoUkoxc3FCOHZLdnBa?= =?utf-8?B?VlRvbVdETTFLWE0wV2t0cmJQT0k5YzR0Z3dISVA4N2tWSkFxeWdSS2xPNnhq?= =?utf-8?B?aHRpRDhQWEhRVFUyYkVRb1pYSVdLUVlLellzbE5zTXM0UGN3bXF1WHMxejJH?= =?utf-8?B?UTVSR1dIbmRoZERsTmZHM1RSUDVHUWlYQXp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VE9PenJ3bDZIVFNmd0pFQ21ydEpmSXg2TUY2K2xiMUEwbUhqUjdNcitCWU9N?= =?utf-8?B?ZFE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 2605a6bf-08a1-401f-9b8e-08dc86499109 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5089.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2024 16:56:10.4832 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PjdJwcXc+j167o7Os+e4hN6VV7n4tRblL08h3LT4YGy9JvNwNvT/u5FRf+TqN/fDeqJfB7AY8k84FNd6DEd5/3udMJYatj83LGMrVZpMgd0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB8270 X-OriginatorOrg: intel.com On 6/6/2024 8:41 AM, Andrew Lunn wrote: > On Wed, Jun 05, 2024 at 01:51:24PM -0700, Jacob Keller wrote: >> >> >> On 6/3/2024 8:10 PM, jackie.jone@alliedtelesis.co.nz wrote: >>> From: Jackie Jone >>> >>> To facilitate running PHY parametric tests, add support for the SIOCSMIIREG >>> ioctl. This allows a userspace application to write to the PHY registers >>> to enable the test modes. >>> >>> Signed-off-by: Jackie Jone >>> --- >>> drivers/net/ethernet/intel/igb/igb_main.c | 4 ++++ >>> 1 file changed, 4 insertions(+) >>> >>> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c >>> index 03a4da6a1447..7fbfcf01fbf9 100644 >>> --- a/drivers/net/ethernet/intel/igb/igb_main.c >>> +++ b/drivers/net/ethernet/intel/igb/igb_main.c >>> @@ -8977,6 +8977,10 @@ static int igb_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) >>> return -EIO; >>> break; >>> case SIOCSMIIREG: >>> + if (igb_write_phy_reg(&adapter->hw, data->reg_num & 0x1F, >>> + data->val_in)) >>> + return -EIO; >>> + break; >> >> A handful of drivers seem to expose this. What are the consequences of >> exposing this ioctl? What can user space do with it? > > User space can break the PHY configuration, cause the link to fail, > all behind the MAC drivers back. The generic version of this call > tries to see what registers are being written, and update state: > > https://elixir.bootlin.com/linux/latest/source/drivers/net/phy/phy.c#L325 > > But you can still break it. > 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?" >> It looks like a few drivers also check something like CAP_NET_ADMIN to >> avoid allowing write access to all users. Is that enforced somewhere else? > > Only root is allowed to use it. So it is a classic 'You have the > option to shoot yourself in the foot'. > I don't have an objection to enabling this myself, but I do want to be cognizant of the way it is viewed in the wider community. > For the use case being talked about here, there has been a few emails > one the list about implementing the IEEE 802.3 test modes. But nobody > has actually got around to doing it. Not that it would help in this > case, Intel don't use the Linux PHY drivers, which is where i would > expect to see such code implemented first. Maybe if the "Great Intel > Ethernet driver refactoring" makes progress, it could swap to using > the Linux PHY drivers. > > Andrew I remember this coming up several times in the past. I've always tried to push for it, but so far unsuccessfully.