summaryrefslogtreecommitdiff
path: root/sapi/apache2handler/php_functions.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-11-12 16:12:59 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2019-11-15 09:46:58 +0100
commit39d04f15f83360777e9b1c6afd00a49f995fdcf5 (patch)
tree5166d49b9bd1528210b63d3306bacf183c61c984 /sapi/apache2handler/php_functions.c
parent9083e178f656878cab46aee52b555346ef92a768 (diff)
downloadphp-git-39d04f15f83360777e9b1c6afd00a49f995fdcf5.tar.gz
Fix ASLR related invalid opline handler issues
Opcache stores `opline->handler`s in shared memory. These pointers are invalid, if the main PHP DLL is loaded at another base address due to ASLR. We therefore store the address of `execute_ex` in the mmap base file, and check on startup whether it matches its current address. If not, we fall back on the file cache if enabled, and bail out otherwise. This still does not address cases where the opline handler is located inside of another DLL (e.g. for some profilers, debuggers), but there seems to be no general solution for now. (cherry picked from commit 8ba10b8fbc020dc225d3b19d8f088f1351a3e304)
Diffstat (limited to 'sapi/apache2handler/php_functions.c')
0 files changed, 0 insertions, 0 deletions