Solaris: setpag should verify that ngroups will not overflow
authorMark Vitale <mvitale@sinenomine.net>
Wed, 8 Jul 2015 18:28:50 +0000 (14:28 -0400)
committerDaria Brashear <shadow@your-file-system.com>
Wed, 29 Jul 2015 22:25:24 +0000 (18:25 -0400)
commit8ce4a3905268385d3f5a0e11f20594875467cae6
treedd6375146438f0304a355301326744f7a8cfad42
parentef671f497e9161ec2759446d594789495d3346f1
Solaris: setpag should verify that ngroups will not overflow

Our ngroups management (since PAGs are still encoded as 2 groups) needs
to ensure that we do not overflow what we are prepared to handle,
and do not panic due to misheld mutexes if we have to return an error
when handling it.

FIXES 131878 (CVE-2015-3286)

Change-Id: I044d5e7d3161de815b3c2dace9c211fbb4b51ffa
src/afs/SOLARIS/osi_groups.c