]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f15b0ee5ebc7b7ff942b129e596347bca3447c0
tree38fd9580bdd5495075e63e950eda864aabaea16f
parent630839a2aa11edfdeebd5eef47c527ba2e66d327
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