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=1796289284; b=1iTMlBw1/ondimXY10ZVC/vMmZW68LGaqjHsuttv05gjSHAPQtnUpz4CQwykYkChn52g HLI8kRmG+TQCLMj0Ipu0dAJSt5/L7FRz23UmPQeyBJ5V/eyo65OM4TXgWxI125OY6GwwU +oglhXoMgvjG92BaX3tZvrsn+XGIkJ/TEcAfvWxACI7Itc3UATAhFcuNCMvEne1OEMJLe fCBHRryOG0Xup8Hk8+oJH4dKl0FqNR2r5N+wfRtktMX4rZBW53yWTPHafrsLM4JIJwD0V KG5dIeukpE8EQbSH9y6MERVvyvO7bu86JKR4f69uwNwsxthiiAPldiTChwRr90GC9JA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796289284; 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=hqI0AfYzD3NuKS64jh9HWILG3No3dTMbrc4TqhZlznjTFg0rBFL080EBNGX/Wagxi0Y+ 6FPMZViocd6Pu3O0KZjKvWgiRprHb+eT+1jW+TWYo2t0RrL58sWZ3tFw/vaEjlhytJKsc 20enX4uOKNTFQKcHvZsjFeTDblkDL7K4Ka33ligLnyntJLAHOqookTTfJluZQJD3Kjyhz LE4pV/sHKWHPMNIiuaxVyuM4isRthN+7R3BY5h8LhCb34JU4MdSxXrgSdiEgoB9aJDFXj g42RNIF+hg/qmJ5yKaGmPmm3xRFns7qgB9LjHuWcr+iotqSL5TcIWCrmeMLbdi5a4hA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=resnulli.us; spf=pass smtp.mailfrom=resnulli.us; 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 4EBC1606A330 for ; Thu, 3 Dec 2026 09:14:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4EBC1606A330 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 Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4a207b02a2cso101539445e9.1 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=IosQNOkp633GhzC5Qf8f0m+g4lB2GTIPc6M+PR8GKNKFq5HoulLDNvv3wtw1nKR8cF hwCAW/NKRiviIzZhxH2w2ClEJMla0P1HunMbLs6e4UoYXsqM5Kf6+qtl/1P1B/Bz39TU zWGeWL0i6V5PYT1u21t2gpJ2hShhPKGSEXvXmGNV28F8iXDYke5927EE0nDq2i/MzruP 4b395Y3bFvHFNQLgyyC6m2zCGSlAFKKdMmJVnCpQn1vBiVk6hRYVZjnSPTciYJiuLMfj us1FzQ8gh3XsCjyxYaw2reoDfo3hcz02Ys3g+2tuYwU1WNPlnOIcdWhlqAw/u24dR9uk fSXA== X-Forwarded-Encrypted: i=1; AL+hErHb1NsEjmgivsiTRbjzsGNi6DAH3b447q4bv/Fj/2XFlLCrnyFdml8n0TEs52CdCL58nLVrXkCU8Ppy2pI=@vger.kernel.org X-Gm-Message-State: APuU4Z8WaeodOumFWB9v45OcwHZkb8DtjHG5Hi/5eAxfN5XlU4FE7vF1 /kYy37VjttL+XzxrrHYhJCcSVCVzwBBHoWyRm13PPqbfKRGrJFCiRxVALgVM2ZWKNmI= X-Gm-Gg: AZFdTZdlsfFeUOfXjIyW2OpXk8rpOmw1Zd2eDHGu/oL+gInJvk9tDMScPS42usPWADl ZAihbwfk/kueqdUh4c2ucUxrzCxHfQ3C6ChImMbZG5D/zgKSjLxZ2ZsX0tGnfdAZ+zYxr6nL1YV CkbxtTaWJuu+HIc8vFIhhd6K2E4XvTbeo06wRvCuzTpWhYktvl8ZMx4nIGSxYQqnXokRInZtqYJ Q4Uc84j5aVnoHADupKARtRNGkBUpGXP/zSacnOY3fRjevqg+vpIOeVXGda+DxKnzlYimvT/LmRp zs91vFflsojxn5aXPFvITj/82QmCafRUyit11hjfcf0c8/PKXhWlu2DVgjaXYZymKcfJ0fQIrzi vxdMME1bmgnlLguLm/yW9U+Zlf2um0qcXzz08MeDfA8VypRK6pT6R8fh9XZodqgdrRIwTDUii3z CwI8UUzS6tAX38HCVY22p13HVzmYS9b0GMzrwQcgZw8iUudnnQd1oInZLFM7tUWbyIY5vv+v05v xhOjWI1MHCO25S70i0r+gljWiBGkeWlZbRTcCilRGkH0PCyPQNlRbAmh42h9sE+VfcaqnihXEZn eVGVLr2qfSJvHcEZzrzES2kCTZ4HI9BCW32X9Mo= 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: linux-kernel@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