summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/rpc_thread.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-27 08:58:04 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-27 08:58:04 +0000
commite66dfe1d633d43d946c798627173a67282c948e5 (patch)
tree8ed4bb6764e049f2275a960d5ec312c8443712e2 /libc/inet/rpc/rpc_thread.c
parent66376169bf21dc26f447a8f64bd6f8c8cd27c139 (diff)
Aubrey writes:
When I mounted nfs on my target, the kernel crashed. And I found it was caused by stack overflow. When I digged into it. And I found not only "setgroups.c" but "getgroups.c" have the matrix (__kernel_gid_t kernel_groups[n]) on the stack which can be very large because "n" can be assigned to NGROUPS_MAX. And, NGROUPS_MAX is defined in the file "./linux-2.6.x/include/linux/limits.h" #define NGROUPS_MAX 65536 /* supplemental group IDs are available */ I also changed it to do malloc.
Diffstat (limited to 'libc/inet/rpc/rpc_thread.c')
0 files changed, 0 insertions, 0 deletions