SUNRPC: Dequeue the request from the receive queue while we're re-encoding
authorTrond Myklebust <trondmy@gmail.com>
Tue, 10 Sep 2019 17:01:35 +0000 (13:01 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 17 Sep 2019 19:14:11 +0000 (15:14 -0400)
commitcc204d01262a69218b2d0db5cdea371de85871d9
tree7f77b71e876ff7e2007c45be58e29a28f2633ccb
parent98ef77d1aaa7a2f4e1b2a721faa084222021fda7
SUNRPC: Dequeue the request from the receive queue while we're re-encoding

Ensure that we dequeue the request from the transport receive queue
while we're re-encoding to prevent issues like use-after-free when
we release the bvec.

Fixes: 7536908982047 ("SUNRPC: Ensure the bvecs are reset when we re-encode...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v4.20+
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/sunrpc/xprt.h
net/sunrpc/clnt.c
net/sunrpc/xprt.c