Re: fstat triggered INVARIANTS panic in memrw()

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Fri, 28 Jan 2005 13:59:15 +0100
In message <200501280254.j0S2sMJH050277_at_blue.mwk.domain>, "Mark W. Krentel" writes:
>I've looked a little deeper into Kris's fstat panic.
>Turns out there are bugs in three places.
>
>(1) fstat(1) sometimes calls kvm_read() with a ridiculously out-of-
>bounds value for nbytes.

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

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

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Fri Jan 28 2005 - 11:59:23 UTC

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