From 965e9a2cf23b066d8bdeb690dff9cd7089c5f667 Mon Sep 17 00:00:00 2001 From: David Howells Date: Thu, 5 Feb 2026 13:02:41 +0000 Subject: [PATCH] pkcs7: Change a pr_warn() to pr_warn_once() Only display the "PKCS7: Waived invalid module sig (has authattrs)" once. Suggested-by: Lenny Szubowicz Signed-off-by: David Howells Tested-by: Lenny Szubowicz cc: Lukas Wunner cc: Ignat Korchagin cc: Jarkko Sakkinen cc: Stephan Mueller cc: Eric Biggers cc: Herbert Xu cc: keyrings@vger.kernel.org cc: linux-crypto@vger.kernel.org --- crypto/asymmetric_keys/pkcs7_verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/asymmetric_keys/pkcs7_verify.c b/crypto/asymmetric_keys/pkcs7_verify.c index 519eecfe67784..474e2c1ae21bb 100644 --- a/crypto/asymmetric_keys/pkcs7_verify.c +++ b/crypto/asymmetric_keys/pkcs7_verify.c @@ -427,7 +427,7 @@ int pkcs7_verify(struct pkcs7_message *pkcs7, if (pkcs7->have_authattrs) { #ifdef CONFIG_PKCS7_WAIVE_AUTHATTRS_REJECTION_FOR_MLDSA if (pkcs7->authattrs_rej_waivable) { - pr_warn("Waived invalid module sig (has authattrs)\n"); + pr_warn_once("Waived invalid module sig (has authattrs)\n"); break; } #endif -- 2.47.3