Subject: Re: kern/36196 (supervisor trap with linux df)
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 04/24/2007 23:20:02
The following reply was made to PR kern/36196; it has been noted by GNATS.
From: David Laight <david@l8s.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/36196 (supervisor trap with linux df)
Date: Wed, 25 Apr 2007 00:23:34 +0100
On Tue, Apr 24, 2007 at 10:15:04PM +0000, Nicolas Joly wrote:
>
> I spoke a little too soon ... I do see the problem with your case,
> mine does not.
>
> Old:
> 21221 1 df CALL open(0x8050472,0,0x1b6)
> 21221 1 df NAMI "/emul/linux/etc/mtab"
> 21221 1 df NAMI "/emul/linux"
> 21221 1 df NAMI "/emul/linux/etc/mtab"
> 21221 1 df RET open 3
>
> New:
> 1372 1 df CALL open(0x8050472,0,0x1b6)
> 1372 1 df NAMI "/etc/mtab"
> 1372 1 df NAMI "/etc/mtab"
> 1372 1 df RET open -1 errno -2 No such file or directory
i'll have a look tomorrow, I'd guess that the relevant NDINIT(), or
a later assignment to cn_flags, isn't setting TRYEMULROOT.
Since namei() is handling the emulation root lookup, ktrace() will
only show the application suppied path, I might look at a way of
indicating that the emulation root might be (or way) used.
David
--
David Laight: david@l8s.co.uk