JDK-8204053 : libsaproc.so not linked with -z,noexecstack
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 8u172
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2018-05-30
  • Updated: 2019-01-14
  • Resolved: 2018-06-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u192 b01Fixed
Description
libsaproc.so is missing an explicit GNU_STACK program header that would be required to ensure we get non-executable stacks on all platforms.

Issue seen in Oracle JDK 8. On 10b25, libsaproc.so looks correct. So my backport of 8187045 to 8 must be at fault here.
Comments
Fix should be verifiable by running test/hotspot/jtreg/runtime/execstack/TestCheckJDK.java (once JDK-8204052 is fixed).
02-06-2018

My backport of JDK-8187045 to JDK 8 missed libsaproc.so. In JDK 8, there is a separate file, saproc.make, that controls the flags for libsaproc.so. During the work for JDK 9, the contents of this file were later merged into the other HotSpot build files in JDK-8142336. My backport to JDK 8 should have also added the noexecstack flag to saproc.make.
02-06-2018