[Bug 239894] security.bsd.stack_guard_page default causes Java to crash

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 21 15:15:33 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239894

--- Comment #7 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Greg Lewis from comment #6)
First, I am not sure what you mean by 'ther reasons a SIGSEGV could occur in
the normal stack region (e.g. a buffer overflow)'.  If the region is mapped rw,
then SIGSEGV cannot occur on accesses.

Second, does JVM use pthread stacks, or is it managing stacks directly by
mmap(MAP_STACK) ?  If the later, just remove MAP_STACK from the mmap(2) call
and see if it is enough.

Third, how the guard pages are created ?  Do you use mmap(2) or mprotect(2) ? 
If the later, try to call mmap(MAP_ANON) before doing mprotect(2) on it.

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


More information about the freebsd-bugs mailing list