]> git.baikalelectronics.ru Git - kernel.git/commit
TPM: Zero buffer whole after copying to userspace
authorTim Gardner <tim.gardner@canonical.com>
Tue, 6 Dec 2011 18:29:20 +0000 (11:29 -0700)
committerRajiv Andrade <srajiv@linux.vnet.ibm.com>
Tue, 14 Feb 2012 18:43:38 +0000 (16:43 -0200)
commit924fcf9fdea500ed132b37350fecfc2b7f513ba6
treea8445d0ca44505db9f59620c92b9fe842f9304f0
parente453ff369186e7d4fd8c83adaf6b44c19b5e6faf
TPM: Zero buffer whole after copying to userspace

Commit 7f782722594578033c7c35ac672d33265edeb6ce correctly clears the TPM
buffer if the user specified read length is >= the TPM buffer length. However,
if the user specified read length is < the TPM buffer length, then part of the
TPM buffer is left uncleared.

Reported-by: Seth Forshee <seth.forshee@canonical.com>
Cc: Debora Velarde <debora@linux.vnet.ibm.com>
Cc: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Cc: Marcel Selhorst <m.selhorst@sirrix.com>
Cc: tpmdd-devel@lists.sourceforge.net
Cc: stable@vger.kernel.org
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
drivers/char/tpm/tpm.c