diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-05-05 11:42:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-19 03:06:45 +0300 |
commit | 7c712000ba78d26f46d16fcc8ac3a9d827ddb242 (patch) | |
tree | 0977431d0f80191af2fe962df07c30b9ba285a0a /security | |
parent | 3cbc5f6ed2722a65b75de22fe2206471f093b6c3 (diff) | |
download | linux-7c712000ba78d26f46d16fcc8ac3a9d827ddb242.tar.xz |
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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions