linux/drivers/crypto
Corentin Labbe 9bc3dd24e7 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: 6298e94821 ("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>
2021-01-03 08:41:36 +11:00
..
allwinner crypto: sun4i-ss - fix kmap usage 2021-01-03 08:41:36 +11:00
amcc crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
amlogic crypto: amlogic - Convert to DEFINE_SHOW_ATTRIBUTE 2020-09-25 17:48:16 +10:00
axis crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
bcm crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
caam Networking updates for 5.11 2020-12-15 13:22:29 -08:00
cavium crypto: cpt - Fix sparse warnings in cptpf 2020-12-04 18:13:15 +11:00
ccp crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
ccree crypto: ccree - remove unused including <linux/version.h> 2021-01-03 08:41:35 +11:00
chelsio crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
hisilicon crypto: hisilicon/trng - replace atomic_add_return() 2020-12-11 21:12:05 +11:00
inside-secure crypto: inside-secure - fix platform_get_irq.cocci warnings 2021-01-03 08:41:35 +11:00
keembay crypto: keembay - Add dependency on HAS_IOMEM 2020-12-23 18:45:22 +11:00
marvell crypto: marvell/octeontx - Use dma_set_mask_and_coherent to simplify code 2020-11-27 17:13:48 +11:00
nx crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
qat crypto: remove cipher routines from public crypto API 2021-01-03 08:41:35 +11:00
qce crypto: qce - Fix SHA result buffer corruption issues 2020-11-27 17:13:40 +11:00
rockchip crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
stm32 crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
ux500 crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
virtio crypto: virtio - don't use 'default m' 2020-08-21 14:47:50 +10:00
vmx crypto: remove cipher routines from public crypto API 2021-01-03 08:41:35 +11:00
xilinx crypto: algapi - Remove skbuff.h inclusion 2020-08-20 14:04:28 +10:00
atmel-aes-regs.h
atmel-aes.c crypto: atmel-aes - convert to use be32_add_cpu() 2020-09-25 17:48:12 +10:00
atmel-authenc.h crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
atmel-ecc.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
atmel-i2c.c crypto: atmel-i2c - Fix wakeup fail 2020-03-20 14:36:51 +11:00
atmel-i2c.h crypto: atmel - Fix -Wunused-const-variable warning 2019-08-30 18:05:31 +10:00
atmel-sha-regs.h
atmel-sha.c crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
atmel-sha204a.c crypto: atmel-sha204a - Use device-managed registration API 2019-08-02 14:43:59 +10:00
atmel-tdes-regs.h
atmel-tdes.c crypto: atmel-tdes - use semicolons rather than commas to separate statements 2020-10-02 18:02:15 +10:00
exynos-rng.c crypto: exynos - use devm_platform_ioremap_resource() to simplify code 2019-08-09 15:11:59 +10:00
geode-aes.c crypto: remove cipher routines from public crypto API 2021-01-03 08:41:35 +11:00
geode-aes.h crypto: geode-aes - convert to skcipher API and make thread-safe 2019-10-23 19:46:56 +11:00
hifn_795x.c crypto: drivers - use semicolons rather than commas to separate statements 2020-10-02 18:02:15 +10:00
img-hash.c crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
ixp4xx_crypto.c crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
Kconfig crypto: mediatek - remove obsolete driver 2021-01-03 08:41:34 +11:00
Makefile crypto: mediatek - remove obsolete driver 2021-01-03 08:41:34 +11:00
mxs-dcp.c crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
n2_asm.S
n2_core.c crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
n2_core.h
omap-aes-gcm.c crypto: omap-aes - avoid spamming console with self tests 2020-06-04 22:03:39 +10:00
omap-aes.c crypto: omap-aes - Fix PM disable depth imbalance in omap_aes_probe 2020-11-20 14:45:34 +11:00
omap-aes.h crypto: omap-aes - permit asynchronous skcipher as fallback 2020-07-16 21:49:02 +10:00
omap-crypto.c crypto: omap-crypto - fix userspace copied buffer access 2020-06-04 22:03:40 +10:00
omap-crypto.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
omap-des.c crypto: omap-des - Fix sparse/compiler warnings 2020-06-26 14:46:42 +10:00
omap-sham.c crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
padlock-aes.c crypto: algapi - Remove skbuff.h inclusion 2020-08-20 14:04:28 +10:00
padlock-sha.c crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
picoxcell_crypto.c crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
picoxcell_crypto_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
qcom-rng.c crypto: algapi - Remove skbuff.h inclusion 2020-08-20 14:04:28 +10:00
s5p-sss.c crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
sa2ul.c crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
sa2ul.h crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
sahara.c crypto: sahara - Remove unused .id_table support 2021-01-03 08:41:34 +11:00
talitos.c crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
talitos.h crypto: talitos - drop icv_ool 2019-07-03 22:13:11 +08:00