mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
The return value of sg_nents_for_len was assigned to an unsigned long
in starfive_hash_digest, causing negative error codes to be converted
to large positive integers.
Add error checking for sg_nents_for_len and return immediately on
failure to prevent potential buffer overflows.
Fixes:
|
History
|
|
|---|---|---|
| .. | ||
| jh7110-aes.c | ||
| jh7110-cryp.c | ||
| jh7110-cryp.h | ||
| jh7110-hash.c | ||
| jh7110-rsa.c | ||
| Kconfig | ||
| Makefile | ||