rxrpc: Allow list of in-use local UDP endpoints to be viewed in /proc
authorDavid Howells <dhowells@redhat.com>
Sat, 21 May 2022 07:45:15 +0000 (08:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Dec 2022 16:39:59 +0000 (17:39 +0100)
commitbddde342c62ee741a5417df6da93c0701b020e86
tree300a48848c03d85302f51ccd7a483cff3dce8c11
parenta2d5dba2fc694957d564944bb74671c68a2c4d24
rxrpc: Allow list of in-use local UDP endpoints to be viewed in /proc

[ Upstream commit 33912c2639ad76660988c8ca97e4d18fca89b668 ]

Allow the list of in-use local UDP endpoints in the current network
namespace to be viewed in /proc.

To aid with this, the endpoint list is converted to an hlist and RCU-safe
manipulation is used so that the list can be read with only the RCU
read lock held.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 3bcd6c7eaa53 ("rxrpc: Fix race between conn bundle lookup and bundle removal [ZDI-CAN-15975]")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/rxrpc/ar-internal.h
net/rxrpc/local_object.c
net/rxrpc/net_ns.c
net/rxrpc/proc.c