JDK-8215879 : Aarch64: ReservedStackAccess may leave stack guard in inconsistent state
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11.0.1,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2018-12-21
  • Updated: 2020-06-30
  • Resolved: 2018-12-21
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 11 JDK 12 JDK 13
11.0.5Fixed 12 b26Fixed 13Fixed
Description
during execution of ReservedStackAccess annotated method it might happen that reserved pages are reguarded while yellow pages left unguarded. At the same time the state of stack guard is recorded as fully protected (stack_guard_enabled). Subsequent execution of ReservedStackAccess annotated method then may lead to VM crash instead of mere StackOverflowError.
Reproduced with ReservedStackTestCompiler jtreg test on aarch32-jdk11 port codebase. The bug seem to be apparent and exists in aarch64-port as well
Comments
Fix Request JDK11u Why: Avoid potential VM crash What: Original patch applies cleanly to jdk11u Testing: tier1 tests pass as before
27-08-2019

Does not apply to 8u: @ReservedStackAccess is from JEP 270, which available only starting 9. Dropping 8u-aarch64.
19-06-2019

fix is on review. webrev at http://cr.openjdk.java.net/~apetushkov/ReservedStackAccess2/
21-12-2018