Bug #74581 [Opn->Csd]: PaX killed execution attempt in PHP cli during build

From: Date: Sat, 15 Jul 2017 23:31:31 +0000
Subject: Bug #74581 [Opn->Csd]: PaX killed execution attempt in PHP cli during build
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210071@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74581&edit=1 ID: 74581 User updated by: michael at orlitzky dot com Reported by: michael at orlitzky dot com Summary: PaX killed execution attempt in PHP cli during build -Status: Open +Status: Closed Type: Bug Package: Compile Failure Operating System: Gentoo Linux PHP Version: 7.1.5 Block user comment: N Private report: N New Comment: I'm not seeing this any more, so the problem was probably inside of me. Previous Comments: ------------------------------------------------------------------------ [2017-05-12 11:58:38] michael at orlitzky dot com Description: ------------ This issue affects both 7.0.19 and 7.1.5, and is new to both of those versions as far as I can tell. On a system with PaX enabled, I get the following build error: Generating phar.php Generating phar.phar PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled. make: *** [Makefile:359: ext/phar/phar.phar] Killed Notice the "Killed" there at the end. That comes from the "php" CLI binary, as dmesg shows: [Thu May 11 20:59:17 2017] PAX: execution attempt in: <anonymous mapping>, 38cf40bc000-38cf40cc000 38cf40bc000 [Thu May 11 20:59:17 2017] PAX: terminating task: /var/tmp/portage/dev-lang /php-7.1.5/work/sapis-build/cli/sapi/cli/php(php):7930, uid/euid: 250/250, PC: 0000038cf40bc010, SP: 000003fa7ab2a118 I'm not sure that this is a PHP bug, but it's new in v7.0.19 and v7.1.5, so it's suspicious. To reproduce it, all one has to do is try to build PHP on a hardened Gentoo system (which are fairly common). As a workaround, we could pax-mark the "php" binary, but that nullifies a strong security measure. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74581&edit=1

« previous php.bugs (#210071) next »