linux/drivers/crypto/bcm
Aleksandr Mishin 2b3460cbf4 crypto: bcm - Fix pointer arithmetic
In spu2_dump_omd() value of ptr is increased by ciph_key_len
instead of hash_iv_len which could lead to going beyond the
buffer boundaries.
Fix this bug by changing ciph_key_len to hash_iv_len.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 9d12ba86f8 ("crypto: brcm - Add Broadcom SPU driver")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2024-04-02 10:49:39 +08:00
..
cipher.c crypto: bcm - Remove ofb 2023-12-08 11:59:46 +08:00
cipher.h
Makefile
spu.c
spu.h
spu2.c crypto: bcm - Fix pointer arithmetic 2024-04-02 10:49:39 +08:00
spu2.h
spum.h
util.c
util.h