Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8215879

Aarch64: ReservedStackAccess may leave stack guard in inconsistent state

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
      9
    • Resolved In Build:
      b26
    • CPU:
      aarch64
    • OS:
      linux

      Backports

        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

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                apetushkov Andrey Petushkov
                Reporter:
                apetushkov Andrey Petushkov
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: