]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd4: fix oops on unusual readlike compound
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 4 Dec 2012 23:25:10 +0000 (18:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 17:06:55 +0000 (09:06 -0800)
commit4cbb3d03810a50cb5d9eab0a6cfe3152a65911f2
tree7dfbc5a2a91e1940a5a30302d654755ea46bf3cb
parent12c93e196764a2092f35b30a1e924a5071f164ee
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4xdr.c