Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp324813imn; Thu, 28 Jul 2022 01:35:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vnDzlpqN49ev2mBRwkYoNpA5/TsQY8K454xgjAkj/FyKIC3jRD/gOoNOoXz3Xcrq506E66 X-Received: by 2002:a17:906:98c7:b0:72b:20fe:807d with SMTP id zd7-20020a17090698c700b0072b20fe807dmr20868327ejb.75.1658997349994; Thu, 28 Jul 2022 01:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658997349; cv=none; d=google.com; s=arc-20160816; b=WPY+LOQAbqtbFnaMBepQ4FWshk9dLKTrrjUc+FBnYm4W5VFmEcrzpHGC1+BFYsG4AI oCVZlgTVElzAtl5QABrP60uR2hou3Uf1ppVLrWeWjAQD8kCPN56HXPzHHh+AE+VYImdB c6e4OPhBd6fhqyWtviFro2Lo2BkVdDwF+wEtUz58EjMIu8rKUYOP0dOOEsJ4puCXyjic u/HZ1HXweeLAW+RAZtrC0Z51K0eK5ZOC1I71mX7HNBtj+0nf+2jjBlIuOsnsmQ5Mm4zX C+g07LOEfWPdX+0UZYGuDlOQDPrC+jgLyi0xKd6vu6RPfTvqHHg+qvjJqX+WHTvTxs8+ pglQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id; bh=q6pmgm0DylAN7vwmvSVGmqOyDOKsIDzaJoFBGReYBwY=; b=a9FHwMs9g9lSWqFBGyHARId+OUBaaP0RmYXJQDYUs19taUSts0fyMprj+oMXvEDZ6l w4cdlWt/aok9hO2ZSHWRuijxGJyVpBUzvEk7/QSvVghlF7+JDwI2i62gf5xAvwPhSPb8 cmxhHPiqQ6UOjPpFU2Wcxu/YPKvZ7oV3cvnHmqLjUN/qUygmm0Hkn/XpCFkCYmDq1KNY Big0jKS2/Y5RmrbKkLBrp3ATjlbmkWeNch5Rr+9RM7QwTmtxpXIDA2cp1qiGHu836oNy FKGg3vvk90TNeSUailuolcnwtpNqjt7rkkabzmWpUkk3rYKq0Uvu3uDnrQFSmL+JkyKq LO6A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc44-20020a17090716ac00b0072b3a923e6csi283118ejc.974.2022.07.28.01.35.12; Thu, 28 Jul 2022 01:35:49 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234557AbiG1IYk (ORCPT + 99 others); Thu, 28 Jul 2022 04:24:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234504AbiG1IYj (ORCPT ); Thu, 28 Jul 2022 04:24:39 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BD5B6248D for ; Thu, 28 Jul 2022 01:24:38 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Ltk9j4PNWzWfmR; Thu, 28 Jul 2022 16:20:41 +0800 (CST) Received: from [10.67.110.173] (10.67.110.173) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 28 Jul 2022 16:24:36 +0800 Message-ID: <761e849c-3b9d-418e-eb68-664f09b3c661@huawei.com> Date: Thu, 28 Jul 2022 16:24:36 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: Inquiry about the removal of flag O_NONBLOCK on /dev/random Content-Language: en-US From: "Guozihua (Scott)" To: "Jason A. Donenfeld" CC: Eric Biggers , , , , zhongguohua References: <13e1fa9d-4df8-1a99-ca22-d9d655f2d023@huawei.com> <29c4a3ec-f23f-f17f-da49-7d79ad88e284@huawei.com> <4a794339-7aaa-8951-8d24-9bc8a79fa9f3@huawei.com> In-Reply-To: <4a794339-7aaa-8951-8d24-9bc8a79fa9f3@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.110.173] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500024.china.huawei.com (7.185.36.203) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 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? -- Best GUO Zihua