linux/drivers/crypto/inside-secure
Antoine Tenart bf4407f081 crypto: inside-secure - do not use memset on MMIO
This patch fixes the Inside Secure driver which uses a memtset() call to
set an MMIO area from the cryptographic engine to 0. This is wrong as
memset() isn't guaranteed to work on MMIO for many reasons. This led to
kernel paging request panics in certain cases. Use memset_io() instead.

Fixes: 1b44c5a60c ("crypto: inside-secure - add SafeXcel EIP197 crypto engine driver")
Reported-by: Ofer Heifetz <oferh@marvell.com>
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2018-05-26 23:58:44 +08:00
..
Makefile crypto: inside-secure - add SafeXcel EIP197 crypto engine driver 2017-06-10 12:04:21 +08:00
safexcel.c crypto: inside-secure - do not use memset on MMIO 2018-05-26 23:58:44 +08:00
safexcel.h crypto: inside-secure - hmac(sha224) support 2018-03-31 01:32:49 +08:00
safexcel_cipher.c crypto: inside-secure - improve the skcipher token 2018-03-31 01:32:46 +08:00
safexcel_hash.c crypto: inside-secure - hmac(sha224) support 2018-03-31 01:32:49 +08:00
safexcel_ring.c crypto: inside-secure - use the base_end pointer in ring rollback 2017-06-20 11:21:48 +08:00