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

Instrument Metaspace for ASan

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • 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.

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

              Created:
              Updated:
              Resolved: