Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4183930imw; Tue, 19 Jul 2022 01:12:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s9CwHmeNLpCCU6GVRPl5aKqe/NIXkC+HwcRJCaVmOvC4ofZ21dBEvXTS5iHIsSZrcuEtR3 X-Received: by 2002:a05:6402:388e:b0:43a:d5ff:60f0 with SMTP id fd14-20020a056402388e00b0043ad5ff60f0mr41682144edb.152.1658218360084; Tue, 19 Jul 2022 01:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658218360; cv=none; d=google.com; s=arc-20160816; b=QjYlYHFCi+1OA7zocfuoqM4zRYuVtk/I0IvmjmhLqvsz0Xza6L+0llk3uqSMPqaeCQ w6H+7+ENDybi1vshSkAO2Wpz9dNRLPkkZC8SC5XGBM7xeEpYgyS1/KDR52ZLcrCsLco1 dikJKmgGhxvK1/zXnZuTumYLtvjBw0aMRPUa56Rz4821NZZy17LSnutsRoCXBKQKjPgs RgHW0dANIpE0MACeD4mVOcbZzB/Twjgm8WS28JLfy5Gw1m9lskBfqkDaYe+8DtjyVFNt fbKqfzNqxVBBMnJ4iwIVldwgRQyIJmsrswRFBbnP5jGC58jDA++DE6srZF+4SJnDqXt6 CKPw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=JBHb2biwwFMayhrdB6OSc8tC4kZPkSn0rj7yBO2VQpU=; b=U590PSiSRRL1Bd6myEzid1M024RU5QaprtMmIr0xlbj1Oq/XVOwrLsVGXSpb6rdfbL TMECpyjJ3BmxlLboSw/yrgf9/OhDKQh/fl3cmGAxqk3MPCKVact3Z9rHLP40pTfdBjQE 0gW2J3MO9+56n4V0S4hM6dNvdYqkZvKvarZ3FFq75VFDMI+BWVlEnLcWkU0WPOOZ079l rcAfcocTNeeu7o6jx1RqevISFiQgDmYF2zyHPE/j7utXIdnKb01nX5c4CsreR0EiNdk1 gKuhY3SX/SDH3E10Jr3hSEc/7fC5j+zW/2si2P/Y4osCPT5/cOWs6F+ggtnHceElRLiU X70A== 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 t15-20020a056402524f00b0043a7de4ac20si22423405edd.500.2022.07.19.01.12.14; Tue, 19 Jul 2022 01:12:40 -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 S233954AbiGSIHL (ORCPT + 99 others); Tue, 19 Jul 2022 04:07:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233381AbiGSIHK (ORCPT ); Tue, 19 Jul 2022 04:07:10 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFCB310FCA for ; Tue, 19 Jul 2022 01:07:09 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LnBFV5GXZzkXcb; Tue, 19 Jul 2022 16:04:46 +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; Tue, 19 Jul 2022 16:06:52 +0800 Message-ID: <0abd4d8a-86cf-3697-584e-bfd313107ef9@huawei.com> Date: Tue, 19 Jul 2022 16:06:52 +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 To: Eric Biggers CC: , , , "Jason A. Donenfeld" References: <13e1fa9d-4df8-1a99-ca22-d9d655f2d023@huawei.com> From: "Guozihua (Scott)" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.110.173] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) 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 > (I don't know why O_NONBLOCK stopped being recognized *before* the entropy pool > has been initialized; it's either an oversight, or it was decided it doesn't > matter. Probably the latter, since I can't think of a real use case for using > O_NONBLOCK on /dev/random.) Does this mean that we expect all users of /dev/random to block until it is initialized? -- Best GUO Zihua