Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1173105lqs; Fri, 14 Jun 2024 19:26:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8fCTku3DmaCiF98bon30aKWokNrl6uHDloAbpN20PfA4VTYiCfFL5+IwKIiNjoxW7bKzLS31NLQwFbJgKHUBzPat3MWcmWA0bsOcL5Q== X-Google-Smtp-Source: AGHT+IEdrlbo1f1YhRKcUvstNM3kQiYS0x1X4tWWlqzkUEeKbNqj7k3xa1zwor3vdPaA1yMsPCey X-Received: by 2002:a05:6358:78c:b0:17f:6b3f:1b0a with SMTP id e5c5f4694b2df-19fa9e00b4amr572941255d.15.1718418413633; Fri, 14 Jun 2024 19:26:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718418413; cv=pass; d=google.com; s=arc-20160816; b=nI6hZS48Iii8Od9LECve8fvoKB/XPWX4KU3HUwl5KSfa1wCpeLl3XIpx0n9a/HxiPt Kty4e2uMNuYbMlS1D9B+uwaazcG3u/4VwaRuH+iUwnFXBqJh7DEHaY93kYZUDFdrWO9J Dnavvw6F55R6/kH0cHoW4AJa5QdBoNps3ss29A+J4uUDNJ2D+p5PpzU20lRJ2O2p0hVq V/GODZDlY7KF5vD3N/2/+0QKcUH7TudHEhE9TFuL/2uJStU5l+p5QmqObVqOcbwOQvdz mklMN53mRNv8noWbl4ULRAUUkkUplYSH62OD6fJr+VHwOBrEZP4XfksiSIbqKBbhyh+2 pj6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:organization:references :in-reply-to:date:cc:to:reply-to:from:subject:message-id :dkim-signature; bh=McBTJ+sltYsxBktEenpEv8nVR5RGDdPc4GIejXNQ7GQ=; fh=Fp2f3FJZX7oWT9DStkymnoC62eo9DlV1S1mSrakSEww=; b=RZLRuVhNe4W3FKyhDMjdDKaCwhBrIRb8Lx7R7OsxJ+o1a6Dis1vbtANLEsu4ZdcAHe gGVOD/iKJ3w0L0xzDrKYQSFu4PjFarsxFkV/ybx3UiatkaExcqHMrOCf/7mP11mDnU3j 0aoouaxx0xhtx7s5A8F10vVK+uTXEXAOqtxxbXpnwEOOoII8hT8A0F9NYwpXDMMZ3Pi6 pHmHR3vVatzMSXeRZCcsEvSDvM+K8zGQbGF+RFbasGHa5Us9/ZMFVIMpxGPDq24y11fb ZpBQzP4vYWbLbaGGXNRySivr6I5P6iVxIPUvEnejxzYB/4r5BkgT2Yt6gagHynp3AKJH lMmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QRD5gNqg; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-215494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f855e541f5si46440675ad.158.2024.06.14.19.26.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 19:26:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QRD5gNqg; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-215494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 928AB285939 for ; Fri, 14 Jun 2024 21:17:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7663E149016; Fri, 14 Jun 2024 21:17:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QRD5gNqg" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39387A954; Fri, 14 Jun 2024 21:17:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718399846; cv=none; b=PEVRAyI167vf0AgQMPRZHGM4wVmgvXsNYkyEyajgXuvD85MMDH8TACML6iYFONE2V+zzIdF8IOIEWNzDb3OZ4BRMyfoIYa4C8fO4sOHMPTHgiFArHannTeo4y6NmRFIfD2fw3E+D1VxIA5pzB0dNHIPfGTega8SuYFbYDy6tz28= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718399846; c=relaxed/simple; bh=McBTJ+sltYsxBktEenpEv8nVR5RGDdPc4GIejXNQ7GQ=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=Gpg7JF45X+L+iAjUaliSxNEY5RQd5OZCZkgiKnJ2YikVr0twNjV2/L4lLdmHj8nIxn4r/+0ALLWgCPXbndavmwuB0Y3m5TDBQaSfp31OFEIE6TPpDUWVge3RHCW8qi7Iqif/fnr1+A2fN9X/9JTeS9VzRIH33yAQyXl9Nx9O8lk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=QRD5gNqg; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718399845; x=1749935845; h=message-id:subject:from:reply-to:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=McBTJ+sltYsxBktEenpEv8nVR5RGDdPc4GIejXNQ7GQ=; b=QRD5gNqg+C7DKcsMZuycq8QqRuFtOOpEyrr9d23RDy10OSHfJpeUWRZC 14cB5dr/N2Xg/GIpMGpbVc/H4mTpLtZjhwvuxF5j/4DYvuiWRGGDXKeWT sYxoVRCzXkXzUfUNk4JzjU/n2xy2RupNJiPxR9YdD30+vLK+Q/jlJilwM REI0j8cb0FstatdJ+jU80uy3OVC5P51aPd3hXsUot6V0DTR5u1p6at24O PcphnS04MlNhPUOh8cYt+sEy8rhlazOXhEtIPNwMTxIuI5zi7H37QvdpH 8JwmFkxZe3CzSBD3cU2VIeX+G1dG9qnblB3HG3zynLikF5uwzzS6JdV5u w==; X-CSE-ConnectionGUID: UZwarCG9Rc+oWntG4qpRKg== X-CSE-MsgGUID: i7aELlDaQAShZsrIJOPVoQ== X-IronPort-AV: E=McAfee;i="6700,10204,11103"; a="19090581" X-IronPort-AV: E=Sophos;i="6.08,238,1712646000"; d="scan'208";a="19090581" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2024 14:17:24 -0700 X-CSE-ConnectionGUID: eWxmCZTOQWO5V/nWb63gTA== X-CSE-MsgGUID: Nm2hoDPzTV64lh3kZKJFkA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,238,1712646000"; d="scan'208";a="45721702" Received: from mabueed-mobl.amr.corp.intel.com ([10.209.6.246]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2024 14:17:24 -0700 Message-ID: Subject: Re: [PATCH V4 1/3] platform/x86/intel/sdsi: Add ioctl SPDM transport From: "David E. Box" Reply-To: david.e.box@linux.intel.com To: Lukas Wunner Cc: linux-doc@vger.kernel.org, ilpo.jarvinen@linux.intel.com, hdegoede@redhat.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Date: Fri, 14 Jun 2024 14:17:23 -0700 In-Reply-To: References: <20240608034247.181843-1-david.e.box@linux.intel.com> Organization: David E. Box Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi Lukas, On Sat, 2024-06-08 at 14:46 +0200, Lukas Wunner wrote: > > On Fri, Jun 07, 2024 at 08:42:45PM -0700, David E. Box wrote: > > > > Intel On Demand adds attestation and firmware measurement retrieval > > > > services through use of the protocols defined the Security Protocol= s and > > > > Data Measurement (SPDM) specification. SPDM messages exchanges are = used > > > > to > > > > authenticate On Demand hardware and to retrieve signed measurements= of > > > > the > > > > NVRAM state used to track feature provisioning and the NVRAM state = used > > > > for > > > > metering services. These allow software to verify the authenticity = of > > > > the > > > > On Demand hardware as well as the integrity of the reported silicon > > > > configuration. > > > >=20 > > > > Add an ioctl interface for sending SPDM messages through the On Dem= and > > > > mailbox. Provides commands to get a list of SPDM enabled devices, g= et > > > > the > > > > message size limits for SPDM Requesters and Responders, and perform= an > > > > SPDM > > > > message exchange. > >=20 > > I've amended the in-kernel SPDM implementation to expose signatures > > received from the device in sysfs, together with all ancillary data > > necessary to re-verify signatures from user space (transcript, hash > > algorithm, etc).=C2=A0 It is also possible to set the next requester no= nce > > from user space if the kernel is mistrusted to always use a fresh nonce= . > >=20 > > See the two top-most commits on this branch: > >=20 > > https://github.com/l1k/linux/commits/doe > >=20 > > I intend to submit these patches by end of June.=C2=A0 There are two th= ings > > still missing before I can resubmit:=C2=A0 Exposure of certificate chai= ns in > > sysfs (currently a WIP) and expiration of older signatures (to limit th= e > > amount of memory consumed for their storage).=C2=A0 After submission, I= intend > > to forward-port your measurement patch in Q3. > >=20 > > I recall S3M folks rejected use of the in-kernel SPDM implementation fo= r > > SDSi because it previously didn't allow for re-verification of signatur= es > > by user space. Yes, this was the main reason for not going with the in-kernel solution. > > =C2=A0 Perhaps with the added functionality they'll reconsider? Q3 is too late for their needs. They want to proceed with the driver soluti= on. We can push for using the in-kernel solution when it is upstreamed. I think= this will be possible when they extend support beyond SPDM v1.0. David > >=20 > > Thanks, > >=20 > > Lukas