[Bug 215504] limits -s 0 limits causes limits process to segfault

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Dec 24 23:16:53 UTC 2016


Mark Johnston <markj at FreeBSD.org> changed:

           What    |Removed                     |Added
                 CC|                            |markj at FreeBSD.org

--- Comment #1 from Mark Johnston <markj at 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 limit
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.)

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list