freebsd-skq/lib/libmemstat
rwatson f2e35917b9 The uma_zone data structure defines the size of its uz_cpu[] array as 1,
but then sizes the containing data structure at run-time to make room
for per-cpu cache data.  Modify libmemstat to separately allocate a
buffer to hold per-cpu cache data, sized based on the run-time mp_maxid
variable when using libkvm to access UMA data.  This avoids reading
invalid cache data from beyond the end of the uma_zone data structure
on the stack, which can result in invalid statistics and/or reads from
invalid kernel addresses.

Foot target practice by:	ps
MFC after:			3 days
2006-02-11 19:19:29 +00:00
..
libmemstat.3 Tidy up markup and fix two bugs. 2005-11-21 17:18:34 +00:00
Makefile Add symlinks for kvm access methods for memstat(3). 2005-11-13 13:42:03 +00:00
memstat_all.c Teach libmemstat(3) how to extract malloc(9) statistics using kvm(3), 2005-08-06 13:54:03 +00:00
memstat_internal.h Correct two libmemstat(3) bugs: 2005-08-01 13:18:21 +00:00
memstat_malloc.c Teach libmemstat(3) how to extract malloc(9) statistics using kvm(3), 2005-08-06 13:54:03 +00:00
memstat_uma.c The uma_zone data structure defines the size of its uz_cpu[] array as 1, 2006-02-11 19:19:29 +00:00
memstat.c Add memstat_kvm_uma(), an implementation of a libmemstat(3) query routine 2005-08-01 19:07:39 +00:00
memstat.h Teach libmemstat(3) how to extract malloc(9) statistics using kvm(3), 2005-08-06 13:54:03 +00:00