From 92de53472e689a94e3e7840b13001da091c0ccaa Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 8 Jul 2021 14:46:42 -0700 Subject: [PATCH] ANDROID: fips140: log already-live algorithms It may be helpful to know whether the "already-live algorithms" code path is being executed or not, and if so, with which algorithms. Add a log message for it. Bug: 153614920 Bug: 188620248 Change-Id: Ie3757794b1e43f630d5dc8f888c6ad33acacbc4c Signed-off-by: Eric Biggers --- crypto/fips140-module.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/fips140-module.c b/crypto/fips140-module.c index 3738ec94d2ce..8d8e723816d9 100644 --- a/crypto/fips140-module.c +++ b/crypto/fips140-module.c @@ -152,6 +152,8 @@ static void __init unregister_existing_fips140_algos(void) * transformations. We will swap these out * later with integrity checked versions. */ + pr_info("found already-live algorithm '%s' ('%s')\n", + alg->cra_name, alg->cra_driver_name); list_move(&alg->cra_list, &unchecked_fips140_algos); }