From 94197cdda55b0d6a61f297ee18b5ecb079902f19 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 14 Feb 1997 16:39:23 +0000 Subject: [PATCH] round RLIMIT_STACK; problem spotted by jfw@jfwhome.funhousecom --- sys/kern/exec_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/exec_subr.c b/sys/kern/exec_subr.c index e8810979a6d..8a766bee2d8 100644 --- a/sys/kern/exec_subr.c +++ b/sys/kern/exec_subr.c @@ -217,7 +217,7 @@ exec_setup_stack(p, epp) epp->ep_maxsaddr = USRSTACK - MAXSSIZ; epp->ep_minsaddr = USRSTACK; - epp->ep_ssize = p->p_rlimit[RLIMIT_STACK].rlim_cur; + epp->ep_ssize = round_page(p->p_rlimit[RLIMIT_STACK].rlim_cur); /* * set up commands for stack. note that this takes *two*, one to -- 2.20.1