Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93434 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47129 invoked from network); 23 May 2016 08:06:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2016 08:06:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.68 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 74.125.82.68 mail-wm0-f68.google.com Received: from [74.125.82.68] ([74.125.82.68:36485] helo=mail-wm0-f68.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/63-14293-22AB2475 for ; Mon, 23 May 2016 04:06:58 -0400 Received: by mail-wm0-f68.google.com with SMTP id q62so12478829wmg.3 for ; Mon, 23 May 2016 01:06:58 -0700 (PDT) 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; bh=iPKYChJ9yWaKSKhdA8M5zeQkBr3f3o9GixLt6+JjPLQ=; b=pdaJq0X7+OdMsqx7hXPQaA/CqBr1SMOO4jM+7CAlL6Oe+SX+YwWSi25Ue1UB8oYjbl yOXGKNPFJwd9YSwrIzcR4VyC8iM4Eg81tGax5yvWL4HALZzzGZZC2lqE2pb6Ao81NeHs WaMYDC7/pIKeFWaOntxBJUL/NG+eoM1QCUR9ZWuGf0TD94BsfIkILYaJIbAfd/tlwmks SSI9tjUV576XNKumH8WWg0Gucm6UnuJWEAmUNVO/UJCyNu97yWa3ABA08T1zbKVMCeIb 5IouES6oY1RWzsD8XzFlWwpSIacL4Hi68qVTMCX+GH9dD8GT/DaLNVMdOIVCsQOoQFPb cX+Q== 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; bh=iPKYChJ9yWaKSKhdA8M5zeQkBr3f3o9GixLt6+JjPLQ=; b=aTaex9APPVoWYow6gtuv+BDSlMLfC9sp4CRAnOgMVxCNzS7XKenlt/axUq3cPb30Fi UFk7FTksCqglMouygwMQUN9cX50CFkoclDfmp5+IxA7Mbb/8BykoCyC+ai7a/jF3fU5y yFyWp6uNczlXFGZnXKmxXc7sruW/wK5SQNtPxyK05I/135LdLIIdOtaeiCaFYFF8DTt/ K+PRFmFHjKb1Qzq5UgS2YKxUIf0UAKwhfIlsPKF8na6rL3DF8PHKCkCjeLPIPa+BsIos f8bLU/R2Ps/p4ew+gUMiE4KWs8EfI5CRWYxei2B4DsZ/WOxI5F3OzHtmTfe1XhvXwM+I FGxA== X-Gm-Message-State: AOPr4FWNNbfgvt3/kxGB/ofuKJVdZC5HMVexlZvqcdpdlxDsfeUVzedHTq3huKKlU7I33d8geZp4YjP1ak4fyA== X-Received: by 10.28.72.134 with SMTP id v128mr15921758wma.28.1463990815674; Mon, 23 May 2016 01:06:55 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.194.216.4 with HTTP; Mon, 23 May 2016 01:06:16 -0700 (PDT) In-Reply-To: References: Date: Mon, 23 May 2016 10:06:16 +0200 X-Google-Sender-Auth: TH-ydq0nSS4KHdadr17rukr5x1k Message-ID: To: Stanislav Malyshev Cc: Scott Arciszewski , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] PHP 7 CSPRNG - block on /dev/random? From: jpauli@php.net (Julien Pauli) On Sun, May 22, 2016 at 7:04 AM, Stanislav Malyshev wrote: > Hi! > >> Question: Is there a nonzero chance of a PHP application running at boot >> time on an older GNU/Linux machine? If so, should we adopt this "unseeded >> CSPRNG" mitigation employed by libsodium for ancient Linux kernels? >> >> https://github.com/jedisct1/libsodium/issues/374 >> https://github.com/jedisct1/libsodium/commit/c752eb55d9e9992bc38e7790128953427aa0a89f >> >> This could be done as a security patch for PHP 7.0.x if there's any concern >> about startup entropy e.g. on embedded devices. > > If they're running Linux kernel that deserves to be called "ancient", > wouldn't they also run old PHP? In any case, from the problem > description, it looks like the problem happens "on early boot". I don't > see how you can get to run PHP code before you get way, way beyond early > boot. > >> I'm not aware of any such projects being written in PHP, so my intuition is >> this is a non-issue for us. > > I agree, this appears to be non-issue for PHP. Same thinking here => we're not concerned. Julien.Pauli