procps/proc
Eric Dumazet 7933435584 ps: allow large list of groups
Current linux kernels output no more than 32 groups
in /proc/{pid}/status.

Plan is to increase this limit.

This patch allows ps to not core dump if the buffer used to read status
file was too small.

# ps aux
Signal 11 (SEGV) caught by ps (procps-ng version 3.3.3).
ps:display.c:59: please report this bug

Also increases the size of the buffer from 1024 to 4096, since even with
32 groups we are close to the limit.

cat /proc/12731/status | wc
     39     128     961

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
2012-10-24 21:43:37 +11:00
..
alloc.c docs: clarification to license headers in files 2012-03-03 18:41:11 +11:00
alloc.h
COPYING license: update FSF addresses 2012-03-04 08:04:24 +11:00
devname.c docs: clarification to license headers in files 2012-03-03 18:41:11 +11:00
devname.h Change restrict to __restrict in public includes 2012-01-09 21:44:51 +11:00
escape.c docs: clarification to license headers in files 2012-03-03 18:41:11 +11:00
escape.h Change restrict to __restrict in public includes 2012-01-09 21:44:51 +11:00
ksym.c docs: clarification to license headers in files 2012-03-03 18:41:11 +11:00
libprocps.pc.in
libprocps.sym libprocps: hide private symbols 2012-01-24 21:54:01 +01:00
Makefile.am Increase library revision number 2012-03-03 18:47:40 +11:00
procps.h Two new options for pmap, -X and -XX 2012-09-27 22:08:04 +10:00
pwcache.c docs: clarification to license headers in files 2012-03-03 18:41:11 +11:00
pwcache.h
readproc.c ps: allow large list of groups 2012-10-24 21:43:37 +11:00
readproc.h library: fix proc_t page fault delta counts alignment 2012-10-02 20:56:39 +10:00
sig.c docs: clarification to license headers in files 2012-03-03 18:41:11 +11:00
sig.h Change restrict to __restrict in public includes 2012-01-09 21:44:51 +11:00
slab.c docs: clarification to license headers in files 2012-03-03 18:41:11 +11:00
slab.h Increase slab name from 64 to 128 characters 2012-06-26 22:01:42 +10:00
sysinfo.c libprocps: protect locale environment getting overwrite 2012-04-25 09:34:41 +10:00
sysinfo.h Change restrict to __restrict in public includes 2012-01-09 21:44:51 +11:00
version.c Description: fix to build on non-Linux arches 2012-06-11 22:11:23 +10:00
version.h
wchan.h Change restrict to __restrict in public includes 2012-01-09 21:44:51 +11:00
whattime.c docs: clarification to license headers in files 2012-03-03 18:41:11 +11:00
whattime.h