From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 15 Mar 2013 19:57:35 -0400 To: 9fans@9fans.net Message-ID: <6afdffa1957d1d4afe8c1a50369e4090@ladd.quanstro.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] exec() question Topicbox-Message-UUID: 2b22ca84-ead8-11e9-9d60-3106f5b1d025 On Fri Mar 15 18:50:20 EDT 2013, cinap_lenrek@gmx.de wrote: > putting the TSTK above the user stack is what the alpha > and ppc kernels do. but just looking for a hole in exec > seems also good. also note that you dont need a whole > USTKSIZE window. only TSTKSIZ (or spage) window is fine > for the upper half of the temporary stack because thats > what exec accesses. nix doesn't artificially limit the exec args to 4096*100 bytes as the /sys/src/9 kernel does, so in theory the exec args can mostly fill the stack. thanks for looking at the alpha kernel. that shows that in theory that approach works. - erik