SUNRPC: Fix sockaddr handling in svcsock_accept_class trace points
authorChuck Lever <chuck.lever@oracle.com>
Sat, 8 Jan 2022 21:59:54 +0000 (16:59 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2022 18:12:37 +0000 (19:12 +0100)
commite209742c13d2c72abaea0ce49d88947209937709
tree85d556959eb4f83c1f1ff77073c28f20c5cfa35f
parentbdaa8c7b718998f43c3473181a25a7243770a745
SUNRPC: Fix sockaddr handling in svcsock_accept_class trace points

[ Upstream commit 16720861675393a35974532b3c837d9fd7bfe08c ]

Avoid potentially hazardous memory copying and the needless use of
"%pIS" -- in the kernel, an RPC service listener is always bound to
ANYADDR. Having the network namespace is helpful when recording
errors, though.

Fixes: a0469f46faab ("SUNRPC: Replace dprintk call sites in TCP state change callouts")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/trace/events/sunrpc.h