[PATCH] examples/vhost: fix use after free

Xia, Chenbo chenbo.xia at intel.com
Fri Jul 15 07:54:40 CEST 2022


> -----Original Message-----
> From: Ma, WenwuX <wenwux.ma at intel.com>
> Sent: Thursday, July 14, 2022 1:11 PM
> To: maxime.coquelin at redhat.com; Xia, Chenbo <chenbo.xia at intel.com>;
> dev at dpdk.org
> Cc: Hu, Jiayu <jiayu.hu at intel.com>; Wang, Yinan <yinan.wang at intel.com>; He,
> Xingguang <xingguang.he at intel.com>; Ling, WeiX <weix.ling at intel.com>; Wang,
> YuanX <yuanx.wang at intel.com>; Ma, WenwuX <wenwux.ma at intel.com>;
> stable at dpdk.org
> Subject: [PATCH] examples/vhost: fix use after free
> 
> In async_enqueue_pkts(), the failed pkts will
> be freed before return, but, the failed pkts may be
> retried later, it will cause use after free. So,
> we free the failed pkts after retry.
> 
> Fixes: 1907ce4baec3 ("examples/vhost: fix retry logic on Rx path")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Wenwu Ma <wenwux.ma at intel.com>
> ---
>  examples/vhost/main.c | 19 ++++++++++++-------
>  1 file changed, 12 insertions(+), 7 deletions(-)
> 

As discussed in yesterday's release meeting, this issue should have minor impact,
so the fix could be moved to next release.

Thanks,
Chenbo


More information about the stable mailing list