[php-src] PR #23250: PFA: Extend local pointer map after loading PFA from SHM
| From: | arnaud-lb | Date: | Thu, 13 Aug 2026 15:22:06 +0000 |
| Subject: | [php-src] PR #23250: PFA: Extend local pointer map after loading PFA from SHM | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-37824@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23250
Author: arnaud-lb
When loading a PFA from SHM we may need to extend the local pointer map because
the PFA may use pointers higher than CG(map_ptr_last). Similar synchronization
happens in inheritance cache [^1] or when loading whole scripts [^2].
The test reproduces under ASAN with Opcache enabled.
Bug found by Ryan @ Calif.io.
[^2]: https://github.com/php/php-src/blob/7a2303f89bffa0ecc4b5877f1a701ce2d844c5a3/ext/opcache/zend_accelerator_util_funcs.c#L373-L375
[^1]: https://github.com/php/php-src/blob/eaac14a17a3d64c52ef1a0778bb65828cfce4eda/ext/opcache/ZendAccelerator.c#L2538-L2545