> -----Original Message----- > From: Xia, Chenbo <[email protected]> > Sent: Thursday, September 22, 2022 9:47 PM > To: Ma, WenwuX <[email protected]>; [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]>; [email protected] > Subject: RE: [PATCH] examples/vhost: fix use after free > > > -----Original Message----- > > From: Xia, Chenbo <[email protected]> > > Sent: Friday, July 15, 2022 1:55 PM > > To: Ma, WenwuX <[email protected]>; [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]>; [email protected] > > Subject: RE: [PATCH] examples/vhost: fix use after free > > > > > -----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]> > > > --- > > > examples/vhost/main.c | 19 ++++++++++++------- > > > 1 file changed, 12 insertions(+), 7 deletions(-) > > > > > > > Reviewed-by: Chenbo Xia <[email protected]>
Applied to next-virtio/main, thanks

