Skip to contentSkip to conversation

TPM: ReadPubEK output struct fix

PATCH New Rajiv Andrade 1 participant 1 message Jun 14, 2010 TPM device driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 TPM: ReadPubEK output struct fix

This patch adds a missing element of the ReadPubEK command output, that prevents future overflow of this buffer when copying the TPM output result into it.

---
 drivers/char/tpm/tpm.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/char/tpm/tpm.h +1 -0
index 8e00b4d..792868d 100644
@@ -224,6 +224,7 @@ struct	tpm_readpubek_params_out {
 	u8	algorithm[4];
 	u8	encscheme[2];
 	u8	sigscheme[2];
+	__be32	paramsize;
 	u8	parameters[12]; /*assuming RSA*/
 	__be32	keysize;
 	u8	modulus[256];
Signature · 1 line
1.6.6.1