]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure - Prevent missing of processing errors
authorPascal van Leeuwen <pvanleeuwen@rambus.com>
Tue, 8 Sep 2020 06:10:45 +0000 (08:10 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Sep 2020 07:20:10 +0000 (17:20 +1000)
commit9e2c535bd59ade5c7b5d41ab406ca2ec6513c88e
tree2fba28b5a9e607da605b6c654aa567e71cca8c96
parentc3fe4146f875529c8512adeda4ff9df3c704a83a
crypto: inside-secure - Prevent missing of processing errors

On systems with coherence issues, packet processed could succeed while
it should have failed, e.g. because of an authentication fail.
This is because the driver would read stale status information that had
all error bits initialised to zero = no error.
Since this is potential a security risk, we want to prevent it from being
a possibility at all. So initialize all error bits to error state, so
that reading stale status information will always result in errors.

Signed-off-by: Pascal van Leeuwen <pvanleeuwen@rambus.com>
Acked-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_ring.c