]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: fix decoding of compounds across page boundaries
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 21 Jun 2013 15:48:11 +0000 (11:48 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 1 Jul 2013 21:29:40 +0000 (17:29 -0400)
commit3e173635b2905ea60ceec6cac20a006732c84f22
tree839a6e89d7590ec064ce230b4c211e107020a99f
parente40db43a3a4548ebf2d876d8f8958479738396aa
nfsd4: fix decoding of compounds across page boundaries

A freebsd NFSv4.0 client was getting rare IO errors expanding a tarball.
A network trace showed the server returning BAD_XDR on the final getattr
of a getattr+write+getattr compound.  The final getattr started on a
page boundary.

I believe the Linux client ignores errors on the post-write getattr, and
that that's why we haven't seen this before.

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