[PATCH] net/ena: fix mbuf double free in fast free mode

Ferruh Yigit ferruh.yigit at amd.com
Wed Mar 20 18:14:38 CET 2024


On 3/20/2024 2:52 PM, shaibran at amazon.com wrote:
> From: Shai Brandes <shaibran at amazon.com>
> 
> Fixed an issue of double free of mbufs which is exposed
> in mbuf fast free mode when handling multi-mbuf packets.
> 
> The faulty patch mishandled free of non-head mbufs as it
> iterated over linked mbufs and collected them into an array,
> which was then passed to rte_pktmbuf_free_bulk.
> However, rte_pktmbuf_free_bulk already performs an internal iteration
> over mbufs that are linked together which led to double free.
> 
> Fixes: 89b081e154c5 ("net/ena: fix fast mbuf free")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Shai Brandes <shaibran at amazon.com>
>

Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>

Applied to dpdk-next-net/main, thanks.


More information about the stable mailing list