aboutsummaryrefslogtreecommitdiff
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorGravatar J. Bruce Fields <bfields@redhat.com> 2021-03-18 20:03:22 -0400
committerGravatar Chuck Lever <chuck.lever@oracle.com> 2021-03-22 10:19:04 -0400
commite7a833e9cc6c3b58fe94f049d2b40943cba07086 (patch)
tree405d81b441122ed85459846765355cee5024c489 /fs/nfsd/state.h
parentnfsd: COPY with length 0 should copy to end of file (diff)
downloadlinux-e7a833e9cc6c3b58fe94f049d2b40943cba07086.tar.gz
linux-e7a833e9cc6c3b58fe94f049d2b40943cba07086.tar.bz2
linux-e7a833e9cc6c3b58fe94f049d2b40943cba07086.zip
nfsd: don't ignore high bits of copy count
Note size_t is 32-bit on a 32-bit architecture, but cp_count is defined by the protocol to be 64 bit, so we could be turning a large copy into a 0-length copy here. Reported-by: <radchenkoy@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/state.h')
0 files changed, 0 insertions, 0 deletions