nfsd4: fix oops on unusual readlike compound
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 4 Dec 2012 23:25:10 +0000 (18:25 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 10 Feb 2014 21:11:01 +0000 (16:11 -0500)
commitdd17b5298be2e182556ef25ce9108343089e77e5
tree6a3fa2330f4bbb6f6793ec6d69b64a87692b3a35
parentcbdfb1a8b4d54cfe3ee17d0dba60f41ac87ce068
nfsd4: fix oops on unusual readlike compound

commit d5f50b0c290431c65377c4afa1c764e2c3fe5305 upstream.

If the argument and reply together exceed the maximum payload size, then
a reply with a read-like operation can overlow the rq_pages array.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/nfsd/nfs4xdr.c