On Fri, Jan 28, 2005 at 01:59:15PM +0100, Poul-Henning Kamp wrote: +> 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. I've work mostly done in pjd_fuser branch. I modified existing (but not used by anything right now) sysctl kern.file to be able to export everything what things like fstat(1) needs. The main reason for doing this was to create posix-compilant fuser(1) utility (which exist in Solaris and Linux). -- Pawel Jakub Dawidek http://www.wheel.pl pjd_at_FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am!
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:27 UTC