From b1d41d678888fd1a51e4844ab583f7c47f9fb218 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Wed, 1 Sep 2010 16:46:37 -0400 Subject: Remove the stack guard page. Processes are now contiguous from 0 to proc->sz, which means our syscall argument validation is correct. Add a pointer validation test and remove the stack test, which tested for the guard page. --- exec.c | 1 - 1 file changed, 1 deletion(-) (limited to 'exec.c') diff --git a/exec.c b/exec.c index 39530aa..c518c04 100644 --- a/exec.c +++ b/exec.c @@ -52,7 +52,6 @@ exec(char *path, char **argv) // Allocate and initialize stack at sz sz = PGROUNDUP(sz); - sz += PGSIZE; // leave an invalid page if(!allocuvm(pgdir, (char *)sz, PGSIZE)) goto bad; mem = uva2ka(pgdir, (char *)sz); -- cgit v1.2.3