net: clear local_df when passing skb between namespaces
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Thu, 5 Dec 2013 22:29:19 +0000 (23:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2014 23:31:32 +0000 (15:31 -0800)
commit2a1ac25294b5a8df0bd570a9e9917ad000451c42
tree4bcaef0a3751db16e0be0eb6340fa30f7c005e45
parent0a743164c25fc0c5c4ba0f581ab9d4e5dd9772f8
net: clear local_df when passing skb between namespaces

[ Upstream commit 239c78db9c41a8f524cce60507440d72229d73bc ]

We must clear local_df when passing the skb between namespaces as the
packet is not local to the new namespace any more and thus may not get
fragmented by local rules. Fred Templin noticed that other namespaces
do fragment IPv6 packets while forwarding. Instead they should have send
back a PTB.

The same problem should be present when forwarding DF-IPv4 packets
between namespaces.

Reported-by: Templin, Fred L <Fred.L.Templin@boeing.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/skbuff.c