Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1174899ybt; Thu, 18 Jun 2020 02:20:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyRn5gDLoUuRuMYF1Q9I794EcsxuAJk6v34QAQLssrUecpAF51O0Z3ofV0bsj+ByqAy5si X-Received: by 2002:a50:f387:: with SMTP id g7mr3238395edm.185.1592472033422; Thu, 18 Jun 2020 02:20:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592472033; cv=none; d=google.com; s=arc-20160816; b=PW9P57IaZeHE8g9cwG9JhUYWN/2mnSte6lpL0RIHTQh4SjYWAPjjGJx0AK0wiJKy/p CXtnFbcwUDLuwAqznRfaCcShuivk80UFx8a75P3P75qqBFmY0PcA7hSf0YIxqrnsz9FR mLo/rZHUsp89mmz8xy5K3pvPK3RQSz4lINKE+f+murdusWw/RZasjhh98J+LajQr590J oqx5r3rIsBUhjZYuCBNlESdv2qbXESBS6y4hPIZqmz/rPuEN2L3uiFWPSkMA7qdcXCAM IrkN41/10T0dfYHsM7v+8eZ3OWj7l7nDVqVMrJLjbBu8K/KrvBZnLNWvx4ZsyyQzSECY LZjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=z8nLtniSUTwDDfd3xamrlaMHNc2J6LLLxRRAmrLugfc=; b=GDA5tfE/d5nWEq7ehvFd8wT9yx7eqWzJBAOy7F8aAySMIRc3TEh91kcN38wdZ/iH5Q b60uKvjYpSksmxLVa0rMEBKv1T+9ENhAMzRXEKGDtLi1ErleVhv5VDRGFszuQPY6vSrU secrUe+HIFkVNJ8hnXWdFFii09CiXzp125HmMf6ZyGhmzMk7IGhWUBq+NKc7ChJtNKQ+ JD1SW+gyuppnLOXzkTl/+QA0a05oPN6Kxwt5nNVtOd/77d1SaWWgCHBMNuqCqovw+fAu yFdIzg23RbUv9HuhadYNg8E09wuCi1lcHM94whGRwdEqpk+Dn/JSx5wBraDeiGCKFNPn ECqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WUiFmMiz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si1411719eja.712.2020.06.18.02.20.10; Thu, 18 Jun 2020 02:20:33 -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=@gmail.com header.s=20161025 header.b=WUiFmMiz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729054AbgFRJOz (ORCPT + 99 others); Thu, 18 Jun 2020 05:14:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728983AbgFRJOy (ORCPT ); Thu, 18 Jun 2020 05:14:54 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71E83C06174E; Thu, 18 Jun 2020 02:14:54 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id 35so2204122ple.0; Thu, 18 Jun 2020 02:14:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=z8nLtniSUTwDDfd3xamrlaMHNc2J6LLLxRRAmrLugfc=; b=WUiFmMizj/e43QF9f4A66+T2uWZtKintH+n9ALWbkqK9xh+j7F8ZiQgw9pxlheUeGH t3Oi01AlXPbcpdZ0puHr4Khua7Rh8QX/l/Da8aBvz2upfYTo+WDUJYpUx6nvti10A9RY pPFrour+Wkan5hwTVsHSegYeG3TD1ki5Qcqy46mKt9GV25ybvb7aDLlMDYc59xXSfSph nje/NsQPFrHQp/aKc4YOKpgdQ2kn5OolMEBD3obDZvJeCKYMLfyVSeS0DUTaLDRh9l2J dvTzSlFKPYnuDUGIqjOTZlVjJXNth4e7FCH2uT2N7yUUzoYRlaY858tGJ2yCw8HNco+Q nuqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=z8nLtniSUTwDDfd3xamrlaMHNc2J6LLLxRRAmrLugfc=; b=RtOiHKHC0QYs0wFMepD1tzEPK4AW4CotR6a48KsOi8uRGgpzcXMFrdYXNdAykMHxP+ 3ErctfdjKdM3W8KKDdgVa/XAIHBdgvSLXHetdyX/hGO+tptsCVYC4g0AQ2SZdmbEMMYk m6Wg/hi3h8AK9zLftEaYkdnlEnbb/PUZ7ihtKJZysgoEr3UjW0Gn6m1RYgDqXpjf1XRZ PucyZ28CzA63PpnwmwMkgLV3ah+nqM3bNFjp9D/KIGWxv029SSAi31YdkvC1fVSKoffp h6A69l21zIgMgmWTdKgiJzpGjpzU8vzpL5jHngUtVMKWZD28RpnZQxK4d8nRsUz1L2gl 9v8g== X-Gm-Message-State: AOAM5323r4e8V6RFiJpN0dgYQrx/f/wd67FA8lg2zO/lgGJDiAyLkgX7 tU1UUGUtCvkDHcunkLy3/8u/MxYvm90lFNMd9hI23BjrK6Y= X-Received: by 2002:a17:90a:220f:: with SMTP id c15mr3418248pje.129.1592471693834; Thu, 18 Jun 2020 02:14:53 -0700 (PDT) MIME-Version: 1.0 References: <20200616011742.138975-1-rajatja@google.com> <20200616011742.138975-4-rajatja@google.com> <20200616073249.GB30385@infradead.org> <20200617073100.GA14424@infradead.org> <20200618083646.GA1066967@kroah.com> In-Reply-To: <20200618083646.GA1066967@kroah.com> From: Andy Shevchenko Date: Thu, 18 Jun 2020 12:14:41 +0300 Message-ID: Subject: Re: [PATCH 4/4] pci: export untrusted attribute in sysfs To: Greg Kroah-Hartman Cc: Rajat Jain , Christoph Hellwig , David Woodhouse , Lu Baolu , Joerg Roedel , Bjorn Helgaas , "Rafael J. Wysocki" , Len Brown , iommu@lists.linux-foundation.org, Linux Kernel Mailing List , linux-pci , ACPI Devel Maling List , Raj Ashok , "Krishnakumar, Lalithambika" , Mika Westerberg , Jean-Philippe Brucker , Prashant Malani , Benson Leung , Todd Broch , Alex Levin , Mattias Nissler , Rajat Jain , Bernie Keany , Aaron Durbin , Diego Rivas , Duncan Laurie , Furquan Shaikh , Jesse Barnes , Christian Kellner , Alex Williamson , "Oliver O'Halloran" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 18, 2020 at 11:36 AM Greg Kroah-Hartman wrote: > > On Thu, Jun 18, 2020 at 11:12:56AM +0300, Andy Shevchenko wrote: > > On Wed, Jun 17, 2020 at 10:56 PM Rajat Jain wrote: > > > On Wed, Jun 17, 2020 at 12:31 AM Christoph Hellwig wrote: > > > > ... > > > > > (and likely call it "external" instead of "untrusted". > > > > Which is not okay. 'External' to what? 'untrusted' has been carefully > > chosen by the meaning of it. > > What external does mean for M.2. WWAN card in my laptop? It's in ACPI > > tables, but I can replace it. > > Then your ACPI tables should show this, there is an attribute for it, > right? There is a _PLD() method, but it's for the USB devices (or optional for others, I don't remember by heart). So, most of the ACPI tables, alas, don't show this. > > This is only one example. Or if firmware of some device is altered, > > and it's internal (whatever it means) is it trusted or not? > > That is what people are using policy for today, if you object to this, > please bring it up to those developers :) > > So, please leave it as is (I mean name). > > firmware today exports this attribute, why do you not want userspace to > also know it? > > Trust is different, yes, don't get the two mixed up please. That should > be a different sysfs attribute for obvious reasons. Yes, as a bottom line that's what I meant as well. -- With Best Regards, Andy Shevchenko