Files
Herbert Xu e52bab5f2b crypto: caam - Pad SG length when allocating hash edesc
[ Upstream commit 5124bc9616 ]

Because hardware will read in multiples of 4 SG entries, ensure
the allocated length is always padded.  This was already done
by some callers of ahash_edesc_alloc, but ahash_digest was conspicuously
missing.

In any case, doing it in the allocation function ensures that the
memory is always there.

Reported-by: Guangwu Zhang <guazhang@redhat.com>
Fixes: a5e5c13398 ("crypto: caam - fix S/G table passing page boundary")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-04 16:33:14 +02:00
..
2018-04-21 00:58:36 +08:00
2020-06-15 17:38:54 +10:00
2023-06-23 16:15:36 +08:00