diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2022-06-07 16:47:52 -0400 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2022-06-08 12:39:37 -0400 |
commit | 6c254bf3b637dd4ef4f78eb78c7447419c0161d7 (patch) | |
tree | f213e843c444adac740d4506c31bc9824de17a6c /.gitignore | |
parent | f012e95b377c73c0283f009823c633104dedb337 (diff) |
SUNRPC: Fix the calculation of xdr->end in xdr_get_next_encode_buffer()
I found that NFSD's new NFSv3 READDIRPLUS XDR encoder was screwing up
right at the end of the page array. xdr_get_next_encode_buffer() does
not compute the value of xdr->end correctly:
* The check to see if we're on the final available page in xdr->buf
needs to account for the space consumed by @nbytes.
* The new xdr->end value needs to account for the portion of @nbytes
that is to be encoded into the previous buffer.
Fixes: 2825a7f90753 ("nfsd4: allow encoding across page boundaries")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: NeilBrown <neilb@suse.de>
Reviewed-by: J. Bruce Fields <bfields@fieldses.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions