Re: 5.99.30 sparc panic during startup

2010-06-25 Thread Izumi Tsutsui
> > Should I do commit this patch? > > yes please! Committed. Thanks, --- Izumi Tsutsui

re: 5.99.30 sparc panic during startup

2010-06-25 Thread matthew green
> At 1:03 Uhr +0900 26.6.2010, Izumi Tsutsui wrote: > >> The patch fixes the panic on my ss20 - an UP kernel makes it to multi-user, > >> and I can log in, and access the machine from the network. There's pppoe, > >> netatalk and samba breakage, but that may be due to version skew with the > >> ne

re: 5.99.30 sparc panic during startup

2010-06-25 Thread matthew green
> > >> the macppc and news68k zshard()'s get the actual zsc_softc * as > > >> the (void *arg), but sparc does not. > > > > > >So we should make sparc zs do so. > > > > > >It looks multiple interrupt handlers against the same interrupt level > > >are properly queued and handled in sparc/intr.c:ih_i

Re: 5.99.30 sparc panic during startup

2010-06-25 Thread Hauke Fath
At 1:03 Uhr +0900 26.6.2010, Izumi Tsutsui wrote: >> The patch fixes the panic on my ss20 - an UP kernel makes it to multi-user, >> and I can log in, and access the machine from the network. There's pppoe, >> netatalk and samba breakage, but that may be due to version skew with the >> netbsd-4 user

Re: 5.99.30 sparc panic during startup

2010-06-25 Thread David Young
On Sat, Jun 26, 2010 at 01:03:17AM +0900, Izumi Tsutsui wrote: > > > the ss10/ss20 are the ones to test. > > Attached are dmesg.boot from my SS20. One with serial console, the > > other with local framebuffer console / wscons. I net-booted the machine > > to single user mode only. > > Should I do

Re: 5.99.30 sparc panic during startup

2010-06-25 Thread Izumi Tsutsui
> >> the macppc and news68k zshard()'s get the actual zsc_softc * as > >> the (void *arg), but sparc does not. > > > >So we should make sparc zs do so. > > > >It looks multiple interrupt handlers against the same interrupt level > >are properly queued and handled in sparc/intr.c:ih_insert(), so > >

Re: config_mountroot(8) for firmload(9) (Re: [RFC] aftermountroothook)

2010-06-25 Thread Izumi Tsutsui
I've committed this one. (well it's config_mountroot(9), not 8) I wrote: > > > > some network devices require firmware to read MAC address. if such > > > > devices are attached before root directory is mounted, they are not > > > > attached as ordinary network interface. > > > : > > > > to resol

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Thor Simon
On Fri, Jun 25, 2010 at 10:06:41AM -0400, Greg Troxel wrote: > > >> Have you looked at posix to see if it speaks to this? I don't think it > >> gets specific enough to say. I can't actually find any discussion of this (dumb) behavior anywhere but in the bind(2) manual page. However, it looks li

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Joerg Sonnenberger
On Fri, Jun 25, 2010 at 09:02:34AM -0400, Matthew Mondor wrote: > On Fri, 25 Jun 2010 14:51:45 +0200 > Joerg Sonnenberger wrote: > > > On Thu, Jun 24, 2010 at 10:55:51PM -0400, Thor Simon wrote: > > > Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL > > > sockets from the files

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Joerg Sonnenberger
On Fri, Jun 25, 2010 at 09:32:40AM -0400, Thor Lancelot Simon wrote: > On Fri, Jun 25, 2010 at 02:51:45PM +0200, Joerg Sonnenberger wrote: > > On Thu, Jun 24, 2010 at 10:55:51PM -0400, Thor Simon wrote: > > > Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL > > > sockets from the

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Greg Troxel
Thor Simon writes: > On Fri, Jun 25, 2010 at 08:47:49AM -0400, Greg Troxel wrote: >> >> Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL >> sockets from the filesystem on last close? The following test program >> produces "second socket bind failed" on every system I'v

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Matthew Mondor
On Fri, 25 Jun 2010 08:59:18 -0400 Matthew Mondor wrote: > However, I wrote a small test program and realized that despite > SO_REUSEADDR this doesn't work, and indeed after checking the kernel > code SO_REUSEADDR is ignored in the AF_LOCAL unp_bind() code. Out of curiosity, I modified the test

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Matthew Mondor
On Fri, 25 Jun 2010 09:19:03 -0400 Thor Simon wrote: > I think this is (always has been) a considerable blind spot on the part > of BSD partisans. Sure, we're happy to gripe about persistent SysV IPC > objects every time we have to remember how to use ipcrm, but bound AF_UNIX > sockets have the

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Thor Lancelot Simon
On Fri, Jun 25, 2010 at 02:51:45PM +0200, Joerg Sonnenberger wrote: > On Thu, Jun 24, 2010 at 10:55:51PM -0400, Thor Simon wrote: > > Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL > > sockets from the filesystem on last close? > > If you want to do that, wouldn't it be easier

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Thor Lancelot Simon
On Fri, Jun 25, 2010 at 08:59:18AM -0400, Matthew Mondor wrote: > On Thu, 24 Jun 2010 22:55:51 -0400 > Thor Simon wrote: > > > Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL > > sockets from the filesystem on last close? The following test program > > produces "second socket

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Thor Lancelot Simon
On Fri, Jun 25, 2010 at 06:54:16PM +0700, Robert Elz wrote: > > ps: my question of whether the application can do it is obviously > intended to be rhetorical... Except it's not. The application really _can't_ -- without poking in the kernel, you can't even tell if it's safe to clean them up beca

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Thor Simon
On Fri, Jun 25, 2010 at 08:47:49AM -0400, Greg Troxel wrote: > > Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL > sockets from the filesystem on last close? The following test program > produces "second socket bind failed" on every system I've tested it on, > and seem

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Matthew Mondor
On Fri, 25 Jun 2010 14:51:45 +0200 Joerg Sonnenberger wrote: > On Thu, Jun 24, 2010 at 10:55:51PM -0400, Thor Simon wrote: > > Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL > > sockets from the filesystem on last close? > > If you want to do that, wouldn't it be easier to j

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Matthew Mondor
On Thu, 24 Jun 2010 22:55:51 -0400 Thor Simon wrote: > Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL > sockets from the filesystem on last close? The following test program > produces "second socket bind failed" on every system I've tested it on, > and seems to cover the on

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Joerg Sonnenberger
On Thu, Jun 24, 2010 at 10:55:51PM -0400, Thor Simon wrote: > Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL > sockets from the filesystem on last close? If you want to do that, wouldn't it be easier to just go the Linux route and move them into a separate (virtual) namespace

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Greg Troxel
Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL sockets from the filesystem on last close? The following test program produces "second socket bind failed" on every system I've tested it on, and seems to cover the only possible use case for this "feature"... Have you l

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Robert Elz
Date:Thu, 24 Jun 2010 22:55:51 -0400 From:Thor Simon Message-ID: <20100625025551.ga6...@coyotepoint.com> | Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL | sockets from the filesystem on last close? I suspect the original reasoning was along

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Matthias Scheler
On Thu, Jun 24, 2010 at 10:55:51PM -0400, Thor Simon wrote: > Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL > sockets from the filesystem on last close? I think of a reason for that as they are completely useless with a process attached to them anyway. Kind regards