qemu-e2k/net
Jason Wang c87826a878 tap: fix NULL dereference when passing invalid parameters to tap
This patch forbid the following invalid parameters to tap:

1) fd and vhostfds were specified but vhostfd were not specified
2) vhostfds were specified but fds were not specified
3) fds and vhostfd were specified

For 1 and 2, net_init_tap_one() will still pass NULL as vhostfdname to
monitor_handle_fd_param(), which may crash the qemu.

Also remove the unnecessary has_fd check.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Stefan Hajnoczi <shajnocz@redhat.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-06-07 15:48:11 +02:00
..
checksum.c net: iovec checksum calculator 2013-03-25 11:13:10 +01:00
clients.h
dump.c
eth.c Common definitions for VMWARE devices 2013-03-25 11:13:10 +01:00
hub.c net: fix qemu_flush_queued_packets() in presence of a hub 2013-02-27 16:10:23 +01:00
hub.h net: fix qemu_flush_queued_packets() in presence of a hub 2013-02-27 16:10:23 +01:00
Makefile.objs Common definitions for VMWARE devices 2013-03-25 11:13:10 +01:00
net.c net: make network client name unique 2013-05-03 13:53:46 +02:00
queue.c net: fix unbounded NetQueue 2013-02-27 16:10:39 +01:00
slirp.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
socket.c net: ensure "socket" backend uses non-blocking fds 2013-04-02 11:47:37 -04:00
tap_int.h tap: multiqueue support 2013-02-01 11:03:02 -06:00
tap-aix.c tap: multiqueue support 2013-02-01 11:03:02 -06:00
tap-bsd.c net: support for bridged networking on Mac OS X 2013-05-24 16:33:48 +02:00
tap-haiku.c tap: multiqueue support 2013-02-01 11:03:02 -06:00
tap-linux.c tap: set IFF_ONE_QUEUE per default 2013-02-27 16:10:47 +01:00
tap-linux.h tap: set IFF_ONE_QUEUE per default 2013-02-27 16:10:47 +01:00
tap-solaris.c tap: multiqueue support 2013-02-01 11:03:02 -06:00
tap-win32.c tap: support enabling or disabling a queue 2013-02-01 11:03:02 -06:00
tap.c tap: fix NULL dereference when passing invalid parameters to tap 2013-06-07 15:48:11 +02:00
util.c
util.h
vde.c net: increase buffer size to accommodate Jumbo frame pkts 2013-03-25 11:14:07 +01:00