Skip to content
Commit d3e6e285 authored by Florian Westphal's avatar Florian Westphal Committed by David S. Miller
Browse files

net: ipv4: fix rcu lockdep splat due to wrong annotation



syzbot triggered following splat when strict netlink
validation is enabled:

net/ipv4/devinet.c:1766 suspicious rcu_dereference_check() usage!

This occurs because we hold RTNL mutex, but no rcu read lock.
The second call site holds both, so just switch to the _rtnl variant.

Reported-by: default avatar <syzbot+bad6e32808a3a97b1515@syzkaller.appspotmail.com>
Fixes: 2638eb8b

 ("net: ipv4: provide __rcu annotation for ifa_list")
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ae95f9c1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment