From: "David E. Box" <david.e.box@linux.intel.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: linux-doc@vger.kernel.org, Hans de Goede <hdegoede@redhat.com>,
LKML <linux-kernel@vger.kernel.org>,
platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH V3 1/3] platform/x86/intel/sdsi: Add ioctl SPDM transport
Date: Fri, 07 Jun 2024 20:44:47 -0700 [thread overview]
Message-ID: <b23fadac815f137ad93fa3bb90149e52956b3c62.camel@linux.intel.com> (raw)
In-Reply-To: <b32cd809-7aed-62ed-1b6e-550221a3acbb@linux.intel.com>
On Fri, 2024-06-07 at 16:14 +0300, Ilpo Järvinen wrote:
> On Wed, 5 Jun 2024, David E. Box wrote:
>
> > Intel On Demand adds attestation and firmware measurement retrieval
> > services through use of the protocols defined the Security Protocols 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.
> >
> > Add an ioctl interface for sending SPDM messages through the On Demand
> > mailbox. Provides commands to get a list of SPDM enabled devices, get the
> > message size limits for SPDM Requesters and Responders, and perform an SPDM
> > message exchange.
> >
> > Signed-off-by: David E. Box <david.e.box@linux.intel.com>
> > Link:
> > https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.0.1.pdf
> > [1]
> > ---
>
> > +static int sdsi_spdm_do_command(struct sdsi_priv *priv,
> > + struct sdsi_spdm_command __user *argp)
> > +{
> > + u32 req_size, rsp_size;
> > +
> > + if (get_user(req_size, &argp->size))
> > + return -EFAULT;
> > +
> > + if (req_size < 4 || req_size > sizeof(struct sdsi_spdm_message))
>
> Hi David,
>
> Is that 4 actually SPDM_HEADER_SIZE?
>
> If my guess is correct, no need to send an updated version, I'll just fix
> it while applying.
It is SPDM_HEADER_SIZE but I already fixed it in V4 since I had to address an
LKP report.
David
>
>
prev parent reply other threads:[~2024-06-08 3:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-06 1:16 [PATCH V3 1/3] platform/x86/intel/sdsi: Add ioctl SPDM transport David E. Box
2024-06-06 1:16 ` [PATCH V3 2/3] tools/arch/x86/intel_sdsi: Rework Makefile David E. Box
2024-06-06 1:16 ` [PATCH V3 3/3] tools/arch/x86/intel_sdsi: Add attestation support David E. Box
2024-06-07 13:14 ` [PATCH V3 1/3] platform/x86/intel/sdsi: Add ioctl SPDM transport Ilpo Järvinen
2024-06-08 3:44 ` David E. Box [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b23fadac815f137ad93fa3bb90149e52956b3c62.camel@linux.intel.com \
--to=david.e.box@linux.intel.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).