]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: testmgr - Use kmalloc memory for RSA input
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 May 2016 08:42:49 +0000 (16:42 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 9 May 2016 08:47:53 +0000 (16:47 +0800)
commit91a8bb6a3bd224b88caa8bfb46d49a7c1c182b00
treeb21b9265fbe4911f803a53a2d0f4bb375140ccaf
parent892131364187372800f954b334e24ae818c0e7d1
crypto: testmgr - Use kmalloc memory for RSA input

As akcipher uses an SG interface, you must not use vmalloc memory
as input for it.  This patch fixes testmgr to copy the vmalloc
test vectors to kmalloc memory before running the test.

This patch also removes a superfluous sg_virt call in do_test_rsa.

Cc: <stable@vger.kernel.org>
Reported-by: Anatoly Pugachev <matorola@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c