Re: [PATCH RESEND 2/3] vhost: fix a null pointer reference of vhost_log

2020-03-10 Thread Michael S. Tsirkin
On Tue, Mar 10, 2020 at 08:02:30PM +0800, Longpeng (Mike) wrote: > 在 2020/3/10 16:23, Michael S. Tsirkin 写道: > > On Tue, Mar 10, 2020 at 04:04:35PM +0800, Longpeng (Mike, Cloud > > Infrastructure Service Product Dept.) wrote: > >> > >> > >> On 2020/3/10 13:57, Michael S. Tsirkin wrote: > >>> On Mo

Re: [PATCH RESEND 2/3] vhost: fix a null pointer reference of vhost_log

2020-03-10 Thread Longpeng (Mike)
在 2020/3/10 16:23, Michael S. Tsirkin 写道: > On Tue, Mar 10, 2020 at 04:04:35PM +0800, Longpeng (Mike, Cloud > Infrastructure Service Product Dept.) wrote: >> >> >> On 2020/3/10 13:57, Michael S. Tsirkin wrote: >>> On Mon, Feb 24, 2020 at 02:42:18PM +0800, Longpeng(Mike) wrote: From: Longpeng

Re: [PATCH RESEND 2/3] vhost: fix a null pointer reference of vhost_log

2020-03-10 Thread Michael S. Tsirkin
On Tue, Mar 10, 2020 at 04:04:35PM +0800, Longpeng (Mike, Cloud Infrastructure Service Product Dept.) wrote: > > > On 2020/3/10 13:57, Michael S. Tsirkin wrote: > > On Mon, Feb 24, 2020 at 02:42:18PM +0800, Longpeng(Mike) wrote: > >> From: Longpeng > >> > >> vhost_log_alloc() may fails and retu

Re: [PATCH RESEND 2/3] vhost: fix a null pointer reference of vhost_log

2020-03-10 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
On 2020/3/10 13:57, Michael S. Tsirkin wrote: > On Mon, Feb 24, 2020 at 02:42:18PM +0800, Longpeng(Mike) wrote: >> From: Longpeng >> >> vhost_log_alloc() may fails and returned pointer of log is null. >> However there're two places derefernce the return pointer without >> check. >> >> Signed-of

Re: [PATCH RESEND 2/3] vhost: fix a null pointer reference of vhost_log

2020-03-09 Thread Michael S. Tsirkin
On Mon, Feb 24, 2020 at 02:42:18PM +0800, Longpeng(Mike) wrote: > From: Longpeng > > vhost_log_alloc() may fails and returned pointer of log is null. > However there're two places derefernce the return pointer without > check. > > Signed-off-by: Longpeng > --- > hw/virtio/vhost.c | 19

Re: [PATCH RESEND 2/3] vhost: fix a null pointer reference of vhost_log

2020-03-09 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
Hi Michael, ping... On 2020/2/24 14:42, Longpeng(Mike) wrote: > From: Longpeng > > vhost_log_alloc() may fails and returned pointer of log is null. > However there're two places derefernce the return pointer without > check. > > Signed-off-by: Longpeng > --- > hw/virtio/vhost.c | 19

[PATCH RESEND 2/3] vhost: fix a null pointer reference of vhost_log

2020-02-23 Thread Longpeng(Mike)
From: Longpeng vhost_log_alloc() may fails and returned pointer of log is null. However there're two places derefernce the return pointer without check. Signed-off-by: Longpeng --- hw/virtio/vhost.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/hw/vir