Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1581453 > unrolled thread
| Started by | Stefan Berger <stefanb@linux.vnet.ibm.com> |
|---|---|
| First post | 2017-02-15 18:00 +0100 |
| Last post | 2017-02-17 20:00 +0100 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH] tpm: Fix expected number of response bytes of TPM1.2 PCR Extend Stefan Berger <stefanb@linux.vnet.ibm.com> - 2017-02-15 18:00 +0100
Re: [PATCH] tpm: Fix expected number of response bytes of TPM1.2 PCR Extend Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-02-15 19:10 +0100
Re: [PATCH] tpm: Fix expected number of response bytes of TPM1.2 PCR Extend Mimi Zohar <zohar@linux.vnet.ibm.com> - 2017-02-17 13:50 +0100
Re: [PATCH] tpm: Fix expected number of response bytes of TPM1.2 PCR Extend Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-02-17 19:50 +0100
Re: [PATCH] tpm: Fix expected number of response bytes of TPM1.2 PCR Extend Mimi Zohar <zohar@linux.vnet.ibm.com> - 2017-02-17 20:00 +0100
| From | Stefan Berger <stefanb@linux.vnet.ibm.com> |
|---|---|
| Date | 2017-02-15 18:00 +0100 |
| Subject | [PATCH] tpm: Fix expected number of response bytes of TPM1.2 PCR Extend |
| Message-ID | <tbb5U-2sv-25@gated-at.bofh.it> |
The TPM1.2 PCR Extend operation only returns 20 bytes in the body,
which is the size of the PCR state.
This fixes a problem where IMA gets errors with every PCR Extend.
Fixes: c659af78eb7b ("tpm: Check size of response before accessing data")
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Mimi Zohar <zohar@us.ibm.com>
---
drivers/char/tpm/tpm-interface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/tpm/tpm-interface.c b/drivers/char/tpm/tpm-interface.c
index 6e368ee..bd2128e 100644
--- a/drivers/char/tpm/tpm-interface.c
+++ b/drivers/char/tpm/tpm-interface.c
@@ -767,7 +767,7 @@ EXPORT_SYMBOL_GPL(tpm_pcr_read);
#define TPM_ORD_PCR_EXTEND cpu_to_be32(20)
#define EXTEND_PCR_RESULT_SIZE 34
-#define EXTEND_PCR_RESULT_BODY_SIZE 24
+#define EXTEND_PCR_RESULT_BODY_SIZE 20
static const struct tpm_input_header pcrextend_header = {
.tag = TPM_TAG_RQU_COMMAND,
.length = cpu_to_be32(34),
--
2.4.3
[toc] | [next] | [standalone]
| From | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> |
|---|---|
| Date | 2017-02-15 19:10 +0100 |
| Subject | Re: [PATCH] tpm: Fix expected number of response bytes of TPM1.2 PCR Extend |
| Message-ID | <tbcbD-3la-3@gated-at.bofh.it> |
| In reply to | #1581453 |
On Wed, Feb 15, 2017 at 11:56:23AM -0500, Stefan Berger wrote:
> The TPM1.2 PCR Extend operation only returns 20 bytes in the body,
> which is the size of the PCR state.
>
> This fixes a problem where IMA gets errors with every PCR Extend.
>
> Fixes: c659af78eb7b ("tpm: Check size of response before accessing data")
> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
> Acked-by: Mimi Zohar <zohar@us.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
/Jarkko
> ---
> drivers/char/tpm/tpm-interface.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/char/tpm/tpm-interface.c b/drivers/char/tpm/tpm-interface.c
> index 6e368ee..bd2128e 100644
> --- a/drivers/char/tpm/tpm-interface.c
> +++ b/drivers/char/tpm/tpm-interface.c
> @@ -767,7 +767,7 @@ EXPORT_SYMBOL_GPL(tpm_pcr_read);
>
> #define TPM_ORD_PCR_EXTEND cpu_to_be32(20)
> #define EXTEND_PCR_RESULT_SIZE 34
> -#define EXTEND_PCR_RESULT_BODY_SIZE 24
> +#define EXTEND_PCR_RESULT_BODY_SIZE 20
> static const struct tpm_input_header pcrextend_header = {
> .tag = TPM_TAG_RQU_COMMAND,
> .length = cpu_to_be32(34),
> --
> 2.4.3
>
[toc] | [prev] | [next] | [standalone]
| From | Mimi Zohar <zohar@linux.vnet.ibm.com> |
|---|---|
| Date | 2017-02-17 13:50 +0100 |
| Subject | Re: [PATCH] tpm: Fix expected number of response bytes of TPM1.2 PCR Extend |
| Message-ID | <tbQ93-4lj-5@gated-at.bofh.it> |
| In reply to | #1581523 |
Hi James,
On Wed, 2017-02-15 at 20:09 +0200, Jarkko Sakkinen wrote:
> On Wed, Feb 15, 2017 at 11:56:23AM -0500, Stefan Berger wrote:
> > The TPM1.2 PCR Extend operation only returns 20 bytes in the body,
> > which is the size of the PCR state.
> >
> > This fixes a problem where IMA gets errors with every PCR Extend.
> >
> > Fixes: c659af78eb7b ("tpm: Check size of response before accessing data")
> > Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
> > Acked-by: Mimi Zohar <zohar@us.ibm.com>
>
> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
This patch needs to be included with the rest of the patches being
upstreamed in the next open window. Should Jarkko or I send you a pull
request for it?
thanks,
Mimi
[toc] | [prev] | [next] | [standalone]
| From | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> |
|---|---|
| Date | 2017-02-17 19:50 +0100 |
| Subject | Re: [PATCH] tpm: Fix expected number of response bytes of TPM1.2 PCR Extend |
| Message-ID | <tbVLt-7V6-31@gated-at.bofh.it> |
| In reply to | #1583387 |
On Fri, Feb 17, 2017 at 07:46:38AM -0500, Mimi Zohar wrote:
> Hi James,
>
> On Wed, 2017-02-15 at 20:09 +0200, Jarkko Sakkinen wrote:
> > On Wed, Feb 15, 2017 at 11:56:23AM -0500, Stefan Berger wrote:
> > > The TPM1.2 PCR Extend operation only returns 20 bytes in the body,
> > > which is the size of the PCR state.
> > >
> > > This fixes a problem where IMA gets errors with every PCR Extend.
> > >
> > > Fixes: c659af78eb7b ("tpm: Check size of response before accessing data")
> > > Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
> > > Acked-by: Mimi Zohar <zohar@us.ibm.com>
> >
> > Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
>
> This patch needs to be included with the rest of the patches being
> upstreamed in the next open window. Should Jarkko or I send you a pull
> request for it?
>
> thanks,
>
> Mimi
I'm sending a pull request after the weekend. It will contain
only a few small scoped fixes so wouldn't it be easiest if I
just include this to the pack?
/Jarkko
[toc] | [prev] | [next] | [standalone]
| From | Mimi Zohar <zohar@linux.vnet.ibm.com> |
|---|---|
| Date | 2017-02-17 20:00 +0100 |
| Subject | Re: [PATCH] tpm: Fix expected number of response bytes of TPM1.2 PCR Extend |
| Message-ID | <tbVV8-7YF-23@gated-at.bofh.it> |
| In reply to | #1583655 |
On Fri, 2017-02-17 at 20:45 +0200, Jarkko Sakkinen wrote:
> On Fri, Feb 17, 2017 at 07:46:38AM -0500, Mimi Zohar wrote:
> > Hi James,
> >
> > On Wed, 2017-02-15 at 20:09 +0200, Jarkko Sakkinen wrote:
> > > On Wed, Feb 15, 2017 at 11:56:23AM -0500, Stefan Berger wrote:
> > > > The TPM1.2 PCR Extend operation only returns 20 bytes in the body,
> > > > which is the size of the PCR state.
> > > >
> > > > This fixes a problem where IMA gets errors with every PCR Extend.
> > > >
> > > > Fixes: c659af78eb7b ("tpm: Check size of response before accessing data")
> > > > Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
> > > > Acked-by: Mimi Zohar <zohar@us.ibm.com>
> > >
> > > Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
> >
> > This patch needs to be included with the rest of the patches being
> > upstreamed in the next open window. Should Jarkko or I send you a pull
> > request for it?
> I'm sending a pull request after the weekend. It will contain
> only a few small scoped fixes so wouldn't it be easiest if I
> just include this to the pack?
As long as it makes it into the James' pull request to Linus, that's
fine.
Mimi
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web