[dpdk-stable] [PATCH 18.11] net/tap: fix mbuf double free when writev fails

Kevin Traynor ktraynor at redhat.com
Fri Jun 26 14:55:02 CEST 2020


On 20/06/2020 15:59, Yunjian Wang wrote:
> [ upstream commit 710aa4279097e9ee5a131b7e0732e5a8ef8bcfc1 ]
> 
> When the tap_write_mbufs() function return with break, mbuf was freed
> without increasing num_packets, which could cause applications to free
> the mbuf again. And the pmd_tx_burst() function should returns the
> number of original packets it actually sent excluding tso mbufs.
> 
> Fixes: 9396ad334672 ("net/tap: fix reported number of Tx packets")
> 
> Signed-off-by: Yunjian Wang <yunjian.wang at foxmail.com>
> Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
> Acked-by: Stephen Hemminger <stephen at networkplumber.org>
> ---

Applied, thanks. This is included in 18.11.9-rc2.



More information about the stable mailing list