RE: [PATCH] vhost: fix null pointer dereference

2022-06-08 Thread Hu, Jiayu
stable ; David Marchand > > Subject: Re: [PATCH] vhost: fix null pointer dereference > > HI Jiayu, > > On 3/28/22 09:04, David Marchand wrote: > > On Mon, Mar 28, 2022 at 4:08 AM Jiayu Hu wrote: > >> > >> NULL check for vq->async must be protected by loc

Re: [PATCH] vhost: fix null pointer dereference

2022-06-01 Thread Maxime Coquelin
HI Jiayu, On 3/28/22 09:04, David Marchand wrote: On Mon, Mar 28, 2022 at 4:08 AM Jiayu Hu wrote: NULL check for vq->async must be protected by lock. Otherwise, it is possible that the data plane thread dereferences vq->async with NULL value, since the control plane thread is freeing vq->asyn

Re: [PATCH] vhost: fix null pointer dereference

2022-03-28 Thread David Marchand
On Mon, Mar 28, 2022 at 4:08 AM Jiayu Hu wrote: > > NULL check for vq->async must be protected by lock. Otherwise, it is > possible that the data plane thread dereferences vq->async with NULL > value, since the control plane thread is freeing vq->async. > > Fixes: ee8024b3d4ad (vhost: move async d

[PATCH] vhost: fix null pointer dereference

2022-03-27 Thread Jiayu Hu
NULL check for vq->async must be protected by lock. Otherwise, it is possible that the data plane thread dereferences vq->async with NULL value, since the control plane thread is freeing vq->async. Fixes: ee8024b3d4ad (vhost: move async data in dedicated structure) Cc: sta...@dpdk.org Signed-off-

Re: [PATCH] vhost: fix null pointer dereference

2022-02-10 Thread Maxime Coquelin
On 1/29/22 20:07, Weiguo Li wrote: Fixes: 155ee3542fb1 ("vhost: improve vhost-user layer logs") Signed-off-by: Weiguo Li --- lib/vhost/vhost_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c index e8297a09eb..d032998

Re: [PATCH] vhost: fix null pointer dereference

2022-02-03 Thread Maxime Coquelin
On 1/29/22 20:07, Weiguo Li wrote: Fixes: 155ee3542fb1 ("vhost: improve vhost-user layer logs") Signed-off-by: Weiguo Li --- lib/vhost/vhost_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c index e8297a09eb..d032998

[PATCH] vhost: fix null pointer dereference

2022-01-29 Thread Weiguo Li
Fixes: 155ee3542fb1 ("vhost: improve vhost-user layer logs") Signed-off-by: Weiguo Li --- lib/vhost/vhost_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c index e8297a09eb..d032998488 100644 --- a/lib/vhost/vhost_user.c ++