]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfsd4: fix rd_dircount enforcement
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 20 Aug 2014 18:49:50 +0000 (14:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:41:00 +0000 (13:41 -0700)
commitde8a646c2422cda2e3536f953677cf4b6b92f09e
treecbcf658b86d7a80e6901bfdb551fe15c2662beeb
parent0203e57c5d70d116d39d5cac8d594a0425e92d51
nfsd4: fix rd_dircount enforcement

commit aee3776441461c14ba6d8ed9e2149933e65abb6e upstream.

Commit 3b299709091b "nfsd4: enforce rd_dircount" totally misunderstood
rd_dircount; it refers to total non-attribute bytes returned, not number
of directory entries returned.

Bring the code into agreement with RFC 3530 section 14.2.24.

Fixes: 3b299709091b "nfsd4: enforce rd_dircount"
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4xdr.c