]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: eliminate cached dst leak
authorLance Richardson <lrichard@redhat.com>
Mon, 29 May 2017 17:25:57 +0000 (13:25 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jun 2017 18:45:21 +0000 (14:45 -0400)
commiteb3e1aed7332dc1117ae85bc3a4ae716850ce865
treec6d6b763100a97a74e69a033b48140adb8d4c166
parent998c906f255e798bc6a93809e0666df607eaab69
vxlan: eliminate cached dst leak

After commit 24e039d30293 ("net: use dst_cache for vxlan device"),
cached dst entries could be leaked when more than one remote was
present for a given vxlan_fdb entry, causing subsequent netns
operations to block indefinitely and "unregister_netdevice: waiting
for lo to become free." messages to appear in the kernel log.

Fix by properly releasing cached dst and freeing resources in this
case.

Fixes: 24e039d30293 ("net: use dst_cache for vxlan device")
Signed-off-by: Lance Richardson <lrichard@redhat.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c