]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 11:14:14 +0000 (13:14 +0200)
commit89c2c6f70602de7ed7c3e2b316dc77bc51f1964e
tree8903881f6f373619604ce1667e260551772f7c3c
parente5b682d7792fef3545e86ea601423fe77a0413ee
SUNRPC: Dequeue the request from the receive queue while we're re-encoding

commit cc204d01262a69218b2d0db5cdea371de85871d9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/sunrpc/xprt.h
net/sunrpc/clnt.c
net/sunrpc/xprt.c