Instrument Metaspace for ASan

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 21
    • Component/s: hotspot
    • b07

      Metaspace uses custom allocators which use mmap/munmap to acquire memory. ASan by default is unaware of this memory and as such performs no checking of its accesses.

      ASan supports user-specified poisoning/unpoisoning. This allows ASan to detect unexpected usage of memory, effectively allowing us to detect use-after-free in the Arena.

      This enhancement will instrument Metaspace for ASan using poisoning/unpoisoning.

      Additionally JDK-8298445 will be able to make use of poisoning/unpoisoning information by not looking for pointers in poisoned memory. This makes it much more accurate and determenistic.

            Assignee:
            Justin King
            Reporter:
            Justin King
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: