php-src/sapi
Jakub Zelenka c9c1934ff0
Fix GH-8517: FPM child pointer can be potentially uninitialized
There might be a moment when the child log event is executed after
freeing a child. That could possibly happen if the child output is
triggered at the same as the terminating of the child. Then the output
event could be potentially processed after the terminating event which
would cause this kind of issue.

The issue might got more visible after introducing the log_stream on
a child because it is more likely that this cannot be dereferenced
after free. However it is very hard to reproduce this issue so there
is no test for this.

The fix basically prevents passing a child pointer and instead passes
the child PID and then looks the child up by the PID when it is being
processed. This is obviously slower but it is a safe way to do it and
the slow down should not be hopefully visible in a way that it would
overload a master process.
2022-11-23 11:25:51 +00:00
..
apache2handler Return value from ZEND_ATOL 2021-07-12 16:51:24 +02:00
cgi Merge branch 'PHP-8.0' into PHP-8.1 2021-10-14 12:23:43 +02:00
cli Merge branch 'PHP-8.0' into PHP-8.1 2022-10-20 13:04:14 +02:00
embed Fixed some spaces used instead of tabs 2021-06-29 11:30:26 +02:00
fpm Fix GH-8517: FPM child pointer can be potentially uninitialized 2022-11-23 11:25:51 +00:00
fuzzer Fix strict-prototypes warning 2021-08-30 10:43:21 +02:00
litespeed Merge branch 'PHP-8.0' into PHP-8.1 2022-11-20 19:30:25 -05:00
phpdbg Merge branch 'PHP-8.0' into PHP-8.1 2022-07-01 05:34:05 +01:00