Re: [PATCH 1/3] TPM: Zero buffer whole after copying to userspace

From: Rajiv Andrade
Date: Fri Feb 03 2012 - 12:42:03 EST


On Tue, 06 Dec 2011, Tim Gardner wrote:

> 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@xxxxxxxxxxxxx>
> Cc: Debora Velarde <debora@xxxxxxxxxxxxxxxxxx>
> Cc: Rajiv Andrade <srajiv@xxxxxxxxxxxxxxxxxx>
> Cc: Marcel Selhorst <m.selhorst@xxxxxxxxxx>
> Cc: tpmdd-devel@xxxxxxxxxxxxxxxxxxxxx
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Tim Gardner <tim.gardner@xxxxxxxxxxxxx>

Applied to github.com:srajiv/tpm.git next

Thanks,
Rajiv

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/