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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250515203813.86670-1-kuniyu@amazon.com>
Date: Thu, 15 May 2025 13:38:09 -0700
From: Kuniyuki Iwashima <kuniyu@...zon.com>
To: <willemdebruijn.kernel@...il.com>
CC: <brauner@...nel.org>, <davem@...emloft.net>, <edumazet@...gle.com>,
	<horms@...nel.org>, <kuba@...nel.org>, <kuni1840@...il.com>,
	<kuniyu@...zon.com>, <netdev@...r.kernel.org>, <pabeni@...hat.com>,
	<willemb@...gle.com>
Subject: Re: [PATCH v3 net-next 8/9] af_unix: Introduce SO_PASSRIGHTS.

From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
Date: Thu, 15 May 2025 15:25:57 -0400
> > @@ -1879,6 +1886,13 @@ int sk_getsockopt(struct sock *sk, int level, int optname,
> >  		v.val = sk->sk_scm_pidfd;
> >  		break;
> >  
> > +	case SO_PASSRIGHTS:
> > +		if (!sk_is_unix(sk))
> > +			return -EOPNOTSUPP;
> > +
> > +		v.val = sk->sk_scm_rights;
> 
> Same question about lockless reading of the field.

Same applied here and in other places, but all readers in sendmsg()
is under lock_sock().

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ