diff options
author | Tianjia Zhang <[email protected]> | 2021-01-19 00:13:19 +0000 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-01-20 11:33:51 -0800 |
commit | 7178a107f5ea7bdb1cc23073234f0ded0ef90ec7 (patch) | |
tree | f3228da0199efa9d387e78fb3967ef64e8a03847 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | db58465f1121086b524be80be39d1fedbe5387f3 (diff) |
X.509: Fix crash caused by NULL pointer
On the following call path, `sig->pkey_algo` is not assigned
in asymmetric_key_verify_signature(), which causes runtime
crash in public_key_verify_signature().
keyctl_pkey_verify
asymmetric_key_verify_signature
verify_signature
public_key_verify_signature
This patch simply check this situation and fixes the crash
caused by NULL pointer.
Fixes: 215525639631 ("X.509: support OSCCA SM2-with-SM3 certificate verification")
Reported-by: Tobias Markus <[email protected]>
Signed-off-by: Tianjia Zhang <[email protected]>
Signed-off-by: David Howells <[email protected]>
Reviewed-and-tested-by: Toke Høiland-Jørgensen <[email protected]>
Tested-by: João Fonseca <[email protected]>
Acked-by: Jarkko Sakkinen <[email protected]>
Cc: [email protected] # v5.10+
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions