Re: [PATCH] crypto: testmgr - add panic_on_fail module parameter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 31, 2019 at 01:09:14PM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@xxxxxxxxxx>
> 
> Add a module parameter cryptomgr.panic_on_fail which causes the kernel
> to panic if any crypto self-tests fail.
> 
> Use cases:
> 
> - More easily detect crypto self-test failures by boot testing,
>   e.g. on KernelCI.
> - Get a bug report if syzkaller manages to use the template system to
>   instantiate an algorithm that fails its self-tests.
> 
> The command-line option "fips=1" already does this, but it also makes
> other changes not wanted for general testing, such as disabling
> "unapproved" algorithms.  panic_on_fail just does what it says.
> 
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
>  crypto/testmgr.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux