Re: [Qemu-devel] [PATCH v2] libvhost-user: fix crash when rings aren't ready

2017-05-03 Thread Philippe Mathieu-Daudé
On 05/03/2017 01:54 PM, Marc-André Lureau wrote: Calling libvhost-user functions like vu_queue_get_avail_bytes() when the queue doesn't yet have addresses will result in the crashes like the following: Program received signal SIGSEGV, Segmentation fault. 0x55c414112ce4 in vring_avail_idx (vq

Re: [Qemu-devel] [PATCH v2] libvhost-user: fix crash when rings aren't ready

2017-05-03 Thread Dr. David Alan Gilbert
* Marc-André Lureau (marcandre.lur...@redhat.com) wrote: > Calling libvhost-user functions like vu_queue_get_avail_bytes() when the > queue doesn't yet have addresses will result in the crashes like the > following: > > Program received signal SIGSEGV, Segmentation fault. > 0x55c414112ce4 in v

[Qemu-devel] [PATCH v2] libvhost-user: fix crash when rings aren't ready

2017-05-03 Thread Marc-André Lureau
Calling libvhost-user functions like vu_queue_get_avail_bytes() when the queue doesn't yet have addresses will result in the crashes like the following: Program received signal SIGSEGV, Segmentation fault. 0x55c414112ce4 in vring_avail_idx (vq=0x55c41582fd68, vq=0x55c41582fd68) at /home/dg