OpenCloudOS-Kernel/drivers/crypto/rockchip
Herbert Xu 48dd260fdb crypto: rk3288 - Fix use after free in unprepare
commit c0afb6b88fbbc177fa322a835f874be217bffe45 upstream.

The unprepare call must be carried out before the finalize call
as the latter can free the request.

Fixes: c66c17a0f6 ("crypto: rk3288 - Remove prepare/unprepare request")
Reported-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-03 15:28:40 +02:00
..
Makefile crypto: rockchip - switch to skcipher API 2019-11-17 09:02:48 +08:00
rk3288_crypto.c crypto: drivers - Explicitly include correct DT includes 2023-08-23 11:04:23 +08:00
rk3288_crypto.h crypto: rk3288 - Use new crypto_engine_op interface 2023-08-18 17:01:11 +08:00
rk3288_crypto_ahash.c crypto: rk3288 - Fix use after free in unprepare 2024-04-03 15:28:40 +02:00
rk3288_crypto_skcipher.c crypto: rk3288 - Use new crypto_engine_op interface 2023-08-18 17:01:11 +08:00