net/ipv6: fix LOCKDEP issue in rt6_remove_exception_rt()
authorEric Dumazet <edumazet@google.com>
Tue, 24 Apr 2018 16:22:49 +0000 (09:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Apr 2018 20:19:14 +0000 (16:19 -0400)
commit091311debcf02ff80a76d70b524eba4b2ffe66f1
tree1b03d2a4ead2602ef7754aa354696b7eee56240e
parent95ad7544ad3f6cf585e5b8587e7d520fa3a43ad5
net/ipv6: fix LOCKDEP issue in rt6_remove_exception_rt()

rt6_remove_exception_rt() is called under rcu_read_lock() only.

We lock rt6_exception_lock a bit later, so we do not hold
rt6_exception_lock yet.

Fixes: 8a14e46f1402 ("net/ipv6: Fix missing rcu dereferences on from")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Cc: David Ahern <dsahern@gmail.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c