Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Sep 2019 20:39:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 239894] security.bsd.stack_guard_page default causes Java to crash
Message-ID:  <bug-239894-227-7MS7vI1JU0@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-239894-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-239894-227@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=239894

--- Comment #20 from Konstantin Belousov <kib@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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239894-227-7MS7vI1JU0>