]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: fix xdr decoding of large non-write compounds
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 19 Nov 2013 22:32:43 +0000 (17:32 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 19 Nov 2013 23:06:54 +0000 (18:06 -0500)
commit3b76fdada756ab6170535e8b564e5b977ba6075a
treef538139477c4104f66321c0446e57332fed6289c
parentce1d5c25f639c2951a2f10e16aa2ce3bd8e946d6
nfsd4: fix xdr decoding of large non-write compounds

This fixes a regression from 3e173635b2905ea60ceec6cac20a006732c84f22
"nfsd4: fix decoding of compounds across page boundaries".  The previous
code was correct: argp->pagelist is initialized in
nfs4svc_deocde_compoundargs to rqstp->rq_arg.pages, and is therefore a
pointer to the page *after* the page we are currently decoding.

The reason that patch nevertheless fixed a problem with decoding
compounds containing write was a bug in the write decoding introduced by
2c26a1f3009b904829c882882469371bb47995a2 "nfsd4: reorganize write
decoding", after which write decoding no longer adhered to the rule that
argp->pagelist point to the next page.

Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c