Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5642030rwb; Wed, 7 Sep 2022 06:05:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR7qcVOvAsMxKZ31fspp7CDfZ7zqJoVZqRSPjz7tc7C4+Ps8VdjOAxn7sict1XQBc5//MSDb X-Received: by 2002:a17:902:d505:b0:176:96f1:2e61 with SMTP id b5-20020a170902d50500b0017696f12e61mr3624309plg.73.1662555914257; Wed, 07 Sep 2022 06:05:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662555914; cv=none; d=google.com; s=arc-20160816; b=NKX2dVqJ+yhqw734oW9MluvAsbIArfXSICRgtZrSgzuC4XOl3KxreMtOXdEZQLqINm vwZMMyPU5o0pcE3052fHGqIemOLoFsMt0b4g3zeUR0Iql5J1Y3y+O64z+pJojBh6MCHW MC7HRpLnxwOjUDNX2f5XSNTyLdOVbDjMr0xasRDQp5ifanE7VeIyKA1pOB0lz4O5Rxi3 c3FGf2s+QKwtSUA9l14TkdXS9rl+Nt32Iq8qsyiPhvPlNeb3On3sfFfdhXSZHaRrrGr7 l2fxjF0PBedm2+zmwKuaOKCkn+3Lnyi8x50eo/nafiUnlu9D1FwbH7OdIrVzky3xPNBD 7k/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7EEFaS3U7NKEZDeQU/Wq1ska++HOrCV8tO2oWqRVnoE=; b=vXo4YM1ACiKhBG8L9OrSio7bi2MldbSvcWVGHmrw5fViRQGfAkwofO6uV84U5Dr9Yn 8tjXJ5hdUokmMUhVX598l7IPcVxfwG7waxUdRYyWhB0+t/SSpZpqKcpv3TuE3P/lrLjy MIsST9aJTVVqabiCw8Gr+zkVzAtpPZ637jxL/X77/M6ZYi6vIMUhxbCUOyVSOEzaP4U2 bnDnG9YoC1WjGrGTITh1lU6RTx7mrMAH7nVyea3d8woeUdh7KGxSKXahy/qrzivu+3U4 A8ifdTMYvZuf0wyqQ6KCKaWKsd0kUka0F2UJfc/TKSD0iAVXVmIYzAaGfw9hIq+WKAIh P7Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=M1Roq5Qj; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k62-20020a628441000000b00534b83880f5si16663687pfd.68.2022.09.07.06.04.35; Wed, 07 Sep 2022 06:05:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=M1Roq5Qj; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229754AbiIGNDd (ORCPT + 99 others); Wed, 7 Sep 2022 09:03:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbiIGNDc (ORCPT ); Wed, 7 Sep 2022 09:03:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EF876C12F for ; Wed, 7 Sep 2022 06:03:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1E90D618DC for ; Wed, 7 Sep 2022 13:03:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3DA3C433D7; Wed, 7 Sep 2022 13:03:29 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="M1Roq5Qj" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1662555807; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7EEFaS3U7NKEZDeQU/Wq1ska++HOrCV8tO2oWqRVnoE=; b=M1Roq5QjSSSPe06FdwCktJMG3usP33MKEXiRNIKM0253LAvLRHcLvnU6IdkGGbaC53iF8r OXG8adyuafw7rmLJGPv69CUU5fXm/2XEuZkL2rAGqVAwQ06MUifsfQ+IfS4GtxtvUAVz9E 1ux5NRFicvz6LFd142W1nz6P66LM0W4= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id e03051b8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 7 Sep 2022 13:03:27 +0000 (UTC) Date: Wed, 7 Sep 2022 15:03:22 +0200 From: "Jason A. Donenfeld" To: "Guozihua (Scott)" Cc: Eric Biggers , Linux Crypto Mailing List , Andrew Lutomirski , Theodore Ts'o , zhongguohua Subject: Re: Inquiry about the removal of flag O_NONBLOCK on /dev/random Message-ID: References: <29c4a3ec-f23f-f17f-da49-7d79ad88e284@huawei.com> <4a794339-7aaa-8951-8d24-9bc8a79fa9f3@huawei.com> <761e849c-3b9d-418e-eb68-664f09b3c661@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Sep 06, 2022 at 12:16:56PM +0200, Jason A. Donenfeld wrote: > On Thu, Jul 28, 2022 at 10:25 AM Guozihua (Scott) wrote: > > > > On 2022/7/26 19:33, Guozihua (Scott) wrote: > > > On 2022/7/26 19:08, Jason A. Donenfeld wrote: > > >> Hi, > > >> > > >> On Tue, Jul 26, 2022 at 03:43:31PM +0800, Guozihua (Scott) wrote: > > >>> Thanks for all the comments on this inquiry. Does the community has any > > >>> channel to publishes changes like these? And will the man pages get > > >>> updated? If so, are there any time frame? > > >> > > >> I was under the impression you were ultimately okay with the status quo. > > >> Have I misunderstood you? > > >> > > >> Thanks, > > >> Jason > > >> . > > > > > > Hi Jason. > > > > > > To clarify, I does not have any issue with this change. I asked here > > > only because I would like some background knowledge on this flag, to > > > ensure I am on the same page as the community regarding this flag and > > > the change. And it seems that I understands it correctly. > > > > > > However I do think it's a good idea to update the document soon to avoid > > > any misunderstanding in the future. > > > > > > > Our colleague suggests that we should inform users clearly about the > > change on the flag by returning -EINVAL when /dev/random gets this flag > > during boot process. Otherwise programs might silently block for a long > > time, causing other issues. Do you think this is a good way to prevent > > similar issues on this flag? > > I still don't really understand what you want. First you said this was > a problem and we should reintroduce the old behavior. Then you said no > big deal and the docs just needed to be updated. Now you're saying > this is a problem and we should reintroduce the old behavior? > > I'm just a bit lost on where we were in the conversation. > > Also, could you let me know whether this is affecting real things for > Huawei, or if this is just something you happened to notice but > doesn't have any practical impact? Just following up on this again...