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
Makefile.depend
memstat_all.c
memstat_internal.h
memstat_malloc.c
memstat_uma.c memstat_kvm_uma: fix reading of uma_zone_domain structures 2020-08-28 19:50:40 +00:00
memstat.c
memstat.h