Home
last modified time | relevance | path

Searched hist:"51 c08251" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/crypto/
H A Dxts.c51c08251 Sun Jan 22 02:07:37 CST 2023 Herbert Xu <herbert@gondor.apana.org.au> 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>