diff options
author | 2020-12-14 20:02:30 +0000 | |
---|---|---|
committer | 2021-01-03 08:41:36 +1100 | |
commit | 9bc3dd24e7dccd50757db743a3635ad5b0497e6e (patch) | |
tree | 2bab6d5bd89156f8ae415f7274dda78e6b57d335 /crypto/blake2s_generic.c | |
parent | crypto: sun4i-ss - initialize need_fallback (diff) | |
download | linux-dev-9bc3dd24e7dccd50757db743a3635ad5b0497e6e.tar.xz linux-dev-9bc3dd24e7dccd50757db743a3635ad5b0497e6e.zip |
crypto: sun4i-ss - fix kmap usage
With the recent kmap change, some tests which were conditional on
CONFIG_DEBUG_HIGHMEM now are enabled by default.
This permit to detect a problem in sun4i-ss usage of kmap.
sun4i-ss uses two kmap via sg_miter (one for input, one for output), but
using two kmap at the same time is hard:
"the ordering has to be correct and with sg_miter that's probably hard to get
right." (quoting Tlgx)
So the easiest solution is to never have two sg_miter/kmap open at the same time.
After each use of sg_miter, I store the current index, for being able to
resume sg_miter to the right place.
Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator")
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/blake2s_generic.c')
0 files changed, 0 insertions, 0 deletions