Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2005 13:59:15 +0100
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        "Mark W. Krentel" <krentel@dreamscape.com>
Cc:        Kris Kennaway <kris@obsecurity.org>
Subject:   Re: fstat triggered INVARIANTS panic in memrw() 
Message-ID:  <38517.1106917155@critter.freebsd.dk>
In-Reply-To: Your message of "Thu, 27 Jan 2005 21:54:22 EST." <200501280254.j0S2sMJH050277@blue.mwk.domain> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200501280254.j0S2sMJH050277@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38517.1106917155>