diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-02-11 19:19:29 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-02-11 19:19:29 +0000 |
commit | f2e35917b92b0b836e80ed2b2e95664b7e8aaa0f (patch) | |
tree | 4ab4b5173d45acb311a0f6f5eb17e395c2da6a99 /lib/libc/stdio/refill.c | |
parent | c1cbeeaeb19973cbf315fbadd0c28b95dc18120f (diff) | |
download | FreeBSD-src-f2e35917b92b0b836e80ed2b2e95664b7e8aaa0f.zip FreeBSD-src-f2e35917b92b0b836e80ed2b2e95664b7e8aaa0f.tar.gz |
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
Diffstat (limited to 'lib/libc/stdio/refill.c')
0 files changed, 0 insertions, 0 deletions