]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 10 Dec 2020 11:06:28 +0000 (12:06 +0100)
commitf4020871dafbb207ffc77df80b058a028e6012e8
tree97df9013502bda7959852f09970ff25daa147915
parent52c3a0d13cac509e10e33d0ee40c03bd3e3589c3
SUNRPC: Fix general protection fault in trace_rpc_xdr_overflow()

BugLink: https://bugs.launchpad.net/bugs/1905618
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
include/trace/events/sunrpc.h