From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1BCAE93715 for ; Thu, 5 Oct 2023 20:09:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229818AbjJEUJX (ORCPT ); Thu, 5 Oct 2023 16:09:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbjJEUJW (ORCPT ); Thu, 5 Oct 2023 16:09:22 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABBD0F2; Thu, 5 Oct 2023 13:09:19 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01A5EC433C9; Thu, 5 Oct 2023 20:09:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696536559; bh=gviqkF5bCtrPEnmL/efrb5ugCp6oRzHfV/DcplqOK/w=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=mPMh/YzlW9oTh5h9AJ5aAB26BKNe2mE/3C+n+4v4/3A/CAe2k4Yecrw+PoqctpsCM 7Rz9NE1k5UayDDxAOm9iNh49IS4NPl3z7Z1PJ9/Xk/cvDzdiK5fOzsp10llBeSnwax udSKrphyyopprBbpM8FEO+w5hthYv2c6Tq8BoPNW+rRfweDFkzRci8hxE+wv+wV38F rfaiern/5q24z3ng5ohmgFBbmvxW21IgYxkExh7y+5d/jGlf3aJ2u2PJ/ZKA9hjxaX SzXBqCFyHL6SDZzCYBPatbmI79HVeskhOL1mn7NDoZ6rtrvfnTF+8Lcn0dkzITIw8U 26WOBNO0H119A== Date: Thu, 5 Oct 2023 15:09:17 -0500 From: Bjorn Helgaas To: Lukas Wunner Cc: Jonathan Cameron , David Howells , David Woodhouse , Herbert Xu , "David S. Miller" , Alex Williamson , linux-pci@vger.kernel.org, linux-cxl@vger.kernel.org, linux-coco@lists.linux.dev, keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, kvm@vger.kernel.org, linuxarm@huawei.com, David Box , Dan Williams , Dave Jiang , "Li, Ming" , Zhi Wang , Alistair Francis , Wilfred Mallawa , Alexey Kardashevskiy , Tom Lendacky , Sean Christopherson , Alexander Graf Subject: Re: [PATCH 09/12] PCI/CMA: Validate Subject Alternative Name in certificates Message-ID: <20231005200917.GA789502@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231005140447.GA23472@wunner.de> Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Thu, Oct 05, 2023 at 04:04:47PM +0200, Lukas Wunner wrote: > On Tue, Oct 03, 2023 at 04:04:55PM +0100, Jonathan Cameron wrote: > > On Thu, 28 Sep 2023 19:32:39 +0200 Lukas Wunner wrote: > > > PCIe r6.1 sec 6.31.3 stipulates requirements for X.509 Leaf Certificates The PCIe spec does not contain "X.509", so I assume this is sort of a transitive requirement from SPDM. > > > presented by devices, in particular the presence of a Subject Alternative > > > Name extension with a name that encodes the Vendor ID, Device ID, Device > > > Serial Number, etc. > > > > Lets you do any of > > * What you have here > > * Reference Integrity Manifest, e.g. see Trusted Computing Group > > * A pointer to a location where such a Reference Integrity Manifest can be > > obtained. > > > > So this text feels a little strong though I'm fine with only support the > > Subject Alternative Name bit for now. Whoever has one of the other options > > can add that support :) > > I intend to amend the commit message as follows. If anyone believes > this is inaccurate, please let me know: > > Side note: Instead of a Subject Alternative Name, Leaf Certificates may > include "a Reference Integrity Manifest, e.g., see Trusted Computing > Group" or "a pointer to a location where such a Reference Integrity > Manifest can be obtained" (PCIe r6.1 sec 6.31.3). > > A Reference Integrity Manifest contains "golden" measurements which can > be compared to actual measurements retrieved from a device. It serves a > different purpose than the Subject Alternative Name, hence it is unclear > why the spec says only either of them is necessary. It is also unclear > how a Reference Integrity Manifest shall be encoded into a certificate. > > Ignore the Reference Integrity Manifest requirement until this confusion > is resolved by a spec update. Thanks for this; I was about to comment the same. Bjorn