From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796236416; b=mNQHluGMROfhpXmQOX9Ww2aefd7kPrZdqAibFB/aq1wFvhM2QihSyewcWc6xvLc6cxOF 6uBIFxv1kD9laqt5XP1vKNHWRy4My5oT0umerLiVNpNI7McxsBpe1hM+t9s7zSz6F6NtO Gfspwy+ZOx5uo1aBLerXz5jv1fMBNcogSUYhKhqXamf0uqRVYSYJYrgh84izGpBg807VM yhCz7gvSUAq4RvK5kUqeRx2I64B9sA90jFdX/A48mnTJATV9dc5i9PEcUQypHcex7OuLG BpAv+v9eaoLq5oUurAl4QFvpde++42qRfSvlU7TKvu75LEilo2LIjQy32oFejjSzXCg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796236416; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=a9KYKrZDHwO2HCkKrZYL1ibAN4+zEn6P4y4XzaADgPk=; b=Zp3n9fZZat1sxX23QUgHXtibhxxdZ90R4sz6HeTbB3aWJepjg0MnHpVhU+yNdRJEzEZX 3SXIwpChEKitBuSp0MuET24/+MS4kv1knFQytJF7y7D7nshvtQ+gdNlLWmk+WsPD5ZVMY f9lCEpiCtEh0A2wmx6G+Hen++KEgllAqt/+OukD7vX1vT6ipMQbE1XPcwwLyVv9iMDeUn vZXTk7rZawDRi4IDUGUpaYEWf6h93+m9xYi/JUyOsdISWlPKVmXOIuMuG5fOACBsCzzJi Xrov/mpmhpKAIDVsDxNMGlag0rLWiHknDpSNFm7NCipkkZg39eXt/7c9bVu+ua1NYaQ== 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=ObBfb3HB; arc=none smtp.remote-ip=100.103.45.18 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 UTF8SMTPS id EF574606A682; Wed, 2 Dec 2026 18:33:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ObBfb3HB Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id D13081F00893; Wed, 2 Dec 2026 18:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796236415; bh=a9KYKrZDHwO2HCkKrZYL1ibAN4+zEn6P4y4XzaADgPk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ObBfb3HBF6ZnbOYkGloiQy4xf2mvxeHNJLyofHBKNjKgjDN8x5pdutImg6RlC9cW9 baXy3FBkJQA14xMFpEw98o61cbhIZOhuTfGUJSUmpMfMbj2yHhpZjtLYLbtaEaGaux F//z6LT5/j3t5YW0I7Qpnzy/PHbmd64+2cjGcd3PG6435K6nvXWd6fBa05UOnLU/+y zTIRGEgbz5rk12OHcv5sQwQaKrslhqe0zmZkTP2+iuoEaSprmabmExU3grjUDJAgk5 vdiOZjj8Ry32SPqS7e296frM+kxzq+u6GRnvgJa19EfwC6TFiUbNwPFISHZ5UkWl94 HA7OHzdiuJjFg== Date: Wed, 2 Dec 2026 20:33:28 +0200 From: Jarkko Sakkinen To: Jason Gunthorpe Cc: Jiri Pirko , linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, david.quigley@intel.com, lukas@wunner.de, ksinyuk@kernel.org, rodrigo.vivi@intel.com, cedric.xing@intel.com, sameo@meta.com, drdeeglaze@gmail.com, James.Bottomley@hansenpartnership.com, aik@amd.com, jpiotrowski@nvidia.com, qinkun@google.com, pgonda@google.com, jic23@kernel.org, alistair.francis@wdc.com, ankita@nvidia.com, suzuki.poulose@arm.com, kas@kernel.org, rick.p.edgecombe@intel.com, elena.reshetova@intel.com, dave.hansen@linux.intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, peter.fang@intel.com, zohar@linux.ibm.com, yeoreum.yun@arm.com, aneesh.kumar@kernel.org, dave.jiang@intel.com, nik.borisov@suse.com, sergii.dmytruk@3mdeb.com Subject: Re: [PATCH RFC v2 1/9] attestation: Add the base family specification and generated files Message-ID: References: <20261113160838.2512652-1-jiri@resnulli.us> <20261113160838.2512652-2-jiri@resnulli.us> <179573913907.519186.8407997114208887089.b4-review@b4> <20261130202539.GA114472@nvidia.com> <20261202154716.GE868208@nvidia.com> X-Mailing-List: kvm@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: <20261202154716.GE868208@nvidia.com> On Wed, Dec 02, 2026 at 11:47:16AM -0400, Jason Gunthorpe wrote: > On Wed, Dec 02, 2026 at 05:38:37PM +0200, Jarkko Sakkinen wrote: > > What does provider need to provide dissected into pieces at > > apples/oranges abstraction level? ;-) Assets could be e.g., machine > > certificates, event logs (signed probably?), attestation keys, > > endorsement certificates, encrypted credentials (e.g., > > TPM2_ActivateCredential). > > This is a question we need to answer.. > > One of my big use cases is that a collection agent like systemd-report > can have a hope of working agnostically without knowing details of the > ROT. > > It should be able to list all the unsigned evidence, dump it with the > kernel's labels, pick a signed evidence and use that to sign the > entire collected data report it sends to the verifier. > > So, check what systemd-report needs to collect to give to a verifier > to evaluate a TPM quote and that is a very good starting point. > > From there we would want to see some well established cross-ROT > topics, like maybe sealing? > > For TPM it might be interesting to explore passing the raw TPM > commands like tpmrm does in a structured way to give a one stop shop > for the interface. > > Then locality perhaps, IDK what we need to do there in userspace, but > with DRTM we need to be able to use locality 2.. > > > Unless you got TPM2 covered I could probably write a provider within > > hours when I sit down and do it (even without AI) as long as I > > know what it needs to output. It's not a big stretch and then > > it is easier to review the patch set overall. > > Yeah, exactly, it does not seem like a stretch. It's not and it is great any device test feature :-) I'm working ATM with edutech for high schools i.e., Linux laptops, Info displays and the whole shebang, and the plaform is deployed to at least 40% of highschool in Finland, and steadily growing number of schools at different parts of Germany. I.e. there's lot's of kids in two countries and that makes security a challenge because leaking private information of underaged due ignorance is the one way route for big troubles. It will never happen :-) Without tech bombing details there's cloud, there's Kerberos realm and other stuff, which is not that far away from Entra's machine auth (Intune). Laptops SB-booted at KEK (not MOK) level and things talk to each other with TPM2 handshakes. I'm interested on ecosystem fit of this, and leveraging opportunities over in-house ad-hoc code. I'm also interested could Himmelblau IDM leverage this feature, which I can investigate a bit. It's a project I have one draft PR in progress because I need it for building a bridge to our cloud without having to have in-premises AD server: https://github.com/himmelblau-idm/himmelblau/pull/1982 > > At this point I think it is helpful to draft some YAML files that we > can look at. The main goal at this moment is to be confident in the > uAPI design One question. In TPM2 (old AMD Zen 2 laptop): $ tpm2sh memory HANDLE CLASS DETAILS 01c00002 nv-index rsa-2048:sha256 01c0000a nv-index ecc-nist-p256:sha256 $ tpm2sh memory 01c0000a | openssl x509 -text -noout | head Certificate: Data: Version: 3 (0x2) Serial Number: 1298017026 (0x4d5e2b02) Signature Algorithm: ecdsa-with-SHA256 Issuer: C=DE, O=Infineon Technologies AG, OU=OPTIGA(TM), CN=Infineon OPTIGA(TM) TPM 2.0 ECC CA 042 Validity Not Before: Sep 16 22:18:38 2020 GMT Not After : Sep 16 22:18:38 2035 GMT Subject: Downloading and signing the chain is probably user space activity i.e., a border line for the feature in the user space side, or is this even the right conclusion? > > I'd like to see a draft YAML for AMD also since it is so complicated AMD Secure Processor's VCEK/VLEK signed attestation, and not fTPM related, right? Again, finding the border line by asking trivial questions ;-) > > And I'm hoping to work on SPDM today. My stance: don't mind if you don't and don't mind if you do type of situation. E.g., if you want help with the TPM2 provider, I could help and having a real cloud ecosystem to draft architecture on would likely help too. > > Jason Br, Jarkko