From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.48.24 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796224104; b=nErXISWixekOJjcsskkxN2JBvxWOy7rCUQVs1M6UP8UCybQcSmuivb8qJkJsonX4aqn9 +uM4KkUfdZ0in0NpoT14D/iahjFTtLql2mSOXuZA8Kb/V4WfHHfLFlDxVprNtuH5bkNPE PWPkEInGv3MgxnrWCwXSFqW1QxW9v7+/t22tlVT/dXqEsMgGFfJLUEEkVyIelKom+8KY7 vcOCPqNNLyaMyrgT1QWeNuB2xgUj1/HATALwmGjh/BNQ+2ZBN4LZiygcLHDl6kWd+W0pJ dbPLj9WcqTPTKlYvBQEneI2G2QHBaX8g67kgNZkFnCjySPW6BAK22fjIdO0iRMvforA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796224104; h=DMARC-Filter:DKIM-Signature:Received:Received:Date:From:To:Cc: Subject:Message-ID:References:Content-Type:Content-Disposition: In-Reply-To:X-ClientProxiedBy:MIME-Version:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=D0ApzyDpxOfJpbnPPQ7s/Eog6hMyddyujoi0IYpsNSE=; b=VtW4p9FwteMrLxrsm/XaHg+6l8t3v4i62Q7TnlACmswgu6i8MH93V+agzoRuEP70YODi bQVnMEcH0EOo5ETN8FPAJVKDCY3wL7lTmgfACIiFSRBlwh4qUSrnnZY8kmOKnfpRmPmkE mCy6QEMJoTT1icha+1DRDAOYV8wJC6kk+8RM16Nz2gTiEWbkpuiR2LJkghLjT/tKdq/fF g+VHTThapWawD9T0an3KG4nzwY8bbfs5dgSJ+67ad9+WNyEyic6Pfwvs7t+HvG8Guewjl KuzCYjE/DvqJ9ON7JidgExOGlq217nn4IblVTAnz6+mSBR7BMH0WFc4rfLK9lZdXqPQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=bCMNYwKT; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.48.24 Received: from MW6PR02CU001.outbound.protection.outlook.com (mail-westus2azon11012024.outbound.protection.outlook.com [52.101.48.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B42D606A323; Wed, 2 Dec 2026 15:08:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4B42D606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=bCMNYwKT ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ggwtCSeAnN0+a0IxqyBtg+R1KgJiLHeIb4mmbQ6dM2frneNpqhZgtxZtjFrPDeidgXwPYFTx3qYZT+53B+0LpD4hK43DcRTS4Z8E9va7JQhippoGE1k8JSnmQvK2bFfIUh46MVYVp3Eq2k4nM5xXrik45lm9U3wDdrsBKQcZ0/IQpGfma1033SjlZlZizKmBmPHieLhom9c+C+PB0K5u2GQ6a2b6vTuwOQLVXihGXxxE2WDISuDyEoviedIVw1r7TZityZfRzEEyZ8qKU+HRN2gt7P6k/KVx5LcGVsOFtg4Fbi0TNNt94TjTN6OhC/x5PpCrq7+1BYz5sklmA9FOXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=D0ApzyDpxOfJpbnPPQ7s/Eog6hMyddyujoi0IYpsNSE=; b=pbQGZIwqcMaEfV8MoRkU7Xl0k0v2Ms1vAFdcOofrzBf6tq5KMjFTu9yfrLozdghUNoWhK0BwAvmozyTpQ2U4/koFKMg9YV6n+pucm7+W26z2J8N+7J4WHIfEKnkLUbrsjRlZusUhppjrEOE9tgKaGA0bexCzgl+EArNhTds5FyvCzo7AY1MIH3MH5IoBvd3qGTSYPZcngpZNzXDfILniyQQyzjzVqJrB0kZeISDlUpwA5BwMJbcWYGuppZf4qLJZrvuXNBluhTMo4Y2uBomYnvN2xYDLyD6NCvzXz7LQqqitC7/d53hftlbASpuZpN/kF2SHWXeiNK4coFSkSjgclw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D0ApzyDpxOfJpbnPPQ7s/Eog6hMyddyujoi0IYpsNSE=; b=bCMNYwKTiZX9RAeTELFkHg9YhEVHC/+ZOrA3LiZWvdgx5QBmbzICC/sUgLFsp2eEHmYxU9fO8Jj3pw2j1xiAx1bLq00x9jlWaJFKFbZ3CZ96WC9N6VHP1jdSY3/ruUaEBRbqHZlXE6JUaW5nfglDc7e6cdfsCj6VSmywJtKK5dxt0ehMcGEvlSqPu1s/ijVDo5z6P3IM90CSZ5beLwos7PqKxzi/owpBVK+v1lGalzEaGPEg2AsGifPiHq2jAw4rH3gKKtxU9UoKjT7JQQ4k4jkxYf2OdmL+wUnYXrJ8oFw2EdfdxsX5P5Vnq2sUtj1B6RbHm2Y5oDnxq7gLSBvLCA== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from CHBPR12MB731189.namprd12.prod.outlook.com (2603:10b6:610:33d::12) by IA1PR12MB8520.namprd12.prod.outlook.com (2603:10b6:208:44d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Wed, 2 Dec 2026 15:08:06 +0000 Received: from CHBPR12MB731189.namprd12.prod.outlook.com ([fe80::b0e5:123d:fe06:e10d]) by CHBPR12MB731189.namprd12.prod.outlook.com ([fe80::b0e5:123d:fe06:e10d%6]) with mapi id 15.21.0688.009; Wed, 2 Dec 2026 15:08:03 +0000 Date: Wed, 2 Dec 2026 11:08:02 -0400 From: Jason Gunthorpe To: Jiri Pirko 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: <20261202150802.GC868208@nvidia.com> References: <20261113160838.2512652-1-jiri@resnulli.us> <20261113160838.2512652-2-jiri@resnulli.us> <179573913907.519186.8407997114208887089.b4-review@b4> <20261130203538.GB114472@nvidia.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: YT4PR01CA0305.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:10e::13) To CHBPR12MB731189.namprd12.prod.outlook.com (2603:10b6:610:33d::12) X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CHBPR12MB731189:EE_|IA1PR12MB8520:EE_ X-MS-Office365-Filtering-Correlation-Id: f18b7bf0-2f5c-4dd2-f64e-08df5086102a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|23010399003|7416014|376014|22082099003|18002099003|10067099003|56012099006|261028144727099003|261102123227099003|261021121427099003|261022105027099003|261022075727099003|261026121527099003|261026140227099003|4143699003|5023799004|11063799006; X-Microsoft-Antispam-Message-Info: 81PMucsfa6gMYtukkTKsUVrlh6W8dstFuVRxRpmscU2zrsCxmQDCU+McGsIrpRO0z0fe+6k9qN28MEBzCeIBfPyul53bcOWTZWN2W1DKKiQl7S3GLrDoHFGv9Yh28xtuwyWYZajpr5n/aaW056Er1rGXCoV+KVBO89wEocno36rB4gM7pCt4ohtJB4ooSDpOGSAy1Wjh+/mwB2vj913ZSZB6fFwRSNBkBWxBuYVq505UJx/Zlrb+rGn7GwK9C0IlDNv6P9bTkKG1Jg0lAL5i0/5lczaouTQ+oLamTBTCFh1BMBwYqHsROUZ4YwvwrIxGIhi3T5NdYdBFhFsfp7pl6zeaQrWVlVXHYcmetMQvO0b9pehRdHYwmK+zFuq9F7o5GV6FPV9ZAg+kpu6CmPNonaAi8/G+7o10OXx/R9RJ2wld5Dem+5N57E7IXZ3/dFrI5SS1PCEDWt58sI3XlTw67ggXZKbEPJXBM0u7EvnHd1ka3cJOj4SDANcKsXu0j9g+l6IMz3l3aDyaunJTlaOIebaYECsk9dnlpin/ycIdMxYS8iMK3R5Vaz0tX8TM4lyVpuOPiCHvfTb8z2+RbTCDv7TrSiLNY42iOy4zWmotpihnGR6wJrgYqerdhNvSEFJEyQP9r1tzETcAl3a4IlJhLBPUrsriUNEpU99+MP/+PUs= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CHBPR12MB731189.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(23010399003)(7416014)(376014)(22082099003)(18002099003)(10067099003)(56012099006)(261028144727099003)(261102123227099003)(261021121427099003)(261022105027099003)(261022075727099003)(261026121527099003)(261026140227099003)(4143699003)(5023799004)(11063799006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?D9iWpWm9l7kSrEDn0CrUqFIF7aM2JwGrJWguS3zl6m6TI6S3+u+uga+IJ29M?= =?us-ascii?Q?VHIJ1AaJpmWE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us-ascii?Q?jWIe9BcNfWMDvZt4ojXVYV36aJZRalHCrJoEmQvqT8DDFgAbEZM1QDPNJprw?= =?us-ascii?Q?uOdarPE5mbyJ8Zj6GINAq9VRrkr0Wy4uOJQwEwC1o5mdQ5PUYvgXxUbIs/Ko?= =?us-ascii?Q?NvkR1HyR5MON3Po1VVRc92Mg1GAc3Yr7UxourQsefbfK0FFo4tn5RdnqYSNR?= =?us-ascii?Q?iysmJgXuHKZ6csr2oE1SxZCm7xSnrN3JuCXi1rC1/25k/1zDc34fB53vtFby?= =?us-ascii?Q?v4gj3a/xBk8HL/bG2OTxSpmLHct+s1kX8G8TTcA41MomUdBZskavsqzYiq9S?= =?us-ascii?Q?mFBbEISHG/VfYeIUR4dTvyW1ee8r2YV3Pi+3QU0v5G3PUwB7udD4m0ExK8AM?= =?us-ascii?Q?vTKoHfMWEN6pta0dXOraiTUOAGe82mPXLGjPXGxfVO2gvAdHcjzK7FV9im3Z?= =?us-ascii?Q?+/4UootrYuZAKwDuZ+eEKe8kCZhcucZnz2zUsXY4qfsL4ikaOziJZpKvx8oP?= =?us-ascii?Q?ensNrDxNfRGt0QwBoVPn1ff2ADWsbCBnvpLs91Ma9evGlFfBLc6IjWR4EjuI?= =?us-ascii?Q?hLEScCl0dS+BEWmzklVEQS49aQUyQ+fsY3a7kabO7M1Qb64aa5Kzt/s7z2QS?= =?us-ascii?Q?CJsuCYR+SNpUpvJgiknoKDZFDh5ZxgLmJYdGsKdpgpibu8S0PFFGIm9VvU41?= =?us-ascii?Q?7HOzubWXKW6Lj4W41XcAXiWTas5nWK+z0SHkC7xgmYgNNEtN1VNmszwujGdT?= =?us-ascii?Q?ah8ftGN2c5sgSbQ9d/QTPU7BoWL5aZBZDhkRvRrBcZR/JsOO?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: f18b7bf0-2f5c-4dd2-f64e-08df5086102a X-MS-Exchange-CrossTenant-AuthSource: CHBPR12MB731189.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 15:08:03.7976 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8U6vR3n1tU5arMDdsrgH66z/dBoUwMzLbuUNk1UPyLyE05jsXu0eqgy2YyrcO9CQ X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB8520 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? If the tpm-ek isn't signed I wonder why it should come out here? > >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.. > >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. Jason