[PATCH] net/vhost: fix null pointer dereference

Luca Boccassi bluca at debian.org
Mon Aug 8 15:02:22 CEST 2022


On Mon, 8 Aug 2022 at 02:01, Ma, WenwuX <wenwux.ma at intel.com> wrote:
>
>
>
> > -----Original Message-----
> > From: Luca Boccassi <bluca at debian.org>
> > Sent: 2022年8月5日 23:09
> > To: Ma, WenwuX <wenwux.ma at intel.com>
> > Cc: Maxime Coquelin <maxime.coquelin at redhat.com>; Xia, Chenbo
> > <chenbo.xia at intel.com>; dpdk stable <stable at dpdk.org>; Hu, Jiayu
> > <jiayu.hu at intel.com>; Wang, Yinan <yinan.wang at intel.com>; He, Xingguang
> > <xingguang.he at intel.com>
> > Subject: Re: [PATCH] net/vhost: fix null pointer dereference
> >
> > On Fri, 2022-08-05 at 10:12 +0000, Ma, WenwuX wrote:
> > >
> > > > -----Original Message-----
> > > > From: Luca Boccassi <luca.boccassi at gmail.com>
> > > > Sent: 2022年8月5日 18:04
> > > > To: Ma, WenwuX <wenwux.ma at intel.com>
> > > > Cc: Maxime Coquelin <maxime.coquelin at redhat.com>; Xia, Chenbo
> > > > <chenbo.xia at intel.com>; dpdk stable <stable at dpdk.org>; Hu, Jiayu
> > > > <jiayu.hu at intel.com>; Wang, Yinan <yinan.wang at intel.com>; He,
> > > > Xingguang <xingguang.he at intel.com>
> > > > Subject: Re: [PATCH] net/vhost: fix null pointer dereference
> > > >
> > > > On Fri, 5 Aug 2022 at 03:22, Wenwu Ma <wenwux.ma at intel.com> wrote:
> > > > >
> > > > > Because the async member of the vhost_virtqueue struct can be
> > > > > freed in controlpath, so it should be protected by spinlock in
> > > > > datapath, or, it may cause null pointer dereference in the
> > > > > following vhost_poll_enqueue_completed().
> > > > >
> > > > > Fixes: b737fd613969 ("vhost: add unsafe async API to clear
> > > > > packets")
> > > > >
> > > > > Signed-off-by: Wenwu Ma <wenwux.ma at intel.com>
> > > > > ---
> > > > >  lib/vhost/virtio_net.c | 12 +++++++++---
> > > > >  1 file changed, 9 insertions(+), 3 deletions(-)
> > > >
> > > > Hi,
> > > >
> > > > Is this for a stable branch? If so, which one? Please use
> > > > --subject-prefix next time to clearly identify it.
> > > >
> > > Sorry, it is 21.11
> >
> > Does this issue affect only 21.11? Or main as well?
> >
> Only 21.11

Thanks, applied and pushed.

Kind regards,
Luca Boccassi


More information about the stable mailing list