]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: don't ignore high bits of copy count
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 19 Mar 2021 00:03:22 +0000 (20:03 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 22 Mar 2021 14:19:04 +0000 (10:19 -0400)
commitf86b480cf21edcade3a9297db7755b3eca5b389f
tree405d81b441122ed85459846765355cee5024c489
parent8b7457eeab0aecb05eea83fa3e299b904bef0d0d
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>
fs/nfsd/nfs4proc.c