Re: WARNING in xfrm_policy_inexact_gc_tree

From: Florian Westphal
Date: Mon Dec 10 2018 - 07:55:41 EST

syzbot <syzbot+0b2f1bc876d301440d44@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> HEAD commit: 74c4a24df7ca Add linux-next specific files for 20181207
> git tree: linux-next
> console output:
> kernel config:
> dashboard link:
> compiler: gcc (GCC) 8.0.1 20180413 (experimental)
> Unfortunately, I don't have any reproducer for this crash yet.
> IMPORTANT: if you fix the bug, please add the following tag to the commit:
> Reported-by: syzbot+0b2f1bc876d301440d44@xxxxxxxxxxxxxxxxxxxxxxxxx
> IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready
> IPv6: ADDRCONF(NETDEV_UP): veth1: link is not ready
> IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready
> IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready
> 8021q: adding VLAN 0 to HW filter on device team0
> WARNING: CPU: 0 PID: 13116 at net/xfrm/xfrm_policy.c:1066
> xfrm_policy_inexact_gc_tree+0x233/0x280 net/xfrm/xfrm_policy.c:1066

This means we're exiting from net namespace, but for some reason
policies would be left behind.

At this point the storage should only contain empty nodes,
as all policies are supposed to be gone.

I'll have a look.