lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1459425558.6473.229.camel@edumazet-glaptop3.roam.corp.google.com>
Date:	Thu, 31 Mar 2016 04:59:18 -0700
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Daniel Borkmann <daniel@...earbox.net>
Cc:	Alexei Starovoitov <alexei.starovoitov@...il.com>,
	Michal Kubecek <mkubecek@...e.cz>, davem@...emloft.net,
	sasha.levin@...cle.com, jslaby@...e.cz, mst@...hat.com,
	netdev@...r.kernel.org
Subject: Re: [PATCH net] tun, bpf: fix suspicious RCU usage in
 tun_{attach,detach}_filter

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...


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ