Article View: linux.kernel.netdev
Article #11836Re: [PATCH 17/17] PCI: Replace untrusted state with device trust
From: Leon Romanovsky
Date: Thu, 05 Nov 2026 18:26
Date: Thu, 05 Nov 2026 18:26
64 lines
12265 bytes
12265 bytes
On Thu, Nov 05, 2026 at 10:43:00AM -0500, Greg Kroah-Hartman wrote: > On Thu, Nov 05, 2026 at 10:03:52AM -0400, Jason Gunthorpe wrote: > > On Thu, Nov 05, 2026 at 03:18:56PM +0200, Leon Romanovsky wrote: > > > On Thu, Nov 05, 2026 at 08:12:51AM -0500, Greg Kroah-Hartman wrote: > > > > On Thu, Nov 05, 2026 at 01:42:30PM +0200, Leon Romanovsky wrote: > > > > > From: Leon Romanovsky <leonro@nvidia.com> > > > > > > > > > > Convert the PCI specific untrusted to use the common device trust > > > > > level. Adversarial means the same thing untrusted does. > > > > > > > > What about for USB? Will that "move" to use this common trust level? > > > > If not, I don't think it's very "common" :) > > > > > > It supposed to work for all buses out-of-the box, at least this is the > > > intention. > > > > You mean DISABLED/FULL should work with this patch series on USB > > right? Meaning the core code will not bind a USB driver when DISABLED? > > > > I was wondering if some of the broader things we are doing on PCIe > > also apply to USB, like device authentication. I don't know alot about > > USB, but I got AI to help me find some relavent spec information. > > > > https://usb.org/authentication > > > > This looks like the parallel to PCIe SPDM device authentication. I > > would expect it to work broadly the same way as PCIe if anyone wanted > > to implement it: > > No real need to as no one actually made a USB device with that spec :) > > There was some patches on the linux-usb list 6 months or so ago to try > to implement it, but it stalled due to there not even be any devices to > test it for. > > > 1) USB discovery discovers authentication support and creates an > > attestation subsystem device for it > > 2) The struct device starts up with trust = DISABLED > > 3) Userspace runs the crypto flow through attestation subsystem. This > > is extremely similar looking to PCIe SPDM: > > 1. GET_DIGESTS -> device returns a hash for each certificate chain > > slot it has. > > 2. GET_CERTIFICATE -> device returns its certificate chain, read > > in pieces. > > 3. CHALLENGE (nonce) -> device returns CHALLENGE_AUTH: the chain > > hash, a salt, a hash of its descriptors, and a signature over the > > challenge and the response. > > 4) Userspace inspects the above and approves the device > > 5) trust = FULL, driver is probed. > > > > But I supposed Greg is asking about /sys/bus/usb/devices/DEVICE/authorized .. > > Yes, that is exactly what I am asking about. I used AI assistance to create the conversion, which produced two patches. The first exports `device_trust_set_policy()` to support `/sys/,,,/authorized` and `/sys/.../interface_authorized_default`. The second adds calls to the `device_trust_*()` functions. https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commit/?h=device-trust-core-v2&id=98f5d11580d736a7878323dfb7238cd08c6c76af https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commit/?h=device-trust-core-v2&id=f10f8e448540982699438dce369fef6cbfabcba5 Thanks
Technical Details
Message-ID:
<20261105182622.GD8298@unreal>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357540-linux-kernel-netdev=dewy.ruReferences:
<20261105-device-trust-core-v1-0-1e536825b4eb@nvidia.com> <20261105-device-trust-core-v1-17-1e536825b4eb@nvidia.com> <2026110526-aerobics-correct-4c06@gregkh> <20261105131856.GA8298@unreal> <20261105140352.GF3889730@ziepe.ca> <2026110558-tartar-juicy-036a@gregkh>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-357540-linux-kernel-netdev=dewy.ru From: leon@kernel.org (Leon Romanovsky) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH 17/17] PCI: Replace untrusted state with device trust Date: Thu, 5 Nov 2026 20:26:22 +0200 Organization: Usenet Network Message-ID: <20261105182622.GD8298@unreal> References: <20261105-device-trust-core-v1-0-1e536825b4eb@nvidia.com> <20261105-device-trust-core-v1-17-1e536825b4eb@nvidia.com> <2026110526-aerobics-correct-4c06@gregkh> <20261105131856.GA8298@unreal> <20261105140352.GF3889730@ziepe.ca> <2026110558-tartar-juicy-036a@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3701423"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Gu91nWkuo/1q9ytm3olMaQeGY+8= sha256:G1Pu25qE8tEe09m0aXC1cncemcxBXMOP9XuRPQptetc= sha1:LkNzQ8+iwSSvUNTNibxpgj+0QT4= sha256:LyWwMYmIVIZF/wUTtU7A4Sd0UzxQFeZE2TX/K6LCfPM= 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 5A3A8113059; Thu, 5 Nov 2026 21:31:50 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.301 X-Spam-Status: No, score=-2.301 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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 (2048-bit key) header.d=kernel.org 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 HBGvJmg3MxyU; Thu, 5 Nov 2026 21:31:46 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-357540-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id BBC0611303F; Thu, 5 Nov 2026 21:31:35 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id E944F323A5; Thu, 5 Nov 2026 18:26:49 +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=1793903209; b=ItK39CW1bDOqkYjFBYA/ghyCor/FhRzoOF8rie5Ia+1lxWdL6yH5nOua1WAFyQ8eRYY8 eamGTqpgQY/J8RHsQiNqns48J3gDL3/qd3VyEd6L3YMNV+yws+HBRO3+cuc8h0urfTlVM EchqJrE2kjhoxat9A1rqe0r6nhz1Xb+pFp8g7Za+KTLZBRifRxuSoKaj1mPIgcYvwBb1b sEdvBpPyBiv5s2i0f45JzPoaISAmY6Hfew72dczUhImKQ8y2dGtiGItuUTQ+hXmH4OJvN qFCRi72HVMmla8ZO2vEYeScl08m3TfHKJNVc4JVG/ln+3DNd6sh6AtrkG93T6zHz/bQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793903209; h=X-Original-To:Received:Received:DKIM-Signature: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=/R0hL4pC4E1+M4yPEUjAb9DEswCGIx3z9hc5cmLnrn8=; b=uMEFkypnsOy9OmMFcrfPisCt6E+KdBlcWkPoDQZVbY38SQqWdpG6+53Sm5WhvujYiobw 09c//XXuF1FMdMnlNBLc4iN93BEyQmOLKBdPSclSxGjtDOncQf7BqGNm0ulBP8LB6yjkV ayLFM+99NvO+miMEtpx+4r9HztTDS7NhrbyCk344/qAXLNp34wRKSuS421XG6mdkiSxop GtrhneRX55ytXFzrEsINjLScGn3ApjpiwkrHorMwzOJS5DanOgNCC5vGJlaq0//FsMmCy ZSnv2MhVG1hqgVR7f0pvXJ8oM5dNXDdn6fTxTMvDkkZEbTcrHWHQBDez74taokrpkrg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="WSADaA2/"; 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 BD538606A326; Thu, 5 Nov 2026 18:26:49 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WSADaA2/ X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793903188; b=cFM0+pzysVFTp+ZQ5cSZTjmmpwFyMz3EpbFRkvFuDpyCin/F5No5Ml/nEDhIeer/MV6J po2TvQq+RHCW+nZEBYxCUfbbkyEF8xpaWCPnAV0MxID6+fBFZg6d6QnC5qDrPLg0vpLeX Mli8SmHCE66PPt1WLy/wBeAc+srP2oURiQBTYhS0pUeuqczi/V0IlhguDu2DE390Tl4DA XMcmHnKdBW8VvT6FJD0GbEEXs2jhBAmHlKpb+dhJ7bT6dv7X1JHpy9ZFgmhDM6+mrBZYO lQpYA6SifEHIy4IoCYtqCHDxq0mSEVzcadB7DYdPxkIuBKR1z5VkbuWyAuO2ZDOXhww== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793903188; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=/R0hL4pC4E1+M4yPEUjAb9DEswCGIx3z9hc5cmLnrn8=; b=RYbn3/hxRfDGlhYufbFPel9k+IJBb/WkzM6TuPi74pX12Y/kSUV5CDcdqK8c3kzBx71Z TYIrcpzOQpzdxPcOSpEHVq16URrYuDRVOGWqeSEv3NQEmKnzU9iTCqMmkzWkofnbCB/5+ AJTrFn+5nOXPdEo1aenNb7O/W7T5Gt6MvndMHAZvsFBvVXta3q4sNDnNX2QyqSMCKpFwR dpPyPm6M7QaH6/RP/veODloWicMlvhHqzrJw9CIBj7UkrzxafIgFw4qoXaI4P6GT1rLbo aP0irO+QEPK2WP/WDHgYoGn308x6xFAFKODSynwujMSV+1Yr7vIzAXeoQQzL2lreKuQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="WSADaA2/"; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D977D606A31B; Thu, 5 Nov 2026 18:26:27 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59AEC1F000C1; Thu, 5 Nov 2026 18:26:26 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793903187; bh=/R0hL4pC4E1+M4yPEUjAb9DEswCGIx3z9hc5cmLnrn8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=WSADaA2/B0njymg1oF8Zt+aQWjkjZp7YNB/CPyp9J98Lqyl4v6ZjN9fdw7/g/aDHs chIL9JCou1TsxyZomGHv2ZBjLQZ9Z1DMWTUjRpmHis5a1j1jVyAEUyc+4ePcQsFPhd OPBs016zO1yFXnt4RNHofu1Kp5EDvzii20mg9cT1xiXd9rLrrVGa/442/RYi2She4m EYJhTmYBt2Rvig1iLH8Imhje9jvJRWYRfaZbM8Jt178SF2ils406aYXkle+Zdk/FLn gDUCaggZAfj1BLbk+EODCjDPXj1SZjVg3T1elHfRmQ6s3AYErm9i4G5kIxtD/aXjgb Fehrul5E5Cuyg== X-Cc: Jason Gunthorpe <jgg@ziepe.ca>, "Rafael J. Wysocki" <rafael@kernel.org>, Danilo Krummrich <dakr@kernel.org>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Andrew Lunn <andrew@lunn.ch>, 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>, Robin Murphy <robin.murphy@arm.com>, 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: <2026110558-tartar-juicy-036a@gregkh>