]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 Jun 2013 09:43:23 +0000 (11:43 +0200)
commitbe1a41d754084db22bb7599edd140dff61853ced
treefca1ce4b20ff8b8718cda2396a2cf03765496048
parentfc9e795a20735726400c834f3290806139f2c957
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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/nfsd/nfs4xdr.c