]> www.infradead.org Git - users/jedix/linux-maple.git/commit
asymmetric_keys: log on fatal failures in PE/pkcs7
authorRobbie Harwood <rharwood@redhat.com>
Mon, 20 Feb 2023 17:12:54 +0000 (12:12 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 24 Mar 2023 14:25:32 +0000 (10:25 -0400)
commit969882ea5fc57045813d614d23dde9d65d4add47
treef2ac38c22fc07b41d1cdd2e7687d39deeecf40d1
parent435782c9edd8479f50d09c62e08adb7ea37c4869
asymmetric_keys: log on fatal failures in PE/pkcs7

These particular errors can be encountered while trying to kexec when
secureboot lockdown is in place.  Without this change, even with a
signed debug build, one still needs to reboot the machine to add the
appropriate dyndbg parameters (since lockdown blocks debugfs).

Accordingly, upgrade all pr_debug() before fatal error into pr_warn().

Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Jarkko Sakkinen <jarkko@kernel.org>
cc: Eric Biederman <ebiederm@xmission.com>
cc: Herbert Xu <herbert@gondor.apana.org.au>
cc: keyrings@vger.kernel.org
cc: linux-crypto@vger.kernel.org
cc: kexec@lists.infradead.org
Link: https://lore.kernel.org/r/20230220171254.592347-3-rharwood@redhat.com/
crypto/asymmetric_keys/pkcs7_verify.c
crypto/asymmetric_keys/verify_pefile.c