From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.49 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796289280; b=m9DjkvaeZ32hWuD2KRtcKcvQa0daE7MjvghU2hdkzcArcb3yzK6qhZ5NpLXwrlcmDIwy FXzII07jlnDu6HpkXnmFKbQp7odYRG7lAkomZUgUlDYa7dFuObhbziDfInjjaz8jioPas dWkoP6ePH0H5E8VVKRqierLUG67X2Mf5/PWG/1Pn+eaJNnA3w7yAo5sciD412vtR6hE8z bp0V/IKmTJTwBRy4hszbGhH8kLrZXpbuoUdDiDkswWzu0R5qv8iuO2ZkGxrD7DVhvuAYN ZQNgg/T2H5BP0+NUACrXbYqWAFxKaQm4Rhlac8STisI5669Qp9CCOGEtMG4itmDQuYw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796289280; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=KfBIwEW3tUEBIz0d8pZR/bFuXAm36Cc2Xf61TVbEKt0=; b=CLg6PZo8xI90eTvHQb2LYp+GcBwgLIjkCB7XRv941G33lhxZaJ5IhqF/Ao9k/IL4+kM/ b08ZVqKpyJOnvja/msfm54GjhqSyScECMfyIiIjNMyfF5Af23IWI8Tu6tLTxxNhJplz54 tm3nA3M+QoLEwxeTxZ4a4PipxJyS+YyK+qwJguzwew7KsLtIdIEjA1JuErVZceRwevl2Y HZAp8uA/VNLcZgU5kVWCxKZ9zyjlYgnhJkBX4xpF5HMSmSykG9ES/xoqio1jF1HVhhncq 3NbI7JC67UoTQ5Yud/LuZ8E2mBpIeYVacTaaDeyCo3X22V7U1w0phzHqMnn2CcYH85Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=resnulli.us; spf=pass smtp.mailfrom=resnulli.us; dkim=pass header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=mhVlXtGq; arc=none smtp.remote-ip=209.85.128.49 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 4EB18606A32F for ; Thu, 3 Dec 2026 09:14:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4EB18606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=resnulli.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=mhVlXtGq Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-49d05d51553so95954005e9.2 for ; Thu, 03 Dec 2026 01:14:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli.us; s=google; t=1796289277; x=1796894077; 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=KfBIwEW3tUEBIz0d8pZR/bFuXAm36Cc2Xf61TVbEKt0=; b=mhVlXtGqhynYs5bLxb5YXrj2YnKU2CiZV/tn1+NUaLyhlBmHQgihasyuJxklz4eXJU wmQOL33+WmOdEJiQQsLs3W2v+L7hONVwiDCEmL/4SKkI98WkKmHPXA91TDFby01t/42n WJMKPdMcV9zxAsCyJT/YAzzkQaP4PVdboAIH1X1fAeqIBonILHR/jjFJHaNoEM84AAoX lW9EAJWLQQXBmfQ7ZbQ6vOUf8HzjevSpmpiQJ/iZ9o4HZ2a9RODNq2OF49QZXxcdHhzB tSZxu0Qxt5WLSuE2r0e0UNAw2FzQo7mm92Tw/LLWJtMaeGsCnCOWH40LzD5vp75R1FFR C73w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796289277; x=1796894077; 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=KfBIwEW3tUEBIz0d8pZR/bFuXAm36Cc2Xf61TVbEKt0=; b=bkWE16mVo7jfgow87rh2aWpaKbO73oVgR6LpwZFKdVfk/5z9G1i9FhwL2vAN4LgDhB +57N3zJRSf+VYhWetojyx1ks8tzdt6wjLXfo0vr+rF7mJeHgpX0K7rhnarbIoszFwVcK 0x1JmoHu5JuhmcSII99Ak54hMEhqcmSWUI7n7tt0paTsih+ISqdAhML1U/JjL7jliy5Y B2uCZItF1CgHn+XM1bMPqUnGPqS48RO+CoCipyDx6OHREXppBu464kxM35HIPkF2NfBc bRdIsRUNVPeP0Rbf5rfTP8bTdwZHFU0l8dsGkl4y+I8rQu1/MlLMblVO+nKE1bnsQQzB M79w== X-Forwarded-Encrypted: i=1; AL+hErGsWKGMFOecwQ4o6DDagfiqzvaWZD+eGvxj3T1NA99sgHmfpix4pnxmVq51KSLAJnhuhjA=@vger.kernel.org X-Gm-Message-State: APuU4Z++SMbrDGyrWTkocfm2Jyk1+/bxd9Mby+NVLK68qwj+Q1AVKr+a xBo4JFX0b0xckACHvBINwBWWELwXA4kMetWsU5Gf5uqdUVEvmznan3Dm4Y1xaRyoS4E= X-Gm-Gg: AZFdTZeyyoPUue5aIWJg2nBPT3EnN84ZPiHmqbO/8YXdQgoN4DpGf42wPuwbg+p5oB9 IK7sdXdNO1Qzvkl5los9KUO50cIH/Mp7iSUCp/F4sOoj4dt7Ms2hsF3ZBGQevUaZ632nDRAjRIC Lkz0vKv68QMCYKCwNXZfbwWL8hrQ0Ym8rqW8mw5PenH7nRbgdIlXVGIfw/ka4vibAWVofqUuyEJ s7eGh/lTCf0AoVn1QhxDq1flA5/UAUuxINvztoakSTl60qeoejk9XF/5U9NsdhyLL4VG2lwZ90i 7lueeFfvVMBTekxEY+heUbbQe1T89ewTzcPo0R9hte1vFSmT/DSXJqyh1r5qgDnzT3HFTnKFbDJ 9+rkOLAfg3qGVT2lSJps71uYtvv7wEgT9hPIFD+0+F3XlhLMtYLjqMERbkJU/rYXUe/6myCdNp7 ulB++KM6oiGuyUXgRwMhRhbqIvAzWm1E7GhTfTiuUvNvId7rbLDjZdiqSG4i/88H2jHJOjGlCNv XQCZ583cND74KvQzXm3326e4q+0jLV6opIkaUS6efeQs0L8xvOWHweK/7CeAvEWuo768P9hIiU9 KYhnDtWbNd/bYxP7JDmM5cgToOUer8xjihf/kzg= X-Received: by 2002:a05:600c:3555:b0:4a1:9663:7639 with SMTP id 5b1f17b1804b1-4bb8882907fmr876442805e9.34.1796289277416; Thu, 03 Dec 2026 01:14:37 -0800 (PST) Received: from localhost ([140.209.217.212]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbe00792besm56091625e9.4.2026.12.03.01.14.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 01:14:36 -0800 (PST) Date: Thu, 3 Dec 2026 10:14:32 +0100 From: Jiri Pirko To: Jason Gunthorpe Cc: 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, jarkko@kernel.org, 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> <20261130203538.GB114472@nvidia.com> <20261202150802.GC868208@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: <20261202150802.GC868208@nvidia.com> Wed, Dec 02, 2026 at 04:08:02PM +0100, jgg@nvidia.com wrote: >On Wed, Dec 02, 2026 at 03:55:52PM +0100, Jiri Pirko wrote: >> You are right that my listing does not say enough, though. The PSP's >> report differs by format, but the SVSM's two reports have the same >> class and the same format. I would let a report name the object it >> binds: >> >> id class format binds >> 0 signed snp-report >> 1 signed snp-svsm-report 2 >> 2 auxiliary svsm-services-manifest >> 3 signed snp-svsm-report 4 >> 4 auxiliary tpm-ek-public >> 5 cert-chain snp-cert-table > >Did we gain class recently? It is in this RFC v2: evidence-class: # Made by evidence-get over its challenge, and signed by the root of # trust. - signed # The platform's log of what firmware and the boot chain measured into # the MRs. Later extends, through mr-extend or otherwise, are not in it. - event-log > >If the tpm-ek isn't signed I wonder why it should come out here? It is what the report signs, one step removed. REPORT_DATA of the SVSM's report is SHA-512(challenge || manifest), and for the vTPM service the manifest is the EK's public area. The verifier cannot recompute REPORT_DATA without those bytes, so the report does not verify without them. They are also the point of that report: it tells the verifier which EK the attested SVSM stands behind. configfs-tsm hands them out as manifestblob for the same reason. So it is unsigned evidence that one signed object covers, and "binds" says which one. tpm-ek-public was a poor placeholder, it is the vTPM service's manifest. > >> >That seems OK, as long as we can manage that code wise. The reason I >> >suggested offering a default is so the driver can have some kind of >> >natural order defining all the evidence it supports and not contort >> >itself into a specific ordering to make id 0 something particular. >> >> Code wise it is the order of the provider's object table, nothing >> more. The rule is "the first signed object whose format you know", >> not "ID 0", so a provider only has to put its signed objects in >> order of preference among themselves and is free with the rest. If >> some provider cannot live with that, a flag on one object can be >> added then. But is it needed? > >I'm worried things like AMD want the snp-report to be the default >unless snp-svsm-report is available. That isn't quite so easy to >express in a static const array.. It is not a static array any more in my working branch. Now a provider adds each object by a call before it registers the device: attestation_evidence_object_add(att, &props, &ops, priv); and the order of the calls is the order of the listing. The SNP provider probes for the SVSM first and adds the reports in the order that fits what it found.. > >> >That sounds aweful, I suppose the issue is DRTM/IMA may not have the >> >loadable modules for every algorithm till after the initrd starts. >> > >> >But how does the verifier make any sense of this when there is a gap >> >in the extension? Does the TCG log include the hash algorithms that >> >succeeded? >> >> The verifier replays each bank on its own. An extend entry of the >> journal carries the digests of exactly the banks it extended, so a >> bank's replay takes the entries that name it and skips the others. >> A bank that was left out of an extension therefore has no gap in >> its own sequence, it just has fewer entries than another bank. >> >> Sergii, feel free to jump in here as this was your suggestion. Thanks! > >DRTM would be using the kernel interface so it is a bit different > >But OK, just make the comment clear. Done. Thanks! > >Jason