-
Notifications
You must be signed in to change notification settings - Fork 7.9k
GH-9370: Fix opcache jit protection bits. #9371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Allow mprotect to occur, pthread_jit_write_np are just to allow mprotect flags to be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot test this, but according to https://keith.github.io/xcode-man-pages/pthread_jit_write_protect_np.3.html pthread_jit_write_protect_np()
should work without mprotect()
.
May be mprotect()
is necessary, because we used it before in zend_accel_shared_protect()
. Also note that we seem don't use MAP_JIT
flag and this may make difference.
@jdp1024 would the new changes work for you ? |
It doesn't work in M1. Call to |
Ok thx, I m going to put those back. Could you try again once you get a chance pls ? |
00d9d45
to
8fd9cdf
Compare
|
Ok waiting for @dstogov approval. |
Does PHP work without the patch (with |
It works after the removal of the two It does not work with So it seems that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. Merge this.
Allow mprotect to occur, pthread_jit_write_np are just to allow mprotect
flags to be used.