]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
SUNRPC: Ensure the bvecs are reset when we re-encode the RPC request
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 18 Jul 2019 01:22:38 +0000 (21:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2019 07:12:58 +0000 (09:12 +0200)
commitfa1a44867c399ea96b5ab74e2a9ea3f7336011a2
treeb77b276f83db9d88b33fae43c163e00455da8739
parent95934ea7b4afe59501f6b7243e133ecf2d806f43
SUNRPC: Ensure the bvecs are reset when we re-encode the RPC request

commit 75369089820473eac45e9ddd970081901a373c08 upstream.

The bvec tracks the list of pages, so if the number of pages changes
due to a re-encode, we need to reset the bvec as well.

Fixes: 277e4ab7d530 ("SUNRPC: Simplify TCP receive code by switching...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v4.20+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/clnt.c
net/sunrpc/xprt.c
net/sunrpc/xprtsock.c