]> git.hungrycats.org Git - linux/commit
NFSD: Update nfsd_cache_append() to use xdr_stream
authorChuck Lever <chuck.lever@oracle.com>
Fri, 10 Nov 2023 16:28:39 +0000 (11:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:15:14 +0000 (17:15 +0000)
commit4ce011ebb6404a808ee92e83fd65ef4256d36f28
tree71b04a890a248efb70075218b71c7270361020be
parent90ceb1e85869ac4292674a03889e0ac9484d571b
NFSD: Update nfsd_cache_append() to use xdr_stream

commit 49cecd8628a9855cd993792a0377559ea32d5e7c upstream.

When inserting a DRC-cached response into the reply buffer, ensure
that the reply buffer's xdr_stream is updated properly. Otherwise
the server will send a garbage response.

Cc: stable@vger.kernel.org # v6.3+
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Tested-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfscache.c