datapath: Scrub skb between namespaces
authorJoe Stringer <joestringer@nicira.com>
Thu, 3 Dec 2015 07:53:55 +0000 (23:53 -0800)
committerJoe Stringer <joe@ovn.org>
Fri, 4 Dec 2015 01:17:26 +0000 (17:17 -0800)
commit5516c2776dd8566ac722616965281de123178533
tree21585b5836b212db70d25e24275df2d5f4c4bc25
parentc05e20946d1cb4e5f100b61981d81ffd3f575c27
datapath: Scrub skb between namespaces

If OVS receives a packet from another namespace, then the packet should
be scrubbed. However, people have already begun to rely on the behaviour
that skb->mark is preserved across namespaces, so retain this one field.

This is mainly to address information leakage between namespaces when
using OVS internal ports, but by placing it in ovs_vport_receive() it is
more generally applicable, meaning it should not be overlooked if other
port types are allowed to be moved into namespaces in future.

Upstream: 740dbc289155 ("openvswitch: Scrub skb between namespaces")
Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/vport.c