Re: [Qemu-devel] [PATCH] vhost: check for vhost_ops before using.

2016-08-09 Thread Marc-André Lureau
Hi On Wed, Aug 3, 2016 at 12:37 PM Marc-André Lureau < marcandre.lur...@gmail.com> wrote: > Hi > > On Wed, Aug 3, 2016 at 9:25 AM Ilya Maximets > wrote: > >> 'vhost_set_vring_enable()' tries to call function using pointer to >> 'vhost_ops' which can be already zeroized

Re: [Qemu-devel] [PATCH] vhost: check for vhost_ops before using.

2016-08-03 Thread Marc-André Lureau
Hi On Wed, Aug 3, 2016 at 9:25 AM Ilya Maximets wrote: > 'vhost_set_vring_enable()' tries to call function using pointer to > 'vhost_ops' which can be already zeroized in 'vhost_dev_cleanup()' > while vhost disconnection. > > Fix that by checking 'vhost_ops' before

[Qemu-devel] [PATCH] vhost: check for vhost_ops before using.

2016-08-02 Thread Ilya Maximets
'vhost_set_vring_enable()' tries to call function using pointer to 'vhost_ops' which can be already zeroized in 'vhost_dev_cleanup()' while vhost disconnection. Fix that by checking 'vhost_ops' before using. This fixes QEMU crash on calling 'ethtool -L eth0 combined 2' if vhost disconnected.