]> git.ipfire.org Git - people/ms/linux.git/blobdiff - net/sunrpc/svcauth_unix.c
Importing "grsecurity-3.1-3.19.2-201503201903.patch"
[people/ms/linux.git] / net / sunrpc / svcauth_unix.c
index 621ca7b4a1552e393f332fda279be25d7f082152..59421dd30d138aff6439d3e1f075492d60846784 100644 (file)
@@ -414,7 +414,7 @@ struct unix_gid {
        struct group_info       *gi;
 };
 
-static int unix_gid_hash(kuid_t uid)
+static int __intentional_overflow(-1) unix_gid_hash(kuid_t uid)
 {
        return hash_long(from_kuid(&init_user_ns, uid), GID_HASHBITS);
 }
@@ -470,7 +470,7 @@ static void unix_gid_request(struct cache_detail *cd,
        (*bpp)[-1] = '\n';
 }
 
-static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid);
+static struct unix_gid * __intentional_overflow(-1) unix_gid_lookup(struct cache_detail *cd, kuid_t uid);
 
 static int unix_gid_parse(struct cache_detail *cd,
                        char *mesg, int mlen)