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: <20231017085016.GJ1751252@kernel.org>
Date: Tue, 17 Oct 2023 10:50:16 +0200
From: Simon Horman <horms@...nel.org>
To: Jiri Pirko <jiri@...nulli.us>
Cc: netdev@...r.kernel.org, kuba@...nel.org, pabeni@...hat.com,
	davem@...emloft.net, edumazet@...gle.com
Subject: Re: [patch net-next v3 2/7] devlink: call peernet2id_alloc() with
 net pointer under RCU read lock

On Fri, Oct 13, 2023 at 02:10:24PM +0200, Jiri Pirko wrote:
> From: Jiri Pirko <jiri@...dia.com>
> 
> peernet2id_alloc() allows to be called lockless with peer net pointer
> obtained in RCU critical section and makes sure to return ns ID if net
> namespaces is not being removed concurrently. Benefit from
> read_pnet_rcu() helper addition, use it to obtain net pointer under RCU
> read lock and pass it to peernet2id_alloc() to get ns ID.
> 
> Fixes: c137743bce02 ("devlink: introduce object and nested devlink relationship infra")
> Signed-off-by: Jiri Pirko <jiri@...dia.com>

Reviewed-by: Simon Horman <horms@...nel.org>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ