Subject: Re: Death of the 'stackgap'
To: None <tech-kern@netbsd.org>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 07/13/2007 00:46:25
--ceuyUbi+oA5bUa/n
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 12, 2007 at 09:21:14PM +0100, David Laight 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_systrac=
e.c.
>=20
> Anyone any thoughts on how to implement the systrace STRIOCREPLACE ioctl?
> Or is systrace just such a nasty hack it deserves to die?

You always have the option of doing what proplib does when it returns a
dictionary to userland...  You might not find it to your taste, but it
works and doesn't have the limitations of stackgap.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"You could have made it, spitting out benchmarks
Owe it to yourself not to fail"
Amplifico, Spitting Out Benchmarks, Hometakes Vol. 2, 2005.

--ceuyUbi+oA5bUa/n
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)

iQEVAwUBRpavQdgoQloHrPnoAQJ7VwgApkT0WCTFdFQYCOCWjC5a54WDdFvDRT8B
gEAIdgJu6PTk83tU6QGExngMbE8PsahLCNyOlq7Ln2f2CU9e7IMmik39ldI8Tq6T
Z+lreX37tLQWNNF48h1FmI4x9o/2BBNm21YXaHflLE8J4uUOLSHhOcYktEmsqP4w
/1OBOyhAzUQBoJ/8ySp/yt0QXfgP/SBwdoLZWCYFwP9KxvOZyhcfHHUHMn62uVLt
I1wWWlMRGgL89QdFGk0wCK6cA/5SdlaI1ikTcWS9vIChOmxAXbqEZWxicnYTYOxe
oIlhQ8aSM7eCK/UEb5AjYh4pVgXDCe1kDR4dRrx12W1vj0AYuO5fEw==
=jrde
-----END PGP SIGNATURE-----

--ceuyUbi+oA5bUa/n--