On Thu, May 12, 2016 at 12:51 PM, Alexander Duyck <adu...@mirantis.com> wrote: > The following trace is seen when receiving a DHCP request over a flow-based > VXLAN tunnel. I believe this is caused by the metadata dst having a NULL > dev value and as a result dev_net(dev) is causing a NULL pointer dereference. > > To resolve this I am replacing the check for skb_dst() with skb_valid_dst() > so that we do not attempt to use the metadata dst to retrieve a device in > order to determine the network namespace.
Why does UDP layer need to care about tunnel layer things? If the problem is really what you describe, then the tunnel layer should reset that dst after finish.