linux-yocto/drivers/crypto/intel/iaa
Dan Carpenter e0d3b845a1 crypto: iaa - Fix potential use after free bug
The free_device_compression_mode(iaa_device, device_mode) function frees
"device_mode" but it iss passed to iaa_compression_modes[i]->free() a few
lines later resulting in a use after free.

The good news is that, so far as I can tell, nothing implements the
->free() function and the use after free happens in dead code.  But, with
this fix, when something does implement it, we'll be ready.  :)

Fixes: b190447e0f ("crypto: iaa - Add compression mode management along with fixed mode")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2024-08-02 21:11:20 +08:00
..
iaa_crypto_comp_fixed.c crypto: iaa - Remove header table code 2024-01-26 16:39:32 +08:00
iaa_crypto_main.c crypto: iaa - Fix potential use after free bug 2024-08-02 21:11:20 +08:00
iaa_crypto_stats.c crypto: iaa - Change iaa statistics to atomic64_t 2024-04-02 10:49:38 +08:00
iaa_crypto_stats.h crypto: iaa - Remove comp/decomp delay statistics 2024-04-02 10:49:38 +08:00
iaa_crypto.h crypto: iaa - Change iaa statistics to atomic64_t 2024-04-02 10:49:38 +08:00
Kconfig crypto: iaa - Add IAA Compression Accelerator stats 2023-12-15 17:52:53 +08:00
Makefile crypto: iaa - Add IAA Compression Accelerator stats 2023-12-15 17:52:53 +08:00