diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2021-07-16 18:54:03 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-07-23 14:49:18 +0800 |
commit | 821720b9f34ec54106ebf012a712ba73bbcf47c2 (patch) | |
tree | 01fa733b27011d0d3b0d72f6d2c3c4050847efb9 /include | |
parent | f03a3cab26c1b7f628a3be6d33ae1b483829b630 (diff) | |
download | linux-821720b9f34ec54106ebf012a712ba73bbcf47c2.tar.bz2 |
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 <dave.hansen@intel.com>
Reported-by: syzbot <syzbot+5d1bad8042a8f0e8117a@syzkaller.appspotmail.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions