Skip to content

Opcache: abort process when mprotect() or VirtualProtect() calls fail - #23855

Open
DanielEScherzer wants to merge 1 commit into
php:PHP-8.6from
DanielEScherzer:mprotect-failures
Open

DanielEScherzer wants to merge 1 commit into
php:PHP-8.6from
DanielEScherzer:mprotect-failures

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Member

If the protection call fails, the memory is likely going to have the wrong permissions and result in a later segmentation fault when trying to use it replace the stderr log messages with zend_accel_error_noreturn() calls that abort the process.

…fail

If the protection call fails, the memory is likely going to have the wrong
permissions and result in a later segmentation fault when trying to use it
replace the `stderr` log messages with `zend_accel_error_noreturn()` calls that
abort the process.
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