NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/51325: "netstat -ia" causes infinite loop



On Thu, Jul 14, 2016 at 3:00 PM, Christos Zoulas <christos%zoulas.com@localhost> wrote:
> On Jul 14, 11:06am, ozaki-r%netbsd.org@localhost (Ryota Ozaki) wrote:
> -- Subject: Re: kern/51325: "netstat -ia" causes infinite loop
>
> | On Wed, Jul 13, 2016 at 6:00 PM, matthew green <mrg%eterna.com.au@localhost> wrote:
> | > the right way to fix this would be to convert that part
> | > of netstat to use sysctl on live kernels.
> |
> | christos@ has done it? :)
>
> It is close. I will try to finish it in the next few days. I need to handle
> the multicast stuff.

Thanks!

>
> | >  then you can
> | > change the in-kernel version more sanely without breaking
> | > apps.  sure, a deaad kernel netstat user will have to
> | > match kernel/user versions but that's always the case.
> |
> | If it's allowed, I want to do so because in this case we
> | need to do some tricky workaround to make ifaddr lists
> | workable for psz/psref maybe introducing some overhead.
> |
>
> Yes, it should be allowed. The policy should be that runtime support
> via sysctl retains compatiibility across kernel bumps, but kmem grovelling
> needs a matching kernel and userland binary so that we don't need to jump
> through hoops to change kernel data structures.

Good to hear! That really helps me :)

  ozaki-r


Home | Main Index | Thread Index | Old Index