php-src/sapi/fpm
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
..
fpm Fix GH-8517: FPM child pointer can be potentially uninitialized 2022-11-23 11:25:51 +00:00
tests Fix bug #68207: Setting fastcgi.error_header can result in a WARNING 2022-11-22 18:17:16 +00:00
config.m4 Fix FPM ACL build check on MacOS 2022-04-29 20:39:22 +01:00
CREDITS
init.d.php-fpm.in Add configtest option to fpm init.d script 2015-03-08 22:48:29 +08:00
LICENSE
Makefile.frag Trim trailing whitespace in source code files 2018-10-13 14:17:28 +02:00
php-fpm.8.in Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php-fpm.conf.in Fix spelling and grammar mistakes 2021-04-13 12:09:37 +02:00
php-fpm.service.in Fix bug #79014 (PHP-FPM & Primary script unknown) 2020-02-23 19:14:05 +00:00
status.html.in Merge branch 'PHP-7.2' into PHP-7.3 2019-04-20 19:12:31 +02:00
www.conf.in Fix spelling and grammar mistakes 2021-04-13 12:09:37 +02:00