summaryrefslogtreecommitdiff
path: root/crypto/crypto_engine.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-01-22 16:07:37 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2023-01-27 18:58:09 +0800
commit51c082514c2dedf2711c99d93c196cc4eedceb40 (patch)
tree6c57ecf45ec5048aabdf8709d81d030bc029ca9d /crypto/crypto_engine.c
parent4bc713a49d7f97f7328e5a595b8f5d231d9ebfca (diff)
crypto: xts - Handle EBUSY correctly
As it is xts only handles the special return value of EINPROGRESS, which means that in all other cases it will free data related to the request. However, as the caller of xts may specify MAY_BACKLOG, we also need to expect EBUSY and treat it in the same way. Otherwise backlogged requests will trigger a use-after-free. Fixes: 8083b1bf8163 ("crypto: xts - add support for ciphertext stealing") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/crypto_engine.c')
0 files changed, 0 insertions, 0 deletions