Re: [Qemu-devel] [PATCH] net: vmxnet3: check for device_active before write

2016-08-08 Thread Jason Wang
On 2016年08月08日 21:08, Dmitry Fleytman wrote: Acked-by: Dmitry Fleytman On 8 Aug 2016, at 15:38 PM, P J P wrote: From: Li Qiang Vmxnet3 device emulator does not check if the device is active, before using it for write. It leads to

Re: [Qemu-devel] [PATCH] net: vmxnet3: check for device_active before write

2016-08-08 Thread Dmitry Fleytman
Acked-by: Dmitry Fleytman > On 8 Aug 2016, at 15:38 PM, P J P wrote: > > From: Li Qiang > > Vmxnet3 device emulator does not check if the device is active, > before using it for write. It leads to a use after free issue, > if the

[Qemu-devel] [PATCH] net: vmxnet3: check for device_active before write

2016-08-08 Thread P J P
From: Li Qiang Vmxnet3 device emulator does not check if the device is active, before using it for write. It leads to a use after free issue, if the vmxnet3_io_bar0_write routine is called after the device is deactivated. Add check to avoid it. Reported-by: Li Qiang