]> git.karo-electronics.de Git - karo-tx-linux.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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:19 +0000 (15:35 -0400)
commitd12ada2b99093154f32947710677afb302524f50
tree995a14b1d49d1af7436740f646b924715a762957
parent48d97426c833bcf9eab80bd0099da50016108ad2
TPM: Zero buffer whole after copying to userspace

commit 3ab1aff89477dafb1aaeafe8c8669114a02b7226 upstream.

Commit 3321c07ae5068568cd61ac9f4ba749006a7185c9 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
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/char/tpm/tpm.c