Bug #76109 [NEW]: Unsafe access to fpm scoreboard

From: Date: Sat, 17 Mar 2018 14:00:02 +0000
Subject: Bug #76109 [NEW]: Unsafe access to fpm scoreboard
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214394@lists.php.net to get a copy of this message
From:             backhaus at traum-ferienwohnungen dot de
Operating system: Linux
PHP version:      master-Git-2018-03-17 (Git)
Package:          FPM related
Bug Type:         Bug
Bug description:Unsafe access to fpm scoreboard

Description:
------------
It seems there is an unsafe access to the scoreboard procs in
fpm_status_handle_request. The scoreboard is copied under a lock, but
later scoreboard procs are copied from scoreboard_p without locking. 
This was pointed out to me by bukka in
https://github.com/php/php-src/pull/3182#discussion_r174150992
.
The risk of this is pretty low. The only impact in can imagine being
inconsistent readings on the status page.



-- 
Edit bug report at https://bugs.php.net/bug.php?id=76109&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=76109&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=76109&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=76109&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=76109&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=76109&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=76109&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=76109&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=76109&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=76109&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=76109&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=76109&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=76109&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=76109&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76109&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=76109&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=76109&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=76109&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76109&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=76109&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=76109&r=mysqlcfg



Thread (6 messages)

« previous php.bugs (#214394) next »