Subject: Re: Death of the 'stackgap'
To: Juan RP <juan@xtrarom.org>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 07/13/2007 08:05:07
On Thu, Jul 12, 2007 at 11:59:18PM +0200, Juan RP wrote:
> On Thu, 12 Jul 2007 21:21:14 +0100
> David Laight <david@l8s.co.uk> wrote:
> 
> > After much hacking, there is now only one piece of code that relies on the
> > 'stackgap' [1], this isn't in the compat code, but is in
> > kern/krn_systrace.c.
> 
> Good work, but don't forget to fix puffs (doesn't work with your last set
> of changes).

That is because puffs tries to do a copyout() to the users's buffer
during mount.  I think that is a bug in puffs.
The mount arguments can be recovered by calling:
    mount(NULL, "path", MNT_GETARGS, buffer);

	David

-- 
David Laight: david@l8s.co.uk