[ovs-git] [openvswitch/ovs] 7f5f2b: netdev-dpdk: Avoid reconfiguration on reconnection...

GitHub noreply at github.com
Wed Aug 10 00:36:19 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 7f5f2bd0ce43c3feac24f80991f9a95369b4b1e6
      https://github.com/openvswitch/ovs/commit/7f5f2bd0ce43c3feac24f80991f9a95369b4b1e6
  Author: Ilya Maximets <i.maximets at samsung.com>
  Date:   2016-08-09 (Tue, 09 Aug 2016)

  Changed paths:
    M lib/netdev-dpdk.c

  Log Message:
  -----------
  netdev-dpdk: Avoid reconfiguration on reconnection of same vhost device.

Binding/unbinding of virtio driver inside VM leads to reconfiguration
of PMD threads. This behaviour may be abused by executing bind/unbind
in an infinite loop to break normal networking on all ports attached
to the same instance of Open vSwitch.

Fix that by avoiding reconfiguration if it's not necessary.
Number of queues will not be decreased to 1 on device disconnection but
it's not very important in comparison with possible DOS attack from the
inside of guest OS.

Fixes: 81acebdaaf27 ("netdev-dpdk: Obtain number of queues for vhost
                ports from attached virtio.")
Reported-by: Ciara Loftus <ciara.loftus at intel.com>
Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
Acked-by: Daniele Di Proietto <diproiettod at vmware.com>




More information about the git mailing list