Commit [1c24de]  Maximize  Restore  History

kernel/groups.c: fix integer overflow in groups_search

gid_t is a unsigned int. If group_info contains a gid greater than
MAX_INT, groups_search() function may look on the wrong side of the search

This solves some unfair "permission denied" problems.

Signed-off-by: Jerome Marchand <>
Cc: <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>

Jerome Marchand Jerome Marchand 2010-09-09

Linus Torvalds Linus Torvalds 2010-09-10

changed kernel/groups.c
kernel/groups.c Diff Switch to side-by-side view

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks