> -----Original Message-----
> From: Ma, WenwuX <[email protected]>
> Sent: Thursday, July 14, 2022 1:11 PM
> To: [email protected]; Xia, Chenbo <[email protected]>;
> [email protected]
> Cc: Hu, Jiayu <[email protected]>; Wang, Yinan <[email protected]>;
> He, Xingguang <[email protected]>; Ling, WeiX
> <[email protected]>; Wang, YuanX <[email protected]>; Ma,
> WenwuX <[email protected]>; [email protected]
> 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: [email protected]
> 
> Signed-off-by: Wenwu Ma <[email protected]>
> ---

Tested-by: Wei Ling <[email protected]>

Reply via email to