freebsd-dev/lib/libmemstat
Eric van Gyzen a2e194654f memstat_kvm_uma: fix reading of uma_zone_domain structures
Coverity flagged the scaling by sizeof(uzd).  That is the type
of the pointer, so the scaling was already done by pointer arithmetic.
However, this was also passing a stack frame pointer to kvm_read,
so it was doubly wrong.

Move ZDOM_GET into the !_KERNEL section and use it in libmemstat.

Reported by:	Coverity
Reviewed by:	markj
MFC after:	2 weeks
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D26213
2020-08-28 19:50:40 +00:00
..
libmemstat.3
Makefile pkgbase: Create a FreeBSD-utilities package and make it the default one 2019-09-05 14:15:47 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
memstat_all.c
memstat_internal.h Add two new kernel options to control memory locality on NUMA hardware. 2019-08-06 21:50:34 +00:00
memstat_malloc.c libmemstat: adjust for per-cpu stats after r338899 2018-10-11 23:25:14 +00:00
memstat_uma.c memstat_kvm_uma: fix reading of uma_zone_domain structures 2020-08-28 19:50:40 +00:00
memstat.c Add two new kernel options to control memory locality on NUMA hardware. 2019-08-06 21:50:34 +00:00
memstat.h Add two new kernel options to control memory locality on NUMA hardware. 2019-08-06 21:50:34 +00:00