[Qemu-devel] [PATCH 3/4] virtio-net: Fix potential use-after-free

2011-07-27 Thread Amit Shah
virtio_cleanup() will remove the VirtIONet struct that gets allocated via virtio_common_init(). Ensure we don't dereference the structure after calling the cleanup function. Signed-off-by: Amit Shah amit.s...@redhat.com --- hw/virtio-net.c |2 +- 1 files changed, 1 insertions(+), 1

Re: [Qemu-devel] [PATCH 3/4] virtio-net: Fix potential use-after-free

2011-07-27 Thread Michael S. Tsirkin
On Wed, Jul 27, 2011 at 02:00:31PM +0530, Amit Shah wrote: virtio_cleanup() will remove the VirtIONet struct that gets allocated via virtio_common_init(). Ensure we don't dereference the structure after calling the cleanup function. Signed-off-by: Amit Shah amit.s...@redhat.com I see. It's

Re: [Qemu-devel] [PATCH 3/4] virtio-net: Fix potential use-after-free

2011-07-27 Thread Amit Shah
On (Wed) 27 Jul 2011 [11:43:44], Michael S. Tsirkin wrote: On Wed, Jul 27, 2011 at 02:00:31PM +0530, Amit Shah wrote: virtio_cleanup() will remove the VirtIONet struct that gets allocated via virtio_common_init(). Ensure we don't dereference the structure after calling the cleanup