certs: make blacklisted hash available in klog
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 9 Jan 2023 23:59:41 +0000 (23:59 +0000)
committerJarkko Sakkinen <jarkko@kernel.org>
Mon, 13 Feb 2023 08:11:20 +0000 (10:11 +0200)
commit06b53b02945e3021addc6af2da3ac999d2221d23
treeba4020729fc2e00de5832ecb46173fae04e51646
parent4d2732882703791ea4b670df433f88fc4b40a5cb
certs: make blacklisted hash available in klog

One common situation triggering this log statement are duplicate hashes
reported by the system firmware.

These duplicates should be removed from the firmware.

Without logging the blacklisted hash triggering the issue however the users
can not report it properly to the firmware vendors and the firmware vendors
can not easily see which specific hash is duplicated.

While changing the log message also use the dedicated ERR_PTR format
placeholder for the returned error value.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
certs/blacklist.c