Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Oct 2002 10:17:57 -0700 (PDT)
From:      Nate Lawson <nate@root.org>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        John Baldwin <jhb@FreeBSD.org>, current@FreeBSD.org
Subject:   Re: libgtop port and v_tag changes
Message-ID:  <Pine.BSF.4.21.0210251013450.72624-100000@root.org>
In-Reply-To: <20021025123724.X78655-101000@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 25 Oct 2002, Joe Marcus Clarke wrote:
> On Fri, 25 Oct 2002, John Baldwin wrote:
> > It does?!  v_tag is a pointer to kernel memory, you can't read that
> > from userland!  You would get a SIGSEGV and die as soon as you do the
> > 'strcmp()'.  That's why I #ifdef'd the whole chunk out.  Also, just for
> > the record, my code didn't break the non CURRENT case. :)

Sorry, mispoke.  Your code didn't fix the CURRENT case.  :)
 
> Gak!  If Julian didn't pound kvm_read into my head before, I've got it
> now.  Sure, it compiles, buth then what :-}.  Thanks for the pointer.
> Attached is a patch to libgtop2, but should be similar if not identical to
> what's needed for libgtop.  Let me know if this looks a little better.
> Thanks.
> 
> Joe

For another working and tested example, see rev 1.45 of fstat.c
(usr.bin/fstat).

-Nate


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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