Re: [PATCH net] vxlan: eliminate cached dst leak
From: David Miller <davem@davemloft.net>
Date: 2017-06-01 18:46:54
From: David Miller <davem@davemloft.net>
Date: 2017-06-01 18:46:54
From: Lance Richardson <redacted> Date: Mon, 29 May 2017 13:25:57 -0400
After commit 0c1d70af924b ("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: commit 0c1d70af924b ("net: use dst_cache for vxlan device")In the future please do not put that "commit " string there, it's not needed.
Signed-off-by: Lance Richardson <redacted>
Applied and queued up for -stable, thank you.