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

-Xcheck:jni Protect the system stack with a NULL page

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • hs10
    • 6
    • hotspot
    • None
    • b07
    • generic
    • solaris

        We should protect the VM by making the addr 0x0 non-writeable by creating
        a Read-only page mapped
        at address 0x0, this will prevent (very hard to find) Bugs.
        There are two case this can happen:
        1) An OS bug which decides to map over the 0x0 and make it legal
        see Bug: 6374692
        2) User code preceding CreateJavaVM may do something like this
           mmap(0, MAP_FIXED). The OS could map 0x0, and this very be allowed,
           as mmap(2) spec. is not very clear, whether it is legal or not.

              ksrini Kumar Srinivasan
              ksrini Kumar Srinivasan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: