Re: [PATCH] crypto: ahash - Fix crypto_ahash_import with partial block data
From: T Pratham
Date: Mon Nov 24 2025 - 04:48:46 EST
On 21/11/25 11:06, Herbert Xu wrote:
> On Thu, Nov 13, 2025 at 07:30:12PM +0530, T Pratham wrote:
>>
> Restore the partial block buffer in crypto_ahash_import by copying
> it. Check whether the partial block buffer exceeds the maximum
> size and return -EOVERFLOW if it does.
>
> Zero the partial block buffer in crypto_ahash_import_core.
>
> Reported-by: T Pratham <t-pratham@xxxxxx>
> Fixes: 9d7a0ab1c753 ("crypto: ahash - Handle partial blocks in API")
> Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
>
This fixes the issue.
Tested-by: T Pratham <t-pratham@xxxxxx>
--
Regards
T Pratham <t-pratham@xxxxxx>