diff options
author | Ard Biesheuvel <[email protected]> | 2021-07-16 18:54:03 +0200 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2021-07-23 14:49:18 +0800 |
commit | 821720b9f34ec54106ebf012a712ba73bbcf47c2 (patch) | |
tree | 01fa733b27011d0d3b0d72f6d2c3c4050847efb9 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | f03a3cab26c1b7f628a3be6d33ae1b483829b630 (diff) |
crypto: x86/aes-ni - add missing error checks in XTS code
The updated XTS code fails to check the return code of skcipher_walk_virt,
which may lead to skcipher_walk_abort() or skcipher_walk_done() being called
while the walk argument is in an inconsistent state.
So check the return value after each such call, and bail on errors.
Fixes: 2481104fe98d ("crypto: x86/aes-ni-xts - rewrite and drop indirections via glue helper")
Reported-by: Dave Hansen <[email protected]>
Reported-by: syzbot <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions