SUNRPC: Fix potential memory corruption
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 26 Jul 2021 11:59:23 +0000 (07:59 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 9 Aug 2021 20:57:05 +0000 (16:57 -0400)
commitc2dc3e5fad13aca5d7bdf4bcb52b1a1d707c8555
tree0214b666208312d909e50a52de6aa5d11eb82ea1
parentd6236a98b3bab07c0a1455fd1ab46f79c3978cdc
SUNRPC: Fix potential memory corruption

We really should not call rpc_wake_up_queued_task_set_status() with
xprt->snd_task as an argument unless we are certain that is actually an
rpc_task.

Fixes: 0445f92c5d53 ("SUNRPC: Fix disconnection races")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/sunrpc/xprt.h
net/sunrpc/xprt.c