Withdrawn: 8369393: NMT: poison the canaries of malloc header under ASAN build

Afshin Zafari azafari at openjdk.org
Wed Dec 17 09:02:02 UTC 2025


On Wed, 8 Oct 2025 08:40:15 GMT, Afshin Zafari <azafari at openjdk.org> wrote:

> NMT can detect malloc'd memory corruption using canary tests at header and footer of every memory region. This can only be done at free time of the memory where NMT checks the canaries and report error if they are not as expected.
> In this PR, the canary parts also are poisoned using ASAN API to get notified whenever a read/write op is done. on the canary parts. `_size` member of the malloc header is also poisoned, since it is used for finding the footer address.

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.org/jdk/pull/27685


More information about the hotspot-runtime-dev mailing list