Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90980 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56024 invoked from network); 27 Jan 2016 14:02:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2016 14:02:01 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wm0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:35585] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B6/79-28185-7DDC8A65 for ; Wed, 27 Jan 2016 09:02:00 -0500 Received: by mail-wm0-f48.google.com with SMTP id r129so146227868wmr.0 for ; Wed, 27 Jan 2016 06:01:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=Ydk6YxQd6dlQrwNEUKacriP8mlSEtbsB7RQKJ3MQ6+8=; b=Avo2wNfVxkluIbfl9A4REUve1XKktQLmtcd0h/KPro/rppYAR4FNmYtp8hAM/LaRw7 oeJz97JP9bPI2/90Fe2jJDDGLNl2FVqbcphk8NQbVOnJjLZHSyVatONsNMMZ3enr86iF mPSBliD/wxgf27XsmxyW1y3n+JQbCp7Pt/TpdmHN7F9Dzrkm1a/Mnlz7P1kLNn6k/gy+ klWi3CKTfxA0PJoqBnNgDqHlY6H7U+JgMPxiSdFfPRO8/j7B2iREkcgi6hQ4FuFUkMa5 jlcj6kkuFD8LwXIh8xoO/Fi+vvr0r10WvuNIm8EnvMBxJaGslygzv54vmADUiJ4TWbXU 2HHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=Ydk6YxQd6dlQrwNEUKacriP8mlSEtbsB7RQKJ3MQ6+8=; b=Oc6VsxLcLBu1FdWig20w2rJNIb/N2tphg/rOk0im5XwiIPYSbF4BDqYb2KmjNVJRMt ySvRedHKAKxeJ0QMiJQbMzILL9QLKWLbZCOq8u5yEIcTnmzIQ4Pk+p06smHLbEijlKae sXdL8Ongg90Tfl9sRJzyhIMd+siliFTr5a+x3bXxGA/K548/9XQDroJdQbTSPnIjW+of pC7KxV+U+zujXO0lJI2/xf17jWhgpRYzKe4mYa2niTSpZGOCif38Sc6Ca5aChGAMNlv7 UeX9lGNrJQTLywfjMgxXhkZYT5sFLxRNiRJ7MHpg/bL/Q53kxLzzjnOIoFlK+vUjLOkx 7qng== X-Gm-Message-State: AG10YOSB+XcsHbjwy/Wbbhu4mq8PJcgCXAyeORE9atbTrJCslmJ0wW4Ss+kzsE31Z2h8ggJTBOvY76kDmMrJ7A== X-Received: by 10.28.55.209 with SMTP id e200mr31898137wma.2.1453903316008; Wed, 27 Jan 2016 06:01:56 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.194.80.42 with HTTP; Wed, 27 Jan 2016 06:01:16 -0800 (PST) In-Reply-To: References: Date: Wed, 27 Jan 2016 15:01:16 +0100 X-Google-Sender-Auth: _6xoUMyP55GLlw5ig0x-H9AS-NU Message-ID: To: Yasuo Ohgaki Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Bug #67383 exec() leaks file and socket descriptors to called program From: jpauli@php.net (Julien Pauli) On Wed, Jan 27, 2016 at 1:03 PM, Yasuo Ohgaki wrote: > Hi all, > > This bug comes to my attention. > https://bugs.php.net/bug.php?id=67383 > > This report includes patch that prevents file descriptor leaks. > https://bugs.php.net/patch-display.php?bug_id=67383&patch=SOCK_CLOEXEC-and-FD_CLOEXEC&revision=latest > > There may be cases that CLOEXEC cannot be applied blindly, but it > seems this fixes lots of bugs including very old bugs. > Why this patch is not merged and closed? > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Hi, Great catch. We already have many CLOEXEC, but we seem to be missing lots of them. There is a note however, in bug ticket 67383, about a problem in FPM with CLOEXEC, which should be qualified and addressed. Just don't apply blindly the patch. Julien.Pauli