xfrm: Fix warning in xfrm6_tunnel_net_exit.
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 16 Apr 2018 05:50:09 +0000 (07:50 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 16 Apr 2018 05:50:09 +0000 (07:50 +0200)
commitb48c05ab5d32af2af4bc63851c153782d1c6ba42
treedad80f44a4216537788e6f99a6e2d1f49abb3fce
parent4b66af2d6356a00e94bcdea3e7fea324e8b5c6f4
xfrm: Fix warning in xfrm6_tunnel_net_exit.

We need to make sure that all states are really deleted
before we check that the state lists are empty. Otherwise
we trigger a warning.

Fixes: baeb0dbbb5659 ("xfrm6_tunnel: exit_net cleanup check added")
Reported-and-tested-by:syzbot+777bf170a89e7b326405@syzkaller.appspotmail.com
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/xfrm.h
net/ipv6/xfrm6_tunnel.c
net/xfrm/xfrm_state.c