Re: [PATCH net] tun, bpf: fix suspicious RCU usage in tun_{attach,detach}_filter
From: David Miller <davem@davemloft.net>
Date: 2016-03-31 19:50:34
From: David Miller <davem@davemloft.net>
Date: 2016-03-31 19:50:34
From: Hannes Frederic Sowa <redacted> Date: Thu, 31 Mar 2016 21:48:27 +0200
Tightest solution would probably be to combine both patches. bool called_by_tuntap; old_fp = rcu_dereference_protected(sk->sk_filter, called_by_tuntap ? lockdep_rtnl_is_held() : lockdep_sock_is_held());
Ok, I see what you're saying. I misunderstood how the RTNL lockdep checks work and thought we could get false positives from other entities taking RTNL. Can you cook up the combined patch? Thanks.