Date: Sat, 24 Dec 2016 23:16:53 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 215504] limits -s 0 limits causes limits process to segfault Message-ID: <bug-215504-8-VBV5stdGZD@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-215504-8@https.bugs.freebsd.org/bugzilla/> References: <bug-215504-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215504 Mark Johnston <markj@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #1 from Mark Johnston <markj@FreeBSD.org> --- Presumably this is because you asked limits to execute with a stack size of= 0? Looking at kern_proc_setrlimit(), a request to decrease the current stack l= imit will cause the kernel to render inaccessible any pages beyond the new limit= , so with a new size of 0 we'll crash upon returning from setrlimit(). (It also looks as though kern_proc_setrlimit() assumes that stacks grow down.) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215504-8-VBV5stdGZD>