Article View: linux.kernel.netdev
Article #11782Re: [PATCH 10/17] driver core: Expose device trust authorization through sysfs
From: Jason Gunthorpe
Date: Thu, 05 Nov 2026 14:59
Date: Thu, 05 Nov 2026 14:59
39 lines
14503 bytes
14503 bytes
On Thu, Nov 05, 2026 at 03:43:53PM +0100, Andrew Lunn wrote: > > Yup, and that's true even in the PCI TDISP case - there's a major amount of > > "communication" and "configuration" involved in that. The principle which > > should (hopefully) generalise is that a bus/host controller driver can > > always interrogate its child device to perform whatever attestation and > > general configuration is appropriate, but we won't hand off any _control_ of > > that device to a specific device driver (nor enable potentially-impactful > > bus-level features like DMA, interrupts, etc. if relevant) without the > > requisite agreement between the bus code and the user. > > Maybe it would be good to list subsystems which the bus driver can > use, and cannot use. > > You list interrupts as potentially being dangerous. What about reset > controllers, GPIOs, regulators? At least in the embedded world, the > bus driver might need to enable power, set a clock ticking, and take > the device out of reset via a GPIO, before the device pops into > existence and will enumerate on the bus. > > I don't see why interrupts are dangerous, which makes it hard for me > to determine if GPIOs and clocks, and regulators are also dangerous? IMHO we shouldn't try to over think this. The overall point is to give the userspace a place to inject policy. Bus drivers should try as hard as they can to contain their child devices. Like PCIE should activate the iommu, disable ATS. USB should limit the messages it exchanges, and so on. When userspace accepts the bus driver it also accepts its containment capability. So if it accepts one that uses gpio, etc then that's fine. We are not the point of trying to describe what threat models various kernel drivers can support. Userspace has to figure that out on their own. Jason
Technical Details
Message-ID:
<20261105145952.GA663069@ziepe.ca>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357458-linux-kernel-netdev=dewy.ruReferences:
<20261105-device-trust-core-v1-0-1e536825b4eb@nvidia.com> <20261105-device-trust-core-v1-10-1e536825b4eb@nvidia.com> <2026110514-bunkhouse-handset-6a3a@gregkh> <20261105132729.GB8298@unreal> <2026110535-engulf-precut-cf10@gregkh> <9d896ebb-6892-4cac-a7c5-41def47f0be0@arm.com> <54c9476c-9f76-4ea1-a73a-c9937d6b463c@lunn.ch>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357458-linux-kernel-netdev=dewy.ru
From: jgg@ziepe.ca (Jason Gunthorpe)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH 10/17] driver core: Expose device trust authorization
through sysfs
Date: Thu, 5 Nov 2026 10:59:52 -0400
Organization: Usenet Network
Message-ID: <20261105145952.GA663069@ziepe.ca>
References: <20261105-device-trust-core-v1-0-1e536825b4eb@nvidia.com>
<20261105-device-trust-core-v1-10-1e536825b4eb@nvidia.com>
<2026110514-bunkhouse-handset-6a3a@gregkh>
<20261105132729.GB8298@unreal>
<2026110535-engulf-precut-cf10@gregkh>
<9d896ebb-6892-4cac-a7c5-41def47f0be0@arm.com>
<54c9476c-9f76-4ea1-a73a-c9937d6b463c@lunn.ch>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
logging-data="3661060"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:AcPxUZuay/8efABixKqxbh0ZUkI= sha256:YQ3yxi6GzQnqzrH90ENX0IPAbqaA/QI9pF1T6XLRnSw=
sha1:hYMsUNem+IQa70LvIItmx9zTcRM= sha256:e5DMAIR0GqsgaQ24Xg/RpSmGKwrIZGPvtX64pe9Vhho=
Content-Disposition: inline
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 5E3C6112FF0; Thu, 5 Nov 2026 18:06:02 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.15
X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=ziepe.ca
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 tAobc4d9VJmK;
Thu, 5 Nov 2026 18:05:58 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-357458-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=ziepe.ca
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id 5A4BD112F10; Thu, 5 Nov 2026 18:05:48 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id 981AE60D490; Thu, 5 Nov 2026 15:01:06 +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=1793890809;
b=D+SIAR4dPJ7t3Sl07UjgbTtyVb8h0mbuSY0soXrsbgpDg00v8gOPP5dEHaBi+fwIohjm
iREteQZ1awViJN5I9W/WaDCcYNihgk/8NI7PjAeFENJWNqdylG9yMhOfZ93HbAP1vKuf4
wn0DIaVI6UKNu1drtaisd0FxMMCxbP9CjAANdkpxzkaG2wDaLGVwKouPFTWu+eyFkAAxi
faw2idc0fsF3p8YXt3w75OkNcsFSOm9XDa+rYP64lRLoLWvkrUsGZ7Li+2Hg6bgAtWJCz
y6S8cMyzBN23ZSomLeMyg4dI1HQvWd14/mjUH64GjTQQfrbKB27vAR/WkgcFdDkbJOw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793890809;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:Received:Date:From:To:Cc:Subject:
Message-ID:References:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Type:Content-Disposition:In-Reply-To;
bh=sv1GqJtGOVxD2bg62FKkDXwLV7ybcH0/LrV/szN48RM=;
b=KjXTmT9BC8Yx4kTkD7nBIAaI2OG+xqwCycAbwI6f43vxd1zUkR94Gfr9oo5mn6so4yyU
/RYNHdp6jmUw/pfQ8IJYsYJGjEUw1OKuJ5HVOvDRgGnOX451foFdn1w1psz0q3bX71ZBG
57YYPcRSfR4gDrkZcg70v98f2oqqEx1BWlIdnoymfrfmPIAdR9fksztJS5eTChZr7uDr6
6X/lJcEyGU8mV6KJZzSAqsU5vYjJeWphR3BawYEBFDY6ecb7RDXjaKu0AA5ZIImE3p3GC
HbAvKkmXXfDJnjzlWpghWXMgVfWVU3C4rKw2+LjYbe3w2IIFevOJvj74Gd39iY+Xbtw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b=bpBlGkKK;
dmarc=none header.from=ziepe.ca;
spf=pass smtp.mailfrom=ziepe.ca;
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 0D677606EEA8;
Thu, 5 Nov 2026 15:00:09 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b=bpBlGkKK
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.182
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793890796;
b=a2S06/bVYDTOv79KsjhjeZOACFgNVCRdxoWCs6NOodqh262q6d9IFBclBfToePA/be8j
E4NQF+FMWe5H2DbAxXYCPt4qNczJuIGXiRoUACW65STd8MjZIqkbywPkQQEogzH7DCtq4
qDNLXiDzHyz44myf9RO9PMRmL+IGk6vqdu/nNVflKWwWydUl/JsKaY8j3pA0h2gdGxxnm
eUoeOJLJkLEZ5so586/8QWIMkwbrDGpsC1mVgedPrdws5c/Gad47DNPHXN37S9Z7hVcrV
RlfqfGBYbrNu1ycQUleMFRefFkXFhgI+XqblbZKT4ufeJ9Gun1eXhcvt8XrKeoCXWqQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793890796;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
Content-Type:Content-Disposition:In-Reply-To;
bh=sv1GqJtGOVxD2bg62FKkDXwLV7ybcH0/LrV/szN48RM=;
b=B3LwamSY/w18ZjMRcnxR3s8Kwko9hj3Q6/mP4YmjLo+nl3WIndSVIGCoHlRSfgMaCCsG
t93ZDvVbBjBweS+eGUS/v4yvOk3L//kA/xcRcjN16xKHuazg22M1KXmSwLKzKvncTznfA
hM84X8r7VLOuGfMD4fwXHVn22FCZMpErRWg2R9TYG9ZtMgHmSItDNNSZUoSB2qsqUKYJD
NPa5J8jl3cMbhAJTthX259lyCCy5qqijplE93Gt5Un63Pk+PEoORcrAwvIXJeJPcqFjA4
YKwxihcLN9yFaxIZam21twz2gPzE6h/TpuFE7TXpdZUayESSICCwfSpnY/l7//l0t8g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=ziepe.ca;
spf=pass smtp.mailfrom=ziepe.ca;
dkim=pass header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b=bpBlGkKK;
arc=none smtp.remote-ip=209.85.221.182
X-Received: from mail-vk1-f182.google.com (mail-vk1-f182.google.com [209.85.221.182])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE874606D805
for <netdev@vger.kernel.org>; Thu, 5 Nov 2026 14:59:55 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EE874606D805
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca
X-Received: by mail-vk1-f182.google.com with SMTP id 71dfb90a1353d-5eaf34452a9so637507e0c.0
for <netdev@vger.kernel.org>; Thu, 05 Nov 2026 06:59:55 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=ziepe.ca; s=google; t=1793890795; x=1794495595; darn=vger.kernel.org;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=sv1GqJtGOVxD2bg62FKkDXwLV7ybcH0/LrV/szN48RM=;
b=bpBlGkKKYmX68RAsE9EkcMc+aPwep+Jt4D7c/OZg3kVQeHpZyfmkntRrTHho6EP8wd
Ydil1svNY3g9CpIhj2GHYQ7d434gL/SpPpSr+DXV/upiAZMCvC9nreTgfts3zuhMwCcm
Qskdy4s4owr7KaU/9VifToG4uoaZc2rkAAcVF19z0f6dAbM64dHUzvDPxywg/TCQt9WF
2ooxRy05KElc/DdqHagH2RzabKyRAsKGjv0e7Kqhd2EeSxnmqf8lncs0n6nLDm8+XKat
++mZs0G+SfgC2WTprHf/u2SbYhDe7xP1yG7Q6zYRZWtdxX3hRx/GELgc/Kk/Jaz7fcIZ
8CIA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793890795; x=1794495595;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=sv1GqJtGOVxD2bg62FKkDXwLV7ybcH0/LrV/szN48RM=;
b=syXe8QFKKBsp7oOIIgkJ6SM3P+ldX7L0Jy+L4MsNoUmIMtEbDy5QTEpFdDjJ19EuFj
a4YOATltTHSLIvwvVE3KSOeei73/3WP8bmg3dzZ1oE8JieiiC3aWQ9dDnf1vjfsFdjdK
+a9QRvjHuwB+tBiveXpXKFfA7hVXJwglIhbL5vz9G04IsyK7jgZP/61NM1ozvG6zy2PY
QVVHh/gWK7oJMBYz7pOE7Yt3XQkEtReC6W/GwErFaxpc2/bjGrDGWRhCjvBDaIV0drHz
EyvdDANtsMlr/CBt7MVjtKJmYtOpOwVrxnsXmCR7Am7vpvhyAWu1cM0DhH1GzpUZvkVI
ai4g==
X-Forwarded-Encrypted: i=1; AKwUvBxxvZBN6ozWOkJXryx6aeHA8JB9nGV0BjqeAyDxvB2hGJPA4yL74UnaQllQw96Llxf/UAIqCjo=@vger.kernel.org
X-Gm-Message-State: APuU4Z/XWmGB34pM/jwVhLVnRzrNC/oMkQvRNJtUVOVDvTvJH3dE/YcM
2Cy+NH5B89IMYuJXtpn0BIF76yYb/ovW6E1XoWb0hDJI/x1e52T04w6JYZZOmom825Y=
X-Gm-Gg: AYBFou0nytabhzRTucIC3Wm341/Co8k7PaU/BtxuqlSC5st7zcUKUdUoeK+mnGVoBkF
8DXrI6VPF9XR6MkCcZ5/BofZ+4TLRWmmtS5euYTC0djAmvxWZSrG9lnO4u+KoMcrZNn1rZmDqVE
K+g2JQxgZklaD0e3rd7DnFP7tPJXxZtRQNIFqQq6AKOrvaFSiAq7rzGtqp+10Rm/6mNEYbt0ff6
CH3PntWs4MJIpG/e8FRy2klwYl2pTZbU0JGCkn9zhdO9nrzAgpm6XAV9L7iw68DyLuqeYTYh8fX
olsomMxSAismG531tIECKAIMIvq9kqH/II57JLx1YPs9+TEjxMIN9jNguZY+/AdyQ7xUc/VwEwj
gHhdOTlixAfJCLnjfCvVkOyyveAiJCYU/myN9NkxJdTmMlY4qq46GlqEfoB8p2uRfnvR+xK5Im/
mFdkZUlVNUXJu4HZXt4Uppg3r2p5d9fDrmkWNSAackDozsr2ULdxiYRYi7gw4f0+APu6l2N6T+l
d4LeDlNO2eoDm9CIMq9tloI2diQewd08oGk/JM3p2nh4TVR2C0xxaWC0Sr8lzMhfWRJi6EKu18R
x1kjdPtu+DMz4R2MK63/T+W72F6QNxEd5wQe4rdAxLnc47qVkfyWtKWg43dXxL3AzL9QzT66Nr1
vrBzKKxhb4PU=
X-Received: by 2002:a05:6122:6c0a:b0:5d9:302a:8243 with SMTP id 71dfb90a1353d-5ecb429571cmr1423011e0c.12.1793890794801;
Thu, 05 Nov 2026 06:59:54 -0800 (PST)
X-Received: from ziepe.ca (hlfxns010zw-159-2-239-150.pppoe-dynamic.high-speed.ns.bellaliant.net. [159.2.239.150])
by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5eca8df2a38sm4234612e0c.16.2026.11.05.06.59.53
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 05 Nov 2026 06:59:53 -0800 (PST)
X-Received: from jgg by wakko with local (Exim 4.97)
(envelope-from <jgg@ziepe.ca>)
id 1xOywS-00000002o7b-2oaN;
Thu, 05 Nov 2026 10:59:52 -0400
X-Cc: Robin Murphy <robin.murphy@arm.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Leon Romanovsky <leon@kernel.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Danilo Krummrich <dakr@kernel.org>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Johannes Berg <johannes@sipsolutions.net>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
Bjorn Helgaas <bhelgaas@google.com>,
"Joerg Roedel (AMD)" <joro@8bytes.org>,
Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
Vasant Hegde <vasant.hegde@amd.com>, Will Deacon <will@kernel.org>,
David Woodhouse <dwmw2@infradead.org>,
Lu Baolu <baolu.lu@linux.intel.com>,
Johan Hovold <johan@kernel.org>, Eric Dumazet <edumazet@kernel.org>,
Marcel Holtmann <marcel@holtmann.org>,
Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
Nipun Gupta <nipun.gupta@amd.com>,
Nikhil Agarwal <nikhil.agarwal@amd.com>,
Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>,
linux-kernel@vger.kernel.org, driver-core@lists.linux.dev,
linux-input@vger.kernel.org, netdev@vger.kernel.org,
linux-wireless@vger.kernel.org, linux-usb@vger.kernel.org,
linux-bluetooth@vger.kernel.org, linux-acpi@vger.kernel.org,
linux-doc@vger.kernel.org, linux-pci@vger.kernel.org,
iommu@lists.linux.dev
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
X-In-Reply-To: <54c9476c-9f76-4ea1-a73a-c9937d6b463c@lunn.ch>