]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
crypto: inside-secure - do not use memset on MMIO
authorAntoine Tenart <antoine.tenart@bootlin.com>
Thu, 17 May 2018 13:22:14 +0000 (15:22 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 26 May 2018 15:58:44 +0000 (23:58 +0800)
commitbf4407f081f33466ef0b06e213c04264d356aa35
treeddd72e301695ae210adb423807e55dc8fbec6ed2
parenteea0d3ea7546961f69f55b26714ac8fd71c7c020
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: 1b44c5a60c13 ("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>
drivers/crypto/inside-secure/safexcel.c