Re: [PATCH] virtiofsd: Fix potential NULL pointer dereference in virtio_send_msg()

2020-12-11 Thread Alex Chen
Hi Dave, On 2020/12/11 2:00, Dr. David Alan Gilbert wrote: > * Alex Chen (alex.c...@huawei.com) wrote: >> The 'ch' will be NULL in the following stack: >> send_notify_iov()->fuse_send_msg()->virtio_send_msg(), >> so we should check 'ch' is valid before dereferencing it >> >> Reported-by: Euler Rob

Re: [PATCH] virtiofsd: Fix potential NULL pointer dereference in virtio_send_msg()

2020-12-10 Thread Dr. David Alan Gilbert
* Alex Chen (alex.c...@huawei.com) wrote: > The 'ch' will be NULL in the following stack: > send_notify_iov()->fuse_send_msg()->virtio_send_msg(), > so we should check 'ch' is valid before dereferencing it > > Reported-by: Euler Robot > Signed-off-by: Alex Chen Please check, but I don't think w

[PATCH] virtiofsd: Fix potential NULL pointer dereference in virtio_send_msg()

2020-12-10 Thread Alex Chen
The 'ch' will be NULL in the following stack: send_notify_iov()->fuse_send_msg()->virtio_send_msg(), so we should check 'ch' is valid before dereferencing it Reported-by: Euler Robot Signed-off-by: Alex Chen --- tools/virtiofsd/fuse_virtio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a