Thread (2 messages) 2 messages, 2 authors, 2018-05-26

Re: [PATCH] crypto: inside-secure - do not use memset on MMIO

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2018-05-26 16:27:05
Also in: lkml

On Thu, May 17, 2018 at 03:22:14PM +0200, Antoine Tenart wrote:
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 <redacted>
Signed-off-by: Antoine Tenart <redacted>
Patch applied.  Thanks.
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help