aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2021-07-26 07:59:23 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2021-08-09 16:57:05 -0400
commitc2dc3e5fad13aca5d7bdf4bcb52b1a1d707c8555 (patch)
tree0214b666208312d909e50a52de6aa5d11eb82ea1 /include
parentNFSv4/pnfs: The layout barrier indicate a minimal value for the seqid (diff)
downloadlinux-dev-c2dc3e5fad13aca5d7bdf4bcb52b1a1d707c8555.tar.xz
linux-dev-c2dc3e5fad13aca5d7bdf4bcb52b1a1d707c8555.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sunrpc/xprt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h
index c8c39f22d3b1..59cd97da895b 100644
--- a/include/linux/sunrpc/xprt.h
+++ b/include/linux/sunrpc/xprt.h
@@ -432,6 +432,7 @@ void xprt_release_write(struct rpc_xprt *, struct rpc_task *);
#define XPRT_CONGESTED (9)
#define XPRT_CWND_WAIT (10)
#define XPRT_WRITE_SPACE (11)
+#define XPRT_SND_IS_COOKIE (12)
static inline void xprt_set_connected(struct rpc_xprt *xprt)
{