Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1452313 > unrolled thread
| Started by | Stefan Hajnoczi <stefanha@gmail.com> |
|---|---|
| First post | 2016-07-29 10:30 +0200 |
| Last post | 2016-08-04 07:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v3] virtio_blk: Fix a slient kernel panic Stefan Hajnoczi <stefanha@gmail.com> - 2016-07-29 10:30 +0200
Re: [PATCH v3] virtio_blk: Fix a slient kernel panic Minfei Huang <minfei.hmf@alibaba-inc.com> - 2016-08-04 07:50 +0200
| From | Stefan Hajnoczi <stefanha@gmail.com> |
|---|---|
| Date | 2016-07-29 10:30 +0200 |
| Subject | Re: [PATCH v3] virtio_blk: Fix a slient kernel panic |
| Message-ID | <s0bl7-28i-13@gated-at.bofh.it> |
On Tue, Jul 19, 2016 at 5:32 AM, Minfei Huang <mnfhuang@gmail.com> wrote: > From: Minfei Huang <mnghuan@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 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@cn.fujitsu.com> > Signed-off-by: Minfei Huang <minfei.hmf@alibaba-inc.com> > Signed-off-by: Minfei Huang <mnghuan@gmail.com> > --- > v2: > - Remove useless initialisation to NULL > v1: > - Refactor the patch to make code more readable > --- > drivers/block/virtio_blk.c | 26 ++++++++------------------ > 1 file changed, 8 insertions(+), 18 deletions(-) Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[toc] | [next] | [standalone]
| From | Minfei Huang <minfei.hmf@alibaba-inc.com> |
|---|---|
| Date | 2016-08-04 07:50 +0200 |
| Message-ID | <s2jHz-4Io-3@gated-at.bofh.it> |
| In reply to | #1452313 |
[Multipart message — attachments visible in raw view] — view raw
Hi, Michael. Since Stefan and Cornelia have review-acked this patch, could you mind helping review this patch? Thanks Minfei > On Jul 29, 2016, at 16:26, Stefan Hajnoczi <stefanha@gmail.com> wrote: > > On Tue, Jul 19, 2016 at 5:32 AM, Minfei Huang <mnfhuang@gmail.com> wrote: >> From: Minfei Huang <mnghuan@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 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@cn.fujitsu.com> >> Signed-off-by: Minfei Huang <minfei.hmf@alibaba-inc.com> >> Signed-off-by: Minfei Huang <mnghuan@gmail.com> >> --- >> v2: >> - Remove useless initialisation to NULL >> v1: >> - Refactor the patch to make code more readable >> --- >> drivers/block/virtio_blk.c | 26 ++++++++------------------ >> 1 file changed, 8 insertions(+), 18 deletions(-) > > Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web