Re: fstat triggered INVARIANTS panic in memrw()

From: Mark W. Krentel <krentel_at_dreamscape.com>
Date: Fri, 28 Jan 2005 14:14:29 -0500
>>>>> "PHK" == Poul-Henning Kamp <phk_at_phk.freebsd.dk> writes:

PHK> The only real problem here is that fstat(1) uses kvm in the first place.
PHK> The necessary information should be exported via sysctls.

PHK> No program used as part of regular system operation should use kvm.

Ok.  That still leaves btsockstat, netstat and trpt (and fstat) as
setgid kmem programs.  Are there plans to rewrite them?

Until then, I think it's not a bad idea to put a bandaid on fstat(1),
even if it's temporary.

Also, there's still the bug that kvm_read(3), and kmem(4) don't check
their arguments for values that lead to address wrap.

--Mark
Received on Fri Jan 28 2005 - 18:11:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:27 UTC