]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 10 Jan 2022 15:57:34 +0000 (10:57 -0500)
commit17110e6a9838ef811ad9c5e51daa6aa469f18920
tree6d7f1d9d757c0b7de948b6dad4e64c4dd4064bc7
parent4ceabeb83e57ff925a111ce361213f921de68f3d
SUNRPC: Fix sockaddr handling in svcsock_accept_class trace points

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: 88d89fbd4ee5 ("SUNRPC: Replace dprintk call sites in TCP state change callouts")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/trace/events/sunrpc.h