[lvc-project] [PATCH 5.10/5.15 2/2] crypto: safexcel - Add error handling for dma_map_sg() calls
Fedor Pchelkin
pchelkin at ispras.ru
Sat Sep 28 17:14:31 MSK 2024
On Sat, 21. Sep 09:34, Nikita Zhandarovich wrote:
> From: Nikita Zhandarovich <n.zhandarovich at fintech.ru>
>
> commit 87e02063d07708cac5bfe9fd3a6a242898758ac8 upstream.
>
> Macro dma_map_sg() may return 0 on error. This patch enables
> checks in case of the macro failure and ensures unmapping of
> previously mapped buffers with dma_unmap_sg().
>
> Found by Linux Verification Center (linuxtesting.org) with static
> analysis tool SVACE.
>
> Fixes: 49186a7d9e46 ("crypto: inside_secure - Avoid dma map if size is zero")
> Signed-off-by: Nikita Zhandarovich <n.zhandarovich at fintech.ru>
> Reviewed-by: Antoine Tenart <atenart at kernel.org>
> Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
> Signed-off-by: Nikita Zhandarovich <n.zhandarovich at fintech.ru>
> ---
Патчи добавлены в LVC-5.10. Спасибо!
Дублировать свою подпись, если она уже присутствует в патче, не нужно.
More information about the lvc-project
mailing list