From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.45 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796289280; b=pabh66lwm20q0OX+4UolL5hV+LvWpwwMLWUnNQeH+2TzqrJu3DHuEnSv9Cy8oFrk3iKM s8Gv7NbsIdf0UExSCKWXHtT0RW7xYOwm7BV7bzsm21nCvF6cQrDYioJ7PIb9UB7SB+NTS ZwYsHrar2hEJsIZL1nWCiZwqReolBsljxpl/Z95x7dMbTnaLpELxrqLdcQpge9RzA0rgO k0/SQ5nuQrqkv99vLJ8HfFtmHFLdNi2SXQGAJDn3AiXwU594vDLtO+JaZXF8f3zbHl0ub MmCqjP0/WdfC5w+ixAvYmgrS0qoRv5QxbpUtLSylsSZp2ezS0KFv9QcAk+dyHuYsESw== 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=pHpyr/3/RPkuU31MgLkY/AFXcPsG0PNuWFTBqS6xJd02zzJaQYKVTWrhyvmpw7tRbW72 u4Y3/zY+Y5qYwinH7R9y914asvnWVmjRpvWHDmmvL1q/Xdt9+IE7RYVW8bxqUW0FlXGD6 5P7uaxYy5EOcV4tGNLsRx+579vVecrTONEpgefAvRsWxDWD6okTL6/teCJWboeI2RGh6W gtoDWsiDsbbauob5MHc3CuFoP+wrhejkEgahVsG4jaey0A1iR8AjuzmEug8jX6TQeG10i QUGR59Zd1DSnY4ftc1hgGlONFTBNJYLywyzXqEGaGb5n6Dn6AHscY8Xs9vCy/PinqLg== 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.45 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 44AFD606A32C for ; Thu, 3 Dec 2026 09:14:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 44AFD606A32C 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) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=mhVlXtGq Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4bb6ba3b244so143652035e9.3 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=wvswQuM+C5g2meNBWT0YvcxgxFfcgQBT4avk7D5s+1bQzQKGTaB4OSUAfHiFG4xRjx Fpy62aalUP/dXRKbn+LC/+qIfXK4nfUF9p4D0T+xrjQQAO0cKt5IGyLts/GNruoXKkTe Wb5aaTLw36bJqEIjEIoiw6Z01SpIV3JZP4sZoWX0EBGcBY7ltZXI4Idcj1svIt6wcov8 oOd9x9CONDoO278mEmSeXWtQgQoIosAhlW+nQU9AG2UfV1M7AI8PJbiwqa8G8jAW+7ON ejt7/zcYwQFQm5YvEAqpQhS0+ndmDgXaNpnQL1tKgGBZ1wPOpQX6ifIVhe94XLPhLg9d tzqg== X-Forwarded-Encrypted: i=1; AL+hErH4kX7Iexii9pca8PxeSQZqOcjUV2VtjnjruTelvIk9vWP/RB3tVpPEugbGmcLFKdmVBlcqZyu7n3Y=@vger.kernel.org X-Gm-Message-State: APuU4Z/GcBgudSJ4vXRdgGqAt4CoZ8sYuC9sMUrlQSywGzSQbus41Zqy L9VA3NnlIxjUnAdDS1T8vljI0VFWLbeYNRFWTfJmi303NLLa0VpNz48V07eZy+IGUEQ= X-Gm-Gg: AZFdTZcBnFwfzzPn6FVZ+H9YOuTa+9AEUkge+veXxJGCGO1TkcoN4pq2sJq/upEI1j5 WU33EkiC+xBcjCLjiq59lx2uZBGpt8h1e0e+I1NwmWCHYQVRnjc7Y0Sdi9rxbim4TjY/4xrkmgs m5pjxbCSZ/PCt+NZfyb2FfjL1zWCCBJRICbr/6zFtdkkgsG5skFAKlMqU/NHTWqAoJslPi9uTw8 yLp+VLl65VcjmzvDDtKx2+FyZGyspO6wrk2az40L+a28hEn2MzJ/JtavMA3F5fmkojT5iob0uep ELEVGwPSzNwo2eWCcFeKX/nZoVYSESz39hegYU1M5uh0SQsas/7WL7NKw2ol8zOGB+1LsFaCOic OHLT9pjvXBr89pUFm7wFfzMW7bqaDtaLvfr7zv7BI4xyjZtaRIQrg5VoskCo+I7NQMATP37LnRo V+cVHX+vh1nauMy10Ux8fTio9IgxPBgxdDRrlYjM/rhYnt/d40bUKRYIYbMVHI304vyqOpxvV1U ExAQMPZm5r7bY/Kew/lTSqwPtDC8g2lnvBtQXg9TLmFVaFKH5dZAdhbSDHhxIyHasBcTbJGPhaX UZlZIz46Qrjdc5E7WKmft2JWxNzYGraN+iqUt9k= 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-api@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