]> 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)
commit37b8e6dc4887295e6b87c461163b8b0374c9e4ad
treeb21b9265fbe4911f803a53a2d0f4bb375140ccaf
parentf7727ea7fc7e59419d43a30f293901d31dbd11b6
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