search for: e76535e

Displaying 7 results from an estimated 7 matches for "e76535e".

2017 Nov 28
6
[PATCH net,stable] vhost: fix skb leak in handle_rx()
...rx array while transmitting, which is simply done by deferring it a moment later in this patch. Signed-off-by: Wei Xu <wexu at redhat.com> --- drivers/vhost/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 8d626d7..e76535e 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -778,8 +778,6 @@ static void handle_rx(struct vhost_net *net) /* On error, stop handling until the next kick. */ if (unlikely(headcount < 0)) goto out; - if (nvq->rx_array) - msg.msg_control = vhost_net_buf_consume(&am...
2017 Nov 28
6
[PATCH net,stable] vhost: fix skb leak in handle_rx()
...rx array while transmitting, which is simply done by deferring it a moment later in this patch. Signed-off-by: Wei Xu <wexu at redhat.com> --- drivers/vhost/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 8d626d7..e76535e 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -778,8 +778,6 @@ static void handle_rx(struct vhost_net *net) /* On error, stop handling until the next kick. */ if (unlikely(headcount < 0)) goto out; - if (nvq->rx_array) - msg.msg_control = vhost_net_buf_consume(&am...
2017 Nov 29
1
[PATCH net,stable] vhost: fix skb leak in handle_rx()
...>> in this patch. >> >> Signed-off-by: Wei Xu <wexu at redhat.com> >> --- >> ? drivers/vhost/net.c | 4 ++-- >> ? 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c >> index 8d626d7..e76535e 100644 >> --- a/drivers/vhost/net.c >> +++ b/drivers/vhost/net.c >> @@ -778,8 +778,6 @@ static void handle_rx(struct vhost_net *net) >> ????????? /* On error, stop handling until the next kick. */ >> ????????? if (unlikely(headcount < 0)) >> ????????????? goto...
2017 Nov 29
1
[PATCH net,stable] vhost: fix skb leak in handle_rx()
...>> in this patch. >> >> Signed-off-by: Wei Xu <wexu at redhat.com> >> --- >> ? drivers/vhost/net.c | 4 ++-- >> ? 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c >> index 8d626d7..e76535e 100644 >> --- a/drivers/vhost/net.c >> +++ b/drivers/vhost/net.c >> @@ -778,8 +778,6 @@ static void handle_rx(struct vhost_net *net) >> ????????? /* On error, stop handling until the next kick. */ >> ????????? if (unlikely(headcount < 0)) >> ????????????? goto...
2017 Nov 28
0
[PATCH net,stable] vhost: fix skb leak in handle_rx()
...best to keep it simple). Also, we need to add this before each recvmsg, including overrun, and discard on error. > --- > drivers/vhost/net.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c > index 8d626d7..e76535e 100644 > --- a/drivers/vhost/net.c > +++ b/drivers/vhost/net.c > @@ -778,8 +778,6 @@ static void handle_rx(struct vhost_net *net) > /* On error, stop handling until the next kick. */ > if (unlikely(headcount < 0)) > goto out; > - if (nvq->rx_array) > - msg...
2017 Nov 28
0
[PATCH net,stable] vhost: fix skb leak in handle_rx()
...o <mjrosato at linux.vnet.ibm.com> here. Let's give credit where credit is due. Thanks a lot Matthew! > --- > drivers/vhost/net.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c > index 8d626d7..e76535e 100644 > --- a/drivers/vhost/net.c > +++ b/drivers/vhost/net.c > @@ -778,8 +778,6 @@ static void handle_rx(struct vhost_net *net) > /* On error, stop handling until the next kick. */ > if (unlikely(headcount < 0)) > goto out; > - if (nvq->rx_array) > - msg...
2017 Nov 29
0
[PATCH net,stable] vhost: fix skb leak in handle_rx()
...done by deferring it a moment later > in this patch. > > Signed-off-by: Wei Xu <wexu at redhat.com> > --- > drivers/vhost/net.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c > index 8d626d7..e76535e 100644 > --- a/drivers/vhost/net.c > +++ b/drivers/vhost/net.c > @@ -778,8 +778,6 @@ static void handle_rx(struct vhost_net *net) > /* On error, stop handling until the next kick. */ > if (unlikely(headcount < 0)) > goto out; > - if (nvq->rx_array) > -...