Files
android_kernel_xiaomi_sm8450/net/sunrpc
Dan Carpenter 76cb4be993 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 <dan.carpenter@oracle.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2015-02-26 15:40:16 -05:00
..
2014-07-12 18:45:49 -04:00
2014-11-24 17:31:46 -05:00
2014-11-24 17:31:46 -05:00
2014-11-24 17:31:46 -05:00
2014-11-24 17:31:46 -05:00
2014-11-24 17:31:46 -05:00
2012-11-04 14:43:41 -05:00
2014-11-24 17:31:46 -05:00
2014-11-24 17:33:12 -05:00
2014-06-11 15:46:13 -07:00
2014-11-25 16:22:15 -05:00
2015-01-23 10:29:12 -05:00
2014-11-24 17:31:46 -05:00
2012-04-15 12:44:40 -04:00
2014-11-24 17:31:46 -05:00