Re: [PATCH] crypto: dcp - fix scatterlist linearization for hash

From: Horia Geanta
Date: Tue Feb 25 2020 - 14:13:44 EST


On 2/25/2020 5:06 PM, Dragos Rosioru (OSS) wrote:
> From: Rosioru Dragos <dragos.rosioru@xxxxxxx>
>
> The incorrect traversal of the scatterlist, during the linearization phase
> lead to computing the hash value of the wrong input buffer.
> New implementation uses scatterwalk_map_and_copy()
> to address this issue.
>
> Cc: <stable@xxxxxxxxxxxxxxx>
> Fixes: 15b59e7c3733 ("crypto: mxs - Add Freescale MXS DCP driver")
> Signed-off-by: Rosioru Dragos <dragos.rosioru@xxxxxxx>
Reviewed-by: Horia Geantă <horia.geanta@xxxxxxx>

Thanks,
Horia