From: Andrey Ryabinin Date: Thu, 10 Sep 2015 10:11:55 +0000 (+0300) Subject: crypto: testmgr - don't copy from source IV too much X-Git-Tag: omap-for-v4.3/fixes-rc5~133^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84cba178a3b88efe2668a9039f70abda072faa21;p=pandora-kernel.git crypto: testmgr - don't copy from source IV too much While the destination buffer 'iv' is MAX_IVLEN size, the source 'template[i].iv' could be smaller, thus memcpy may read read invalid memory. Use crypto_skcipher_ivsize() to get real ivsize and pass it to memcpy. Signed-off-by: Andrey Ryabinin Signed-off-by: Herbert Xu --- Reading git-diff-tree failed