linux/drivers/crypto
Herbert Xu 030f4e9687 crypto: nx - Fix reentrancy bugs
This patch fixes a host of reentrancy bugs in the nx driver.  The
following algorithms are affected:

* CCM
* GCM
* CTR
* XCBC
* SHA256
* SHA512

The crypto API allows a single transform to be used by multiple
threads simultaneously.  For example, IPsec will use a single tfm
to process packets for a given SA.  As packets may arrive on
multiple CPUs that tfm must be reentrant.

The nx driver does try to deal with this by using a spin lock.
Unfortunately only the basic AES/CBC/ECB algorithms do this in
the correct way.

The symptom of these bugs may range from the generation of incorrect
output to memory corruption.

Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2015-07-08 15:14:13 +08:00
..
amcc crypto: amcc - remove incorrect __init/__exit markups 2015-03-12 01:11:07 +11:00
caam Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2015-06-22 21:04:48 -07:00
ccp Power management and ACPI material for v4.2-rc1 2015-06-23 14:18:07 -07:00
marvell genalloc: rename of_get_named_gen_pool() to of_gen_pool_get() 2015-06-30 19:45:01 -07:00
nx crypto: nx - Fix reentrancy bugs 2015-07-08 15:14:13 +08:00
qat crypto: qat - Deletion of unnecessary checks before two function calls 2015-06-29 16:06:29 +08:00
qce
ux500 crypto: drivers - Fix Kconfig selects 2015-06-18 14:45:36 +08:00
vmx Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2015-06-22 21:04:48 -07:00
atmel-aes-regs.h
atmel-aes.c crypto: atmel-aes - correct usage of dma_sync_* API 2015-04-08 22:20:05 +08:00
atmel-sha-regs.h
atmel-sha.c crypto: atmel-sha - correct the max burst size 2015-04-08 22:20:03 +08:00
atmel-tdes-regs.h
atmel-tdes.c crypto: atmel-tdes - initialize spinlock in probe 2015-04-08 22:20:03 +08:00
bfin_crc.c
bfin_crc.h
geode-aes.c
geode-aes.h
hifn_795x.c
img-hash.c crypto: img-hash - shift wrapping bug in img_hash_hw_init() 2015-03-23 22:06:50 +11:00
ixp4xx_crypto.c crypto: ixp4xx - Use crypto_aead_maxauthsize 2015-05-22 11:25:53 +08:00
Kconfig crypto: marvell/cesa - remove COMPILE_TEST dependency 2015-06-22 15:49:48 +08:00
Makefile crypto: marvell/cesa - add a new driver for Marvell's CESA 2015-06-19 22:18:03 +08:00
mv_cesa.c crypto: marvell/cesa - another fix up for of_get_named_gen_pool() rename 2015-07-03 11:37:02 -07:00
mv_cesa.h
mxs-dcp.c crypto: mxs-dcp - fix type of ret for wait_for_completion_timeout 2015-02-28 23:31:36 +13:00
n2_asm.S
n2_core.c Merge branch 'mvebu/drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc 2015-06-19 22:07:07 +08:00
n2_core.h
omap-aes.c crypto: omap-aes - Fix support for unequal lengths 2015-04-01 22:22:43 +08:00
omap-des.c crypto: omap-des - Fix unmapping of dma channels 2015-07-06 16:20:37 +08:00
omap-sham.c crypto: omap-sham - Add support for omap3 devices 2015-05-18 12:29:22 +08:00
padlock-aes.c x86/fpu: Rename i387.h to fpu/api.h 2015-05-19 15:47:30 +02:00
padlock-sha.c x86/fpu: Rename i387.h to fpu/api.h 2015-05-19 15:47:30 +02:00
picoxcell_crypto_regs.h
picoxcell_crypto.c crypto: picoxcell - Update to the current clk API 2015-06-21 19:59:22 +08:00
s5p-sss.c
sahara.c crypto: sahara - propagate the error on clk_disable_unprepare() failure 2015-06-21 19:59:28 +08:00
talitos.c crypto: talitos - static code checker fixes 2015-05-13 10:31:57 +08:00
talitos.h crypto: talitos - implement scatter/gather copy for SEC1 2015-04-21 09:14:42 +08:00