MODSIGN: Make shash allocation failure fatal
authorBen Hutchings <ben@decadent.org.uk>
Sun, 5 May 2019 12:45:06 +0000 (13:45 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 30 Jan 2021 20:38:57 +0000 (20:38 +0000)
commit4e20ca9418614e41769cbae30cfacc7bfc6ff6b1
tree10a1eec0fe80ec5b4f01b2aa4ec2fc0e68caf86e
parent9e1d3e8418547a128ea9575ff2fee89944865e37
MODSIGN: Make shash allocation failure fatal

mod_is_hash_blacklisted() currently returns 0 (suceess) if
crypto_alloc_shash() fails.  This should instead be a fatal error,
so unwrap and pass up the error code.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/all/db-mok-keyring
Gbp-Pq: Name modsign-make-shash-allocation-failure-fatal.patch
kernel/module_signing.c