rpc: fix huge kmalloc's in gss-proxy
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 20 Aug 2013 22:13:27 +0000 (18:13 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Oct 2013 16:41:02 +0000 (09:41 -0700)
commit42c446598e47a18a48da6c8c2eab6ea73da881ee
tree6f4770f4971d38d558bd9a9e800f8594692c38a2
parent25aa4abcf089f849705d232f9028516f9f95c121
rpc: fix huge kmalloc's in gss-proxy

commit 9dfd87da1aeb0fd364167ad199f40fe96a6a87be upstream.

The reply to a gssproxy can include up to NGROUPS_MAX gid's, which will
take up more than a page.  We therefore need to allocate an array of
pages to hold the reply instead of trying to allocate a single huge
buffer.

Tested-by: Simo Sorce <simo@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/auth_gss/gss_rpc_upcall.c
net/sunrpc/auth_gss/gss_rpc_xdr.c
net/sunrpc/auth_gss/gss_rpc_xdr.h