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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Sep 4 20:39:48 UTC 2019


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

--- Comment #20 from Konstantin Belousov <kib at FreeBSD.org> ---
After r351773, you can add the following fragment at the beginning of the jvm
initialization.  It is safe to ignore errors from procctl(2), which means that
the kernel is old and stack overflow detection would be still broken.

        int arg = PROC_STACKGAP_DISABLE | PROC_STACKGAP_ENABLE_EXEC;
        procctl(P_PID, getpid(), PROC_STACKGAP_CTL, &arg);

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


More information about the freebsd-bugs mailing list