LOCK_PROFILING variant struct sizes (Re: netstat wierdness?)

Kris Kennaway kris at obsecurity.org
Tue Mar 13 21:48:24 UTC 2007


On Tue, Mar 13, 2007 at 01:16:34PM -0700, Julian Elischer wrote:
> Dag-Erling Sm?rgrav wrote:
> >Julian Elischer <julian at elischer.org> writes:
> >>answering myself..
> >>comes from having options LOCK_PROFILING in my kernel.
> >>adding the same to /etc/make.conf and recompiling netstat and libkvm 
> >>helped.
> >>(not sure if both are needed)
> >
> >This is very bad.  LOCK_PROFILING should have no visible effect on
> >userland.  That is precisely what xinpcb, xunpcb, xtcpcb etc. are for:
> >to isolate userland from kernel structures.  They should not contain
> >any locks or anything else which would be affected by LOCK_PROFILING
> >or other kernel options.
> >
> >DES
> 
> sockstat actually told me that all those were the wrong size, so apparently
> they change size too.(!?)
> 
> I haven't gone to look at their definition yet, but as you say, it sounds 
> like
> something was done wrong.

Kip made some changes to this recently, perhaps he can comment.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070313/3c73e751/attachment.pgp


More information about the freebsd-current mailing list