]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: Fix expected number of response bytes of TPM1.2 PCR Extend
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 15 Feb 2017 16:56:23 +0000 (11:56 -0500)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 15 Feb 2017 18:09:52 +0000 (20:09 +0200)
commit54478f672f2fc68b454f50a68c6136f472cdbeaf
tree3ec488d7df08762dc5f6785574677879bbf8d648
parentc4ac87a3206760fe281bd3f4d6e806175f82542d
tpm: Fix expected number of response bytes of TPM1.2 PCR Extend

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: 627a3b9af48b ("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>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-interface.c