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)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 6 Sep 2013 15:45:58 +0000 (11:45 -0400)
commit9dfd87da1aeb0fd364167ad199f40fe96a6a87be
treeadf9d2edff56be3fa54e330b55b3c76fe51c25cf
parent6a36978e6931e6601be586eb313375335f2cfaa3
rpc: fix huge kmalloc's in gss-proxy

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>
net/sunrpc/auth_gss/gss_rpc_upcall.c
net/sunrpc/auth_gss/gss_rpc_xdr.c
net/sunrpc/auth_gss/gss_rpc_xdr.h