Files
twx-linux/fs
Chuck Lever 87ac57ff97 nfsd: Limit end of page list when decoding NFSv4 WRITE
commit fc788f64f1 upstream.

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>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-30 10:19:25 +02:00
..
2017-05-14 13:32:54 +02:00
…
…
…
…
2017-07-27 15:06:09 -07:00
…
2017-08-06 19:19:42 -07:00
…
2017-07-15 11:57:46 +02:00
…
2017-06-14 13:16:24 +02:00
2017-06-14 13:16:24 +02:00
…
2017-08-06 19:19:42 -07:00
…
2016-11-10 16:36:34 +01:00
…
…
2017-06-14 13:16:24 +02:00
2015-11-13 20:34:33 -05:00
2015-11-23 21:11:08 -05:00
2016-10-07 15:23:47 +02:00
2017-06-14 13:16:24 +02:00
…
2015-11-16 23:54:45 -08:00
2017-08-06 19:19:42 -07:00
2017-06-14 13:16:24 +02:00
…
2017-07-15 11:57:44 +02:00
…
…
2015-11-16 23:54:45 -08:00
…
2016-08-10 11:49:27 +02:00
…
…
2017-06-14 13:16:24 +02:00
2017-08-06 19:19:42 -07:00
…
…
…
…
2017-06-14 13:16:24 +02:00
…