]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
TPM: ReadPubEK output struct fix
authorRajiv Andrade <srajiv@linux.vnet.ibm.com>
Mon, 14 Jun 2010 16:58:22 +0000 (13:58 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:26:31 +0000 (10:26 -0700)
commit790572057bad5217a989efef7ecbec82b02aa62c
tree7636002889095220a20f6f262d8d6911d03ac501
parenteaec05c31f3964da627b67a6ae0320052651a020
TPM: ReadPubEK output struct fix

commit 02a077c52ef7631275a79862ffd9f3dbe9d38bc2 upstream.

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.

Prevents a kernel panic in case the user tries to read the
pubek from sysfs.

Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tpm/tpm.h