Files
android_kernel_xiaomi_sm8450/drivers/crypto/ccree
Gilad Ben-Yossef e30368f3f3 crypto: ccree - zero all of request ctx before use
In certain error path req_ctx->iv was being freed despite
not being allocated because it was not initialized to NULL.
Rather than play whack a mole with the structure various
field, zero it before use.

This fixes a kernel panic that may occur if an invalid
buffer size was requested triggering the bug above.

Fixes: 63ee04c8b4 ("crypto: ccree - add skcipher support")
Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2018-08-03 18:06:05 +08:00
..
2018-02-15 23:26:42 +08:00
2018-02-15 23:26:42 +08:00
2018-07-09 00:33:35 +08:00
2018-02-15 23:26:41 +08:00
2018-02-15 23:26:42 +08:00