diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-03-03 15:52:50 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-03-03 15:52:50 -0800 |
| commit | a6c5170d1edea97c538c81e377e56c7b5c5b7e63 (patch) | |
| tree | ce04e89597a9266fdf6575424eeb7a85a568c81b /net/sunrpc/auth_gss/svcauth_gss.c | |
| parent | 789d7f60cdfdbef510025a2b988bba44cfcc96fe (diff) | |
| parent | 76cb4be993c03bf9ec65a58b13f12c679bb041e4 (diff) | |
| download | blackbird-op-linux-a6c5170d1edea97c538c81e377e56c7b5c5b7e63.tar.gz blackbird-op-linux-a6c5170d1edea97c538c81e377e56c7b5c5b7e63.zip | |
Merge branch 'for-4.0' of git://linux-nfs.org/~bfields/linux
Pull nfsd fixes from Bruce Fields:
"Three miscellaneous bugfixes, most importantly the clp->cl_revoked
bug, which we've seen several reports of people hitting"
* 'for-4.0' of git://linux-nfs.org/~bfields/linux:
sunrpc: integer underflow in rsc_parse()
nfsd: fix clp->cl_revoked list deletion causing softlock in nfsd
svcrpc: fix memory leak in gssp_accept_sec_context_upcall
Diffstat (limited to 'net/sunrpc/auth_gss/svcauth_gss.c')
| -rw-r--r-- | net/sunrpc/auth_gss/svcauth_gss.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c index 224a82f24d3c..1095be9c80ab 100644 --- a/net/sunrpc/auth_gss/svcauth_gss.c +++ b/net/sunrpc/auth_gss/svcauth_gss.c @@ -463,6 +463,8 @@ static int rsc_parse(struct cache_detail *cd, /* number of additional gid's */ if (get_int(&mesg, &N)) goto out; + if (N < 0 || N > NGROUPS_MAX) + goto out; status = -ENOMEM; rsci.cred.cr_group_info = groups_alloc(N); if (rsci.cred.cr_group_info == NULL) |

