f2e35917b9
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 |
||
---|---|---|
.. | ||
libmemstat.3 | ||
Makefile | ||
memstat_all.c | ||
memstat_internal.h | ||
memstat_malloc.c | ||
memstat_uma.c | ||
memstat.c | ||
memstat.h |