crypto: fips - add FIPS test failure notification chain
authorGilad Ben-Yossef <gilad@benyossef.com>
Tue, 2 Jul 2019 11:39:20 +0000 (14:39 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Jul 2019 04:51:57 +0000 (14:51 +1000)
commit9552389c465ed1ded39edf4a5642a861b53c2955
tree38fd9580bdd5495075e63e950eda864aabaea16f
parent76a95bd8f9e10cade9c4c8df93b5c20ff45dc0f5
crypto: fips - add FIPS test failure notification chain

Crypto test failures in FIPS mode cause an immediate panic, but
on some system the cryptographic boundary extends beyond just
the Linux controlled domain.

Add a simple atomic notification chain to allow interested parties
to register to receive notification prior to us kicking the bucket.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/fips.c
crypto/testmgr.c
include/linux/fips.h