Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2039914ybh; Fri, 17 Jul 2020 07:55:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWSnur/IfyNqUevL0ZViUrrAd0R+HJOrx7zpkYC0/YTv6rurhM1Zlw+2O0Ig6rru8Udpqs X-Received: by 2002:a05:6402:1ca6:: with SMTP id cz6mr9188917edb.171.1594997747849; Fri, 17 Jul 2020 07:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594997747; cv=none; d=google.com; s=arc-20160816; b=eR2k/n4uwbBCpFibdzn6/YFIj3IkBO6443XOTohZIFKtBqx17SbU06yqQdQ1BcZYfE 0qLta4Bau3c2rHcIw3yBsNeoh9N/jwXCT5RDFw3l29Zu+mNkEnMWscfugVMevuLfnlxm oufqfwuy62RrsZZifFm9kqzt16WlC1cMM62Al35oK59xLwE1HaV7dalL/mio/w+f2AQ9 +lFIvLT17d/vwOI3fYv80QXg/2n0s+yZlLtoF6jD7YCoG3JjjJMHJStYfiDQLaX6Syo+ Wno/kvulEomhk40kaspAqg332Rrrn+qnzdJ3nx44EK9mfH1RQxP42tCw9t+ZelPe/7/J pDpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=QzYs5Cp6horZQmnu3E3YUQn22S9wKCMrFz8p9SJiEiw=; b=dfYApv+c26hVCle6WI4q6R/l7D3iqln3K+cOipn5aCTecDsIX5ZVoZNM2vQmCyke2X LA+/ud1M8Mrde06nmAOJGomSn0snTQJ5HUjliyd0CXiUMEJ6Wow3EOoc+piqoM8BnYS/ ux0VK2Ys4cwA0PQ6Dpl/Zu8mS5jTY3Zf4j28pgROsgYMchwqGTihCTHx/jvbWkEG9o3B RQfEdWnuC2arc5D+AVPuMIVs0lV/ejg5S1clWjOphEspq0PR4zuIXJ20IyZUH60YKkLj LvMi164zaUZgCYo8W72PQ5ki6zazcxWxy1gCt/wbv9+7c2wa2NSQM4hPl8ghYdZLDfSX rDJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GzsOV7AB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si4966174ejx.438.2020.07.17.07.55.25; Fri, 17 Jul 2020 07:55:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GzsOV7AB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726619AbgGQOy5 (ORCPT + 99 others); Fri, 17 Jul 2020 10:54:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:59914 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726233AbgGQOy5 (ORCPT ); Fri, 17 Jul 2020 10:54:57 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 59BAE2070E; Fri, 17 Jul 2020 14:54:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594997696; bh=ekESCmOxSsO99Jgr9mXcv5Rm5ARC6YWFI2L+02tuKtU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GzsOV7ABb0hP1Foh8qEttWwWQ/tenkJ7GyhQaR69Y02hFYIqSrNt7sEEqkwhVEroF SM+RQUD7gxa41FoAgpsG71eQv9YJ9EHA/lprT3b0SomSeCl2M4TEA5fbwUA3LCTS1z Tr9PV63pPpVPtoQqlw6yGTEZHO1fuLqTSJY6F8IM= Date: Fri, 17 Jul 2020 16:54:48 +0200 From: Greg Kroah-Hartman To: Arnd Bergmann Cc: Daniel Gutson , Derek Kiernan , Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Mika Westerberg , Mauro Carvalho Chehab , "linux-kernel@vger.kernel.org" , Richard Hughes , Alex Bazhaniuk Subject: Re: [PATCH] [PATCH] Firmware security information in SYSFS Message-ID: <20200717145448.GA3008378@kroah.com> References: <20200716223627.253936-1-daniel.gutson@eclypsium.com> <20200717062841.GA3238569@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 17, 2020 at 04:40:40PM +0200, Arnd Bergmann wrote: > On Fri, Jul 17, 2020 at 8:28 AM Greg Kroah-Hartman > wrote: > > > > On Thu, Jul 16, 2020 at 07:36:27PM -0300, Daniel Gutson wrote: > > > +What: /sys/kernel/firmware-security/bioswe > > > > Ick, I stopped reading right here. > > > > No, this is not where this belongs. > > > > We already have /sys/firmware/, right? And firmware-specific > > subdirectories below that. > > > > We also have /sys/devices/system/ and I think that would be a much > > better place for this, as it is easier to work with a real 'struct > > device' than a "raw" kobject any day. Bonus is you get full support of > > userspace libraries when you do that, unlike when dealing with kobjects. > > > > Also, this really is a _SPECIFIC_ type of firmware that supports these > > features, right? Why not call that out too? This is not generic by any > > means. > > As I suggested in my previous review, I wouldn't worry too much about > the user interface at the start, but instead first work out how the hardware > support fits in with the existing drivers and once that looks fine decide > on how to export it to user space. > > I agree the /sys/kernel/firmware-security/bioswe sounds like the wrong > place, but I'm not sure if adding any other new directory in sysfs is > much better. I think the most promising would be to have it on the > sysfs directory for the device it refers to, but let's first see how the > information gets into the kernel. Yes, the directory for the specific device would probably be best, but let's see where that really is :) thanks, greg k-h