From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01807C4CEC9 for ; Fri, 20 Sep 2019 20:34:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C35D5208C3 for ; Fri, 20 Sep 2019 20:34:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=codon.org.uk header.i=@codon.org.uk header.b="POWQbp5e" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730071AbfITUey (ORCPT ); Fri, 20 Sep 2019 16:34:54 -0400 Received: from cavan.codon.org.uk ([93.93.128.6]:37083 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728994AbfITUex (ORCPT ); Fri, 20 Sep 2019 16:34:53 -0400 X-Greylist: delayed 997 seconds by postgrey-1.27 at vger.kernel.org; Fri, 20 Sep 2019 16:34:52 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codon.org.uk; s=63138784; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=kRB7J4Z1rxbkzW6KajLP7EjJU8aXPe3wlVZKi9gdjP8=; b=POWQbp5eTDGJeeQ57YU37aabB ChHE8qiOp92UivtPZsgJYfG9CVQDVNr4ZjbEcdPdLKWTBlT8XDhn3QHR3yqKbLMuQXHiCvOt94iDv kPAI7CAYYeR2sf7uqNFh0X3X/XQSu7+V1Ru+So2x83Rx+bVtBGevz4s0bStBeS4431St4=; Received: from mjg59 by cavan.codon.org.uk with local (Exim 4.89) (envelope-from ) id 1iBPLf-0002o2-E8; Fri, 20 Sep 2019 21:17:47 +0100 Date: Fri, 20 Sep 2019 21:17:47 +0100 From: Matthew Garrett To: Linus Torvalds Cc: Andy Lutomirski , "Ahmed S. Darwish" , Lennart Poettering , "Theodore Y. Ts'o" , "Eric W. Biederman" , "Alexander E. Patrakov" , Michael Kerrisk , Willy Tarreau , lkml , Ext4 Developers List , Linux API , linux-man Subject: Re: [PATCH RFC v4 1/1] random: WARN on large getrandom() waits and introduce getrandom2() Message-ID: <20190920201747.kmzx2kjdv2hbljsy@srcf.ucam.org> References: <20190918211503.GA1808@darwi-home-pc> <20190918211713.GA2225@darwi-home-pc> <20190920134609.GA2113@pc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 20, 2019 at 12:51:12PM -0700, Linus Torvalds wrote: > So we absolutely _will_ come up with some way 0 ends the wait. Whether > it's _just_ a timeout, or whether it's jitter-entropy or whatever, it > will happen. FWIW, Zircon uses the jitter entropy generator to seed the CRNG and documented their findings in https://fuchsia.dev/fuchsia-src/zircon/jitterentropy/config-basic . -- Matthew Garrett | mjg59@srcf.ucam.org