Skip to content

Zend: Add ASan annotations to native ZendMM - #24470

Open
jvoisin wants to merge 1 commit into
php:masterfrom
jvoisin:asan
Open

jvoisin wants to merge 1 commit into
php:masterfrom
jvoisin:asan

Conversation

@jvoisin

@jvoisin jvoisin commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Poison freed small slots, page runs, and retained request-shutdown storage. Unpoison storage on allocation, reuse, and realloc growth.

Temporarily expose free-list metadata during allocator accesses, including post-fork rekeying. Keep debug trailers accessible for leak detection.

Add regression coverage for ASan shadow state across allocation, reallocation, freeing, GC, rekeying, and heap reuse. Document how to run ASan tests with native ZendMM.

@jvoisin

jvoisin commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author
  Run make -C docs check-formatting
  make -C docs check-formatting
  shell: /usr/bin/bash -e {0}
make: Entering directory '/home/runner/work/php-src/php-src/docs'
rstfmt -w 100 --check source
source/miscellaneous/running-tests.rst is not correctly formatted!
make: *** [Makefile:22: check-formatting] Error 1
make: Leaving directory '/home/runner/work/php-src/php-src/docs'
Error: Process completed with exit code 2.

It would be nice of the CI to tell me what's actually wrong with the doc formatting.

@LamentXU123 LamentXU123 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to make sure every line of the doc to be no more than 100 words to pass doc formatting CI.

Poison freed small slots, page runs, and retained request-shutdown
storage. Unpoison storage on allocation, reuse, and realloc growth.

Temporarily expose free-list metadata during allocator accesses,
including post-fork rekeying. Keep debug trailers accessible for
leak detection.

Add regression coverage for ASan shadow state across allocation,
reallocation, freeing, GC, rekeying, and heap reuse. Document how
to run ASan tests with native ZendMM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants