Re: [PATCH net] tun, bpf: fix suspicious RCU usage in tun_{attach,detach}_filter
From: Eric Dumazet <hidden>
Date: 2016-03-31 11:59:22
From: Eric Dumazet <hidden>
Date: 2016-03-31 11:59:22
On Thu, 2016-03-31 at 13:35 +0200, Daniel Borkmann wrote:
+static inline bool sock_owned_externally(const struct sock *sk)
+{
+ return sk->sk_flags & (1UL << SOCK_EXTERNAL_OWNER);
+}
+Have you reinvented sock_flag(sl, SOCK_EXTERNAL_OWNER) ? ;) Anyway, using a flag for this purpose sounds overkill to me. Setting it is a way to 'fool' lockdep anyway...