🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #11771

Re: [PATCH 10/17] driver core: Expose device trust authorization through sysfs

#11771
From: Andrew Lunn
Date: Thu, 05 Nov 2026 14:43
23 lines
10721 bytes
> 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?

   Andrew
Technical Details
Message-ID: <54c9476c-9f76-4ea1-a73a-c9937d6b463c@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357448-linux-kernel-netdev=dewy.ru
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>

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-357448-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH 10/17] driver core: Expose device trust authorization
 through sysfs
Date: Thu, 5 Nov 2026 15:43:53 +0100
Organization: Usenet Network
Message-ID: <54c9476c-9f76-4ea1-a73a-c9937d6b463c@lunn.ch>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3658561"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:4ELBhX9nT7eJGayHQ53agBSOPr4= sha256:IniYombJWpCKICt6y2jI/xcVuMp+IYXNJ6m3DeMQpM4=
	sha1:+2T9u9d+ZLjagVI/5kPPg5rFOK4= sha256:6t4QOLp8i2E6mMoaxzyibIwe66uxUQQfKYhFEdOE1PM=
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 86520112FE3; Thu,  5 Nov 2026 17:48:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
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 RqNolmQDT0f4;
	Thu,  5 Nov 2026 17:48:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-357448-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id D6359112FD2; Thu,  5 Nov 2026 17:48:11 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 379162515A; Thu,  5 Nov 2026 14:44:44 +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=1793889881;
	b=LUXEp66yB/yrTDPqiep6zI9HTnQaZ3H0XvXjvmY5cRdLvyGs5XCP5o/7D4nG+VpwrppT
	 ccTSgCUIye4Cs8zZUrFmYbRdV9VGKFeO1yxIN57zRq8frdgPLS0YfGaa46Aw/iih311Dw
	 O5Z4s8s38J4ZjQL/noBigG+oLUeOtqXuTmV6ucQfyE8eSctxifDXq5O+sEQqnMR2kEn9/
	 X2ohknga8Nu+tCmMw+lzWgUiVI6NJV0sybRdA9BBwAKA0WMZ1uHC8ZA1qBVFvmhBJt6Qa
	 DTsVZz+2b5QyIGAZMafodHlYjCb2fqt3uC/oWst9d/LeKuEGjRq7WnTJTyUBSEc4BDA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793889881;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature: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=EWwMu9gaBRMOSzV/4G3fbg1rV1925IYruXnqky/bmUo=;
	b=Box7l/5mT7yCJDxa1hSxzYkvH0yOOG8gQ2Ct4qxGAIdNdGYix5mRK8zHH7cVdjVB6bB+
	 mFOTkKsca7QGihdMtv9XsG4JXgom8UkezKsgn75b1As4NGGLoDYTSbrvVR9JJlyX1TFdQ
	 KN3CJ5uA5S70uCilbdq0P7XHJbI5cLeOsfY8nV6xJaF/qfXH1cyE/DY40/8EVZKWzzy86
	 D+Tshlb97yJf35YLz8rB2zfZT6sDJlBT0np2vzDmq/lVvqc2j7cxLgbq56svvS8EdYMBh
	 zZp+9Tqz4zHo0+qRtJSXTZ0brmJSkgwOAID84pgCKqq0VJOXCwgsZfo9dTH1GKyNBbQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=uh6gWGZx;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	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 729D2606A31B;
	Thu,  5 Nov 2026 14:44:41 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=uh6gWGZx
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793889880;
	b=XSQiNwUw+vt9mjOUKSLVr4N9hfbbpLjKdIrLLP8OnWOh5aAw+2KYkDrZUJq2I+5HlV25
	 DvvgTGx8ez0GMqXhHQeLvAlWMFfdhyJGkgoqC+WDNf78DWZQ3I7FgAcVOjP0/cxOx6y20
	 AL0uCTQzK13hNNEBrP1k4UFVRUuxMGSH9U3Jx6r41STiVS1dWcdWnzApAmtEBk4PdLbi9
	 F9nJoa6qtYs1+Qup/26iK8oqueSq7+mycyLd7zaKd3Mp579VQDAqSBGS8bwPwU26uz+Dj
	 NyH76mGop5JVOE9Pc5G6ka6UqRRWt75OkwMGgsX5YiF9S3mk1Ad0XzLQgjdSZw1YTkQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793889880;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=EWwMu9gaBRMOSzV/4G3fbg1rV1925IYruXnqky/bmUo=;
	b=dOVEF8o4HCndzhOjHvCbYtqD3UbschVxLm0Yrl+PIodB6FzgxlNCX7TO96zcQe6jKHsh
	 d67zS9BLvZ6n33sc6kRj6GdAJAh4h5CkUFS4T8UPy7ABN16wAxEbnYycfmGL13ZKkNffB
	 7rNarXRBe0wb8SwYWGc/nTk12dHR2M8SUu7WuEBlwdd909l7KIK7+uRosM/BruFaQ51cg
	 uDOvXRAJY2LKj8fFMZbXS8HBFCtT22wPyYfxPLPF2W31nPGUAWUsYYnMIcfrrUhvzSm7V
	 jGulQ8xONsLtru1z6WZaxiMYN64RsMcSxLmtcyf+JUT9MvSYLuOgGIiFd61hgdq2DLA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id B97C4606A332;
	Thu,  5 Nov 2026 14:44:28 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B97C4606A332
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-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=EWwMu9gaBRMOSzV/4G3fbg1rV1925IYruXnqky/bmUo=; b=uh6gWGZxzH/waVbLrmPklKtBNJ
	6wOYmWomrUFQ8/UkMzR1teAAUIA0Mk0RyK2H2lwMScPZHQEUXeBgTnViHak2nIWwJ/yLMZgKiJUko
	wxGiKspttlJq1BnxyjVTEGK1dnHu06AaKVR2E5Gdk0zcAzNZEkey2bfbvx3nyPNoTYT0=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xOygz-00EaZR-NP; Thu, 05 Nov 2026 15:43:53 +0100
X-Cc: 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, Jason Gunthorpe <jgg@ziepe.ca>
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: <9d896ebb-6892-4cac-a7c5-41def47f0be0@arm.com>