From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793887436; b=3wcUd2vWKNZxYNy61jnm+7huwceJFc/O5SeoC0VSlqtyIMDEJ7yZiblqYAGZjHsUz3hJ 0TyJBHVO8vPUKb0wYpRHbTNKnQOzZMIKf+MVXNqfFGu0RVV84tJE5UqQ2p2RCa3HZn/LX aOTXgQYZ3KchjIFX0CNmHl4qb6VmCAtrOFAEXrE/UpQn5+pzG31HbAugUhRg5cIjBwlYz NihPPm0Hbg8UnIpxueOw5cNvRc2eQBYo126+6Jm83wIurTsBHDlPJQH1EZEcEjjxiW5In 2fMXVEbA/y1iwUPPCJZRxyRv1s0n4ByblOvnttZMYyIgwQlHx2qPOSt1QwIDLVKyhrQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793887436; 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=aHvVt/C+p86HW0thhKORyrpJuSX9G1Rk+ExvThy6OxA=; b=2fw0hqFaRNZnbKpdX6o9J9yNWrVIiZMmFT4xXC7rMDnvhT8XBDkSjAFVAa5kDXmWEvAz B8kuDpFH7hYUmYxIcJ/l9n0I42B5sbeBI0q94hKQH+UyPwUYnpVNIV9YFVqLagHPVmxGE oiETy8OBNfJkWlguNNeo6Gp1Ki27Ta5cd11fwVPdjXCao2M14OC7x0UaM6y/9g+5tuOXJ FxzGbON/eOH6pzfYQ2OEs2rNYG8aKZRY7MDF+YnzjenytB9r9xY+NuBpx0n+yHevHK0GD m+UWGKLWLuKBHUbDw8jRTYnd9SfhVUlCQbHRfukoQOv9TNq927NgSpbZoqrAbJzaq9w== 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=kz1XgIBb; arc=none smtp.remote-ip=209.85.222.46 Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (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 60776606D80C for ; Thu, 5 Nov 2026 14:03:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 60776606D80C Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca 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=kz1XgIBb Received: by mail-ua1-f46.google.com with SMTP id a1e0cc1a2514c-990fbae94f5so1174505241.3 for ; Thu, 05 Nov 2026 06:03:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1793887434; x=1794492234; 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=aHvVt/C+p86HW0thhKORyrpJuSX9G1Rk+ExvThy6OxA=; b=kz1XgIBbrvBVV82jfLwzl2boDjAIVUbeNVQas9Wo1Dk5Xdi6H+C3KcpCevzEdclNJ0 lzsSeS+uRFo6w/gIJIYGLA5nYX/ZA7GDEfg8ye+MEqBYoDAQ+XWmrXIScd3vjjxi3P0s TM9V8bmM9C1gt69mu+eIyGDX/aC+cI4xa87K7AUD6ZNwyr7bJjPSJ34eRy3oL+DhO4T4 z9GIW8q+b2I5fYq6rzeAUUwY6D1cOnVfqLouPYFCQGVgJUGlc0n72Hhgr3e5/i+LRsW4 Jqs+IOHbUmP6UlpI+ifiIR6Yqw/evL4R0NFbQH8ocPPe+5gcxWg4oty37gZrialLDEod LNXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793887434; x=1794492234; 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=aHvVt/C+p86HW0thhKORyrpJuSX9G1Rk+ExvThy6OxA=; b=glZSGXPu8w8pbGB9PRsWs7Y4pMqDlwnLkTmUFFJigmjXFGyrAXi3v+wAOVlkR4e+8+ 5dU5umyaNNVxpva7bOdyQOJE7wvmGqNl0+hyuAjlkk+rqUrMx2x/bQSuMtAMgXi0w1Ax Q3AzG3vRUC+9Luwl60136KHoZa1SYAgp5qRCLjv2DXVAj8c0o54yR2vvpKZ6wZeaEg52 GQAgL9tei8NyrvDNFFvEm+9AqgBA2Fkjf5B0wXa0zb03dplO7OGKIkUioM7CDSGZAkYW Uc/eb/DMgNMHu0rBGYPM2tZXzL7dQb93GK4lpDbCYqos+XBzULAf8wUlprTpI5GSvaJ2 DoMw== X-Forwarded-Encrypted: i=1; AKwUvByanrUJ7sg2BKOyscSZ2nYn5FaASsXltkgALm/SYEZA/FpG2WTxkHXbSkntrjE0YipIE1kV7wR/pmI=@vger.kernel.org X-Gm-Message-State: APuU4Z+i8ZK3oEr+gbL1W6UnsMCxCwM5ez3gZg7Vm+EW5KhygM5pNhaf gXflXBPpe1TFnQg8vF4Y2UbOv1RIBkqR9eZL6clEP7IQ4FhIeOzTdliR18tcQ6oMP+0= X-Gm-Gg: AYBFou3JORwcgn4ze2Clh1xbsY0MLH+IovbwF0lBSL7qlh688Er89CXVl4Ia6F8Kv8B wtUch0iQGfylEawndSjP9aoHiR5/gZ/vxMWIYJTtJ6wZxdzfptjn0q/7CQfqenaweUCkL/Nszj1 arvuBO4FERGwZK0hQCj3W6X9MnOkeeOycJ9oWc1Id7YV60eOK/PXP64elpZ9XEFLaKlHsS83rI5 bqupVvLiGf/MafNM1DmfaoWOXTD0jAohazm92WZ5QrpVd1itcNte0tgVrXp6vCj+fs4H5sCpDMY QmWn5g6vCq+9kTPX0Q2rh1Hh3Yu6ap+cI55P4vY8t0pHIYVX+AC82gi5w8soT/3gVhQucn9Pu7v AuTMX4O9wZMhkAHlHXN0KHaFBFeDvC0MM7oIVS0NX4o8kEiffKAPPqL+mXbHRtodVOt0hJp5Qjq s2iB/NSk1c5yRB5oeexQ9YtPOi40xLmgfV6gumU9RbuRNyHv9jLdK6GEVwzfOwSHginPxYswvo5 EwVQvHNbgPv75q2eQ5+wBhLBbkdYCwf6Tf3UzRF2ARx3oNqfBYymzTvI4LsOwGfkxkoniLzFawK JL1jCa+GollkC9/crQAhNpOQVgs1I0YfVPCj8IunkvY8Z6fbuptRu+G0F0DjvpEryeWyLyF9VvU IWtMTyuo/CA== X-Received: by 2002:a05:6122:8f88:b0:5ea:cfd9:8fbd with SMTP id 71dfb90a1353d-5ec689b0f30mr9760208e0c.17.1793887433885; Thu, 05 Nov 2026 06:03:53 -0800 (PST) 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-5eca8de4908sm4235128e0c.15.2026.11.05.06.03.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2026 06:03:53 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1xOy4G-00000002ecj-0pCb; Thu, 05 Nov 2026 10:03:52 -0400 Date: Thu, 5 Nov 2026 10:03:52 -0400 From: Jason Gunthorpe To: Leon Romanovsky Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Dmitry Torokhov , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Johannes Berg , Jonathan Corbet , Shuah Khan , Randy Dunlap , Bjorn Helgaas , "Joerg Roedel (AMD)" , Suravee Suthikulpanit , Vasant Hegde , Will Deacon , Robin Murphy , David Woodhouse , Lu Baolu , Johan Hovold , Eric Dumazet , Marcel Holtmann , Luiz Augusto von Dentz , Nipun Gupta , Nikhil Agarwal , Pieter Jansen van Vuuren , 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 Subject: Re: [PATCH 17/17] PCI: Replace untrusted state with device trust Message-ID: <20261105140352.GF3889730@ziepe.ca> 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> X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261105131856.GA8298@unreal> 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 > > > > > > 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: 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 .. Jason