Subject: Re: and now: COMPAT_IBCS2 vs. MP
To: J Chapman Flack <flack@cs.purdue.edu>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: tech-kern
Date: 03/05/2005 17:44:10
On Sat, Mar 05, 2005 at 11:07:26AM -0500, J Chapman Flack wrote:
> Martin Husemann asked:
> 
> > Can you try running it on a kernel with options LOCKDEBUG?
> 
> simple_lock: locking against myself
> lock: 0xcb752264, currently at: ../../../../kern/kern_descrip.c:597
> on CPU 1
> last locked: ../../../../kern/kern_descrip.c:212
> last unlocked: ../../../../kern/vfs_syscalls.c:1176
> 
> Other details as in my earlier message.
> 
> I tried one other thing just for grins: I moved /emul/ibcs2/dev/socksys
> to /dev/socksys: my /dev is on the root fs, but /emul/ibcs2/dev involves
> a mount and a null mount, which I thought might be throwing extra complexity
> into the fs code, but it didn't make any difference, so it's moved back
> to /emul/ibcs2/dev now.

There is obvious file descriptor locking error in ibcs2_sys_ioctl().

I'll cook up a patch and post it to you shortly.

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=- We can walk our road together if our goals are all the same;     -=-
-=- We can run alone and free if we pursue a different aim.          -=-