From: Dan Carpenter Date: Tue, 24 Feb 2015 15:34:01 +0000 (+0300) Subject: sunrpc: integer underflow in rsc_parse() X-Git-Tag: omap-for-v4.1/wl12xx-dt~67^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76cb4be993c03bf9ec65a58b13f12c679bb041e4;p=pandora-kernel.git sunrpc: integer underflow in rsc_parse() If we call groups_alloc() with invalid values then it's might lead to memory corruption. For example, with a negative value then we might not allocate enough for sizeof(struct group_info). (We're doing this in the caller for consistency with other callers of groups_alloc(). The other alternative might be to move the check out of all the callers into groups_alloc().) Signed-off-by: Dan Carpenter Reviewed-by: Simo Sorce Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed