SUNRPC: Fix a NULL pointer deref in trace_svc_stats_latency()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 5 Aug 2021 19:11:24 +0000 (15:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 08:02:24 +0000 (10:02 +0200)
commite1af5db1b481ef1b8d6a6cba55e1f96f9a98cb27
treeb81b5efbea8f651a397cdea9a444f0e16dc87678
parentaf938908015427893e77aefdc32cb0dde01efce9
SUNRPC: Fix a NULL pointer deref in trace_svc_stats_latency()

[ Upstream commit 5c11720767f70d34357d00a15ba5a0ad052c40fe ]

Some paths through svc_process() leave rqst->rq_procinfo set to
NULL, which triggers a crash if tracing happens to be enabled.

Fixes: 89ff87494c6e ("SUNRPC: Display RPC procedure names instead of proc numbers")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/sunrpc/svc.h
include/trace/events/sunrpc.h
net/sunrpc/svc.c