]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2016 00:06:45 +0000 (17:06 -0700)
commit7c712000ba78d26f46d16fcc8ac3a9d827ddb242
tree0977431d0f80191af2fe962df07c30b9ba285a0a
parent3cbc5f6ed2722a65b75de22fe2206471f093b6c3
crypto: testmgr - Use kmalloc memory for RSA input

commit df27b26f04ed388ff4cc2b5d8cfdb5d97678816f upstream.

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.

Reported-by: Anatoly Pugachev <matorola@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/testmgr.c