summaryrefslogtreecommitdiffstats
path: root/fs/mpage.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2017-08-18 17:12:19 +0200
committerJ. Bruce Fields <bfields@redhat.com>2017-08-25 00:05:30 +0200
commitfc788f64f1f3eb31e87d4f53bcf1ab76590d5838 (patch)
treec376a2d770711851ea97fdc6bf62a867986c0a4b /fs/mpage.c
parentnfsd: Fix a memory scribble in the callback channel (diff)
downloadlinux-fc788f64f1f3eb31e87d4f53bcf1ab76590d5838.tar.xz
linux-fc788f64f1f3eb31e87d4f53bcf1ab76590d5838.zip
nfsd: Limit end of page list when decoding NFSv4 WRITE
When processing an NFSv4 WRITE operation, argp->end should never point past the end of the data in the final page of the page list. Otherwise, nfsd4_decode_compound can walk into uninitialized memory. More critical, nfsd4_decode_write is failing to increment argp->pagelen when it increments argp->pagelist. This can cause later xdr decoders to assume more data is available than really is, which can cause server crashes on malformed requests. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: stable@vger.kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/mpage.c')
0 files changed, 0 insertions, 0 deletions