]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
SUNRPC: Fix general protection fault in trace_rpc_xdr_overflow()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 23 Oct 2020 14:41:07 +0000 (10:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:20:26 +0000 (19:20 +0100)
commitdfcb33773877f31a40ba0583e622935ef105c90b
tree6f81995a7e2ceb38f6218b365548fcd6d02485e2
parentb9e8f9d139bd7ea83e2e896ea08ae757cad5e7a8
SUNRPC: Fix general protection fault in trace_rpc_xdr_overflow()

[ Upstream commit d321ff589c16d8c2207485a6d7fbdb14e873d46e ]

The TP_fast_assign() section is careful enough not to dereference
xdr->rqst if it's NULL. The TP_STRUCT__entry section is not.

Fixes: 5582863f450c ("SUNRPC: Add XDR overflow trace event")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/trace/events/sunrpc.h