From: Herbert Xu Date: Tue, 14 Jul 2009 13:35:36 +0000 (+0800) Subject: crypto: hash - Zap unaligned buffers X-Git-Tag: v2.6.32-rc1~731^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c32c516eb1c1f9c14d25478442137c698788975;p=pandora-kernel.git crypto: hash - Zap unaligned buffers Some unaligned buffers on the stack weren't zapped properly which may cause secret data to be leaked. This patch fixes them by doing a zero memset. It is also possible for us to place random kernel stack contents in the digest buffer if a digest operation fails. This is fixed by only copying if the operation succeeded. Signed-off-by: Herbert Xu --- Reading git-diff-tree failed