search for: minfei

Displaying 20 results from an estimated 21 matches for "minfei".

2016 Jul 19
4
[PATCH v3] virtio_blk: Fix a slient kernel panic
From: Minfei Huang <mnghuan at gmail.com> We do a lot of memory allocation in function init_vq, and don't handle the allocation failure properly. Then this function will return 0, although initialization fails due to lacking memory. At that moment, kernel will panic in guest machine, if virtio is use...
2016 Jul 19
4
[PATCH v3] virtio_blk: Fix a slient kernel panic
From: Minfei Huang <mnghuan at gmail.com> We do a lot of memory allocation in function init_vq, and don't handle the allocation failure properly. Then this function will return 0, although initialization fails due to lacking memory. At that moment, kernel will panic in guest machine, if virtio is use...
2016 Jun 27
2
[PATCH] virtio: Return correct errno for function init_vq's failure
...0 will be returned, if we can not allocate more memory in function init_vq. If host can support multiple virtual queues, and we fails to allocate necessary memory structures for vq, kernel may crash due to incorrect returning. To fix it, kernel will return correct value in init_vq. Signed-off-by: Minfei Huang <mnghuan at gmail.com> Signed-off-by: Minfei Huang <minfei.hmf at alibaba-inc.com> --- drivers/block/virtio_blk.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 42758b5..40ecb2b 100644 --- a/d...
2016 Jun 27
2
[PATCH] virtio: Return correct errno for function init_vq's failure
...0 will be returned, if we can not allocate more memory in function init_vq. If host can support multiple virtual queues, and we fails to allocate necessary memory structures for vq, kernel may crash due to incorrect returning. To fix it, kernel will return correct value in init_vq. Signed-off-by: Minfei Huang <mnghuan at gmail.com> Signed-off-by: Minfei Huang <minfei.hmf at alibaba-inc.com> --- drivers/block/virtio_blk.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 42758b5..40ecb2b 100644 --- a/d...
2016 Jul 18
2
[PATCH v2] virtio_blk: Fix a slient kernel panic
...s due to lacking memory. At that moment, kernel will panic in guest machine, if virtio is used to drive disk. To fix this bug, we should take care of allocation failure, and return correct value to let caller know what happen. Tested-by: Chao Fan <fanc.fnst at cn.fujitsu.com> Signed-off-by: Minfei Huang <minfei.hmf at alibaba-inc.com> Signed-off-by: Minfei Huang <mnghuan at gmail.com> --- v1: - Refactor the patch to make code more readable --- drivers/block/virtio_blk.c | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/drivers...
2016 Jul 18
2
[PATCH v2] virtio_blk: Fix a slient kernel panic
...s due to lacking memory. At that moment, kernel will panic in guest machine, if virtio is used to drive disk. To fix this bug, we should take care of allocation failure, and return correct value to let caller know what happen. Tested-by: Chao Fan <fanc.fnst at cn.fujitsu.com> Signed-off-by: Minfei Huang <minfei.hmf at alibaba-inc.com> Signed-off-by: Minfei Huang <mnghuan at gmail.com> --- v1: - Refactor the patch to make code more readable --- drivers/block/virtio_blk.c | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/drivers...
2016 Jul 19
0
[PATCH v3] virtio_blk: Fix a slient kernel panic
On Tue, 19 Jul 2016 12:32:42 +0800 Minfei Huang <mnfhuang at gmail.com> wrote: > From: Minfei Huang <mnghuan at gmail.com> > > We do a lot of memory allocation in function init_vq, and don't handle > the allocation failure properly. Then this function will return 0, > although initialization fails due to la...
2016 Jul 29
0
[PATCH v3] virtio_blk: Fix a slient kernel panic
On Tue, Jul 19, 2016 at 5:32 AM, Minfei Huang <mnfhuang at gmail.com> wrote: > From: Minfei Huang <mnghuan at gmail.com> > > We do a lot of memory allocation in function init_vq, and don't handle > the allocation failure properly. Then this function will return 0, > although initialization fails due to lack...
2016 Jul 18
2
[PATCH v2] virtio_blk: Fix a slient kernel panic
On 07/18/16 at 05:21P, Cornelia Huck wrote: > On Mon, 18 Jul 2016 22:01:29 +0800 > Minfei Huang <mnfhuang at gmail.com> wrote: > > diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c > > index 42758b5..d920512 100644 > > --- a/drivers/block/virtio_blk.c > > +++ b/drivers/block/virtio_blk.c > > @@ -381,9 +381,9 @@ static int init_vq(st...
2016 Jul 18
2
[PATCH v2] virtio_blk: Fix a slient kernel panic
On 07/18/16 at 05:21P, Cornelia Huck wrote: > On Mon, 18 Jul 2016 22:01:29 +0800 > Minfei Huang <mnfhuang at gmail.com> wrote: > > diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c > > index 42758b5..d920512 100644 > > --- a/drivers/block/virtio_blk.c > > +++ b/drivers/block/virtio_blk.c > > @@ -381,9 +381,9 @@ static int init_vq(st...
2016 Jul 06
0
[PATCH] virtio: Return correct errno for function init_vq's failure
On Mon, 27 Jun 2016 10:09:18 +0800 Minfei Huang <mnghuan at gmail.com> wrote: > The error number -ENOENT or 0 will be returned, if we can not allocate > more memory in function init_vq. If host can support multiple virtual > queues, and we fails to allocate necessary memory structures for vq, > kernel may crash due to in...
2016 Jul 18
0
[PATCH v2] virtio_blk: Fix a slient kernel panic
On Mon, 18 Jul 2016 22:01:29 +0800 Minfei Huang <mnfhuang at gmail.com> wrote: > We do a lot of memory allocation in function init_vq, and don't handle > the allocation failure properly. Then this function will return 0, > although initialization fails due to lacking memory. At that moment, > kernel will panic in gue...
2016 Jul 13
1
[PATCH] virtio: Return correct errno for function init_vq's failure
On 07/06/16 at 11:18P, Cornelia Huck wrote: > On Mon, 27 Jun 2016 10:09:18 +0800 > Minfei Huang <mnghuan at gmail.com> wrote: > > > The error number -ENOENT or 0 will be returned, if we can not allocate > > more memory in function init_vq. If host can support multiple virtual > > queues, and we fails to allocate necessary memory structures for vq, > > k...
2016 Jul 13
1
[PATCH] virtio: Return correct errno for function init_vq's failure
On 07/06/16 at 11:18P, Cornelia Huck wrote: > On Mon, 27 Jun 2016 10:09:18 +0800 > Minfei Huang <mnghuan at gmail.com> wrote: > > > The error number -ENOENT or 0 will be returned, if we can not allocate > > more memory in function init_vq. If host can support multiple virtual > > queues, and we fails to allocate necessary memory structures for vq, > > k...
2016 Aug 09
0
[PATCH RESEND] virtio_blk: Fix a slient kernel panic
...s due to lacking memory. At that moment, kernel will panic in guest machine, if virtio is used to drive disk. To fix this bug, we should take care of allocation failure, and return correct value to let caller know what happen. Tested-by: Chao Fan <fanc.fnst at cn.fujitsu.com> Signed-off-by: Minfei Huang <mnghuan at gmail.com> Signed-off-by: Minfei Huang <minfei.hmf at alibaba-inc.com> Reviewed-by: Cornelia Huck <cornelia.huck at de.ibm.com> Reviewed-by: Stefan Hajnoczi <stefanha at redhat.com> --- drivers/block/virtio_blk.c | 26 ++++++++------------------ 1 file cha...
2016 Aug 09
0
[PATCH RESEND] virtio_blk: Fix a slient kernel panic
...s due to lacking memory. At that moment, kernel will panic in guest machine, if virtio is used to drive disk. To fix this bug, we should take care of allocation failure, and return correct value to let caller know what happen. Tested-by: Chao Fan <fanc.fnst at cn.fujitsu.com> Signed-off-by: Minfei Huang <mnghuan at gmail.com> Signed-off-by: Minfei Huang <minfei.hmf at alibaba-inc.com> Reviewed-by: Cornelia Huck <cornelia.huck at de.ibm.com> Reviewed-by: Stefan Hajnoczi <stefanha at redhat.com> --- drivers/block/virtio_blk.c | 26 ++++++++------------------ 1 file cha...
2016 Jul 18
0
[PATCH v2] virtio_blk: Fix a slient kernel panic
On Tue, 19 Jul 2016 00:18:32 +0800 Minfei Huang <mnfhuang at gmail.com> wrote: > On 07/18/16 at 05:21P, Cornelia Huck wrote: > > On Mon, 18 Jul 2016 22:01:29 +0800 > > Minfei Huang <mnfhuang at gmail.com> wrote: > > > diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c > > > in...
2016 Aug 11
0
[PULL] vhost: fixes and cleanups for 4.8
...n <mst at redhat.com> ---------------------------------------------------------------- Christian Borntraeger (1): virtio/s390: keep early_put_chars Cornelia Huck (1): virtio/s390: deprecate old transport Michael S. Tsirkin (1): virtio: fix error handling for debug builds Minfei Huang (1): virtio_blk: Fix a slient kernel panic Stefan Hajnoczi (2): vhost/vsock: fix vhost virtio_vsock_pkt use-after-free virtio-vsock: fix include guard typo Vegard Nossum (1): 9p/trans_virtio: use kvfree() for iov_iter_get_pages_alloc() Wei Yongjun (1): virtio:...
2016 Aug 11
0
[PULL] vhost: fixes and cleanups for 4.8
...n <mst at redhat.com> ---------------------------------------------------------------- Christian Borntraeger (1): virtio/s390: keep early_put_chars Cornelia Huck (1): virtio/s390: deprecate old transport Michael S. Tsirkin (1): virtio: fix error handling for debug builds Minfei Huang (1): virtio_blk: Fix a slient kernel panic Stefan Hajnoczi (2): vhost/vsock: fix vhost virtio_vsock_pkt use-after-free virtio-vsock: fix include guard typo Vegard Nossum (1): 9p/trans_virtio: use kvfree() for iov_iter_get_pages_alloc() Wei Yongjun (1): virtio:...
2016 Jul 18
0
[PATCH v2] virtio_blk: Fix a slient kernel panic
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linuxfoundation.org/pipermail/virtualization/attachments/20160718/3b4e899d/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-virtio_blk-Fix-a-slient-kernel-panic.patch Type: application/octet-stream Size: 2719 bytes Desc: not available