netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: davem@davemloft.net, mst@redhat.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: Jason Wang <jasowang@redhat.com>
Subject: [PATCH V2 0/3] handle polling errors in vhost/vhost_net
Date: Sat,  5 Jan 2013 17:34:03 +0800	[thread overview]
Message-ID: <1357378446-19656-1-git-send-email-jasowang@redhat.com> (raw)

This is an update version of last version to fix the handling of polling errors
in vhost/vhost_net.

Currently, vhost and vhost_net ignores errors of polling which can lead kernel
crashing for buggy/malicious userspace. Fix this by extending the idea of tx
polling state to all other vhost_polls and changing the state only when polling
succeed.

Jason Wang (3):
  vhost_net: correct error handling in vhost_net_set_backend()
  vhost: handle polling errors
  tuntap: don't add to waitqueue when POLLERR

 drivers/net/tun.c     |    5 +--
 drivers/vhost/net.c   |   89 ++++++++++++++++++++----------------------------
 drivers/vhost/vhost.c |   25 +++++++++++---
 drivers/vhost/vhost.h |   11 +++++-
 4 files changed, 68 insertions(+), 62 deletions(-)

             reply	other threads:[~2013-01-05  9:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-05  9:34 Jason Wang [this message]
2013-01-05  9:34 ` [PATCH V2 1/3] vhost_net: correct error handling in vhost_net_set_backend() Jason Wang
2013-01-05  9:34 ` [PATCH V2 2/3] vhost: handle polling errors Jason Wang
2013-01-05  9:34 ` [PATCH V2 3/3] tuntap: don't add to waitqueue when POLLERR Jason Wang
2013-01-05 19:37   ` Eric Dumazet
2013-01-06  4:43     ` Jason Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1357378446-19656-1-git-send-email-jasowang@redhat.com \
    --to=jasowang@redhat.com \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).