[php-src] PR #24600: Use Memory Protection Keys to protect the OPcache mapping
| From: | arnaud-lb | Date: | Fri, 23 Oct 2026 13:04:17 +0000 |
| Subject: | [php-src] PR #24600: Use Memory Protection Keys to protect the OPcache mapping | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-39763@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/24600
Author: arnaud-lb
Same as https://github.com/php/php-src/pull/20461, but
OPcache-only since we can't disable execution on x86_64.
This uses pkeys to make the OPcache mapping readonly when we are not updating it, even when
opcache.protect_memory is off.
See
* https://docs.kernel.org/core-api/protection-keys.html
* https://www.gnu.org/software/libc/manual/html_node/Memory-Protection.html
* https://man7.org/linux/man-pages/man7/pkeys.7.html