search for: 1b509a0

Displaying 4 results from an estimated 4 matches for "1b509a0".

2009 Dec 20
0
[PATCH 1/3] vhost: prevent modification of an active ring
...r device mutex. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- drivers/vhost/net.c | 6 +++--- drivers/vhost/vhost.c | 29 ++++++++++++++++++++++++----- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index d6db10c..1b509a0 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -509,12 +509,10 @@ static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) vhost_net_enable_vq(n, vq); mutex_unlock(&vq->mutex); done: - mutex_unlock(&n->dev.mutex); if (oldsock) { vhost_net...
2009 Dec 20
0
[PATCH 1/3] vhost: prevent modification of an active ring
...r device mutex. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- drivers/vhost/net.c | 6 +++--- drivers/vhost/vhost.c | 29 ++++++++++++++++++++++++----- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index d6db10c..1b509a0 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -509,12 +509,10 @@ static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) vhost_net_enable_vq(n, vq); mutex_unlock(&vq->mutex); done: - mutex_unlock(&n->dev.mutex); if (oldsock) { vhost_net...
2009 Dec 20
0
[PATCH 2/3] vhost: add access_ok checks
...irkin <mst at redhat.com> --- drivers/vhost/net.c | 17 ++++++- drivers/vhost/vhost.c | 111 +++++++++++++++++++++++++++++++++++++++++++++++++ drivers/vhost/vhost.h | 2 + 3 files changed, 127 insertions(+), 3 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 1b509a0..1aacd8c 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -493,6 +493,12 @@ static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) } vq = n->vqs + index; mutex_lock(&vq->mutex); + + /* Verify that ring has been setup correctly. */ + if (!vhost_vq...
2009 Dec 20
0
[PATCH 2/3] vhost: add access_ok checks
...irkin <mst at redhat.com> --- drivers/vhost/net.c | 17 ++++++- drivers/vhost/vhost.c | 111 +++++++++++++++++++++++++++++++++++++++++++++++++ drivers/vhost/vhost.h | 2 + 3 files changed, 127 insertions(+), 3 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 1b509a0..1aacd8c 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -493,6 +493,12 @@ static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) } vq = n->vqs + index; mutex_lock(&vq->mutex); + + /* Verify that ring has been setup correctly. */ + if (!vhost_vq...