aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2018-02-22 14:38:33 +0000
committerDavid Howells <[email protected]>2018-02-22 14:38:33 +0000
commit29f4a67c17e19314b7d74b8569be935e6c7edf50 (patch)
treedebe9c0a045f56b09856b062baba842b65b80a25 /scripts/gcc-plugins/cyc_complexity_plugin.c
parentPKCS#7: fix certificate chain verification (diff)
downloadkernel-29f4a67c17e19314b7d74b8569be935e6c7edf50.tar.gz
kernel-29f4a67c17e19314b7d74b8569be935e6c7edf50.zip
PKCS#7: fix certificate blacklisting
If there is a blacklisted certificate in a SignerInfo's certificate chain, then pkcs7_verify_sig_chain() sets sinfo->blacklisted and returns 0. But, pkcs7_verify() fails to handle this case appropriately, as it actually continues on to the line 'actual_ret = 0;', indicating that the SignerInfo has passed verification. Consequently, PKCS#7 signature verification ignores the certificate blacklist. Fix this by not considering blacklisted SignerInfos to have passed verification. Also fix the function comment with regards to when 0 is returned. Fixes: 03bb79315ddc ("PKCS#7: Handle blacklisted certificates") Cc: <[email protected]> # v4.12+ Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: David Howells <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions