Re: [PATCHv2] vhost-net: fix use-after-free in vhost_net_flush

2013-07-03 Thread Michele Baldessari
On Tue, Jun 25, 2013 at 05:29:46PM +0300, Michael S. Tsirkin wrote: vhost_net_ubuf_put_and_wait has a confusing name: it will actually also free it's argument. Thus since commit 1280c27f8e29acf4af2da914e80ec27c3dbd5c01 vhost-net: flush outstanding DMAs on memory change vhost_net_flush

[PATCHv2] vhost-net: fix use-after-free in vhost_net_flush

2013-06-25 Thread Michael S. Tsirkin
vhost_net_ubuf_put_and_wait has a confusing name: it will actually also free it's argument. Thus since commit 1280c27f8e29acf4af2da914e80ec27c3dbd5c01 vhost-net: flush outstanding DMAs on memory change vhost_net_flush tries to use the argument after passing it to vhost_net_ubuf_put_and_wait,

Re: [PATCHv2] vhost-net: fix use-after-free in vhost_net_flush

2013-06-25 Thread David Miller
From: Michael S. Tsirkin m...@redhat.com Date: Tue, 25 Jun 2013 17:29:46 +0300 vhost_net_ubuf_put_and_wait has a confusing name: it will actually also free it's argument. Thus since commit 1280c27f8e29acf4af2da914e80ec27c3dbd5c01 vhost-net: flush outstanding DMAs on memory change