Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3999393rwb; Tue, 6 Sep 2022 00:26:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR5R5cV9BiAYYqGBhdxOiML+vr2BuN/y4fl9/QufkuVFRIu6W5hTMvnfU3m5Uas7/0smBDgL X-Received: by 2002:a17:906:ef8b:b0:730:d348:61b9 with SMTP id ze11-20020a170906ef8b00b00730d34861b9mr38001909ejb.350.1662449193977; Tue, 06 Sep 2022 00:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662449193; cv=none; d=google.com; s=arc-20160816; b=WX4RMWchc9gq77BUaBY65j4NgGvPu+GTmJ4UzwJqapqqiMiamibzxF7TupWpjku04H Dh9aoyE57YI/WuYujQS0VCngxlBFCc53ZXgw67cnfo9pFafltKsEzoxLXbx/RT+SM7mn v/PTd5TTAeltDvd/g1V1WKSRIXX5o6inJI0If2U3wFaFFRTNHFdIIkU8I1WfeZ6woL9X 7830brI2NFjSm394+7+MV4eXonSvnl55iiiW+pd7/peG4ieg8Rem7iSz0/BRX1vdiArr R1D/PqJ5muU1Md8QQMHEpkaY2udQ8794Hd9/1ow1aoYyLtSINOPMLZW2PhC0pbSsgVkH uzPQ== 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=BJYdD6ZILd3JSja/lfwpvmRpb8e1YGoqGuS3/Pd4RZk=; b=HCsD2bK92lDRcf+VX0l8xrc1pdCsp2AtV2AUs+x5zLBEAW4qHkkaCeYNhCR4zkHgu7 KIoFt8FuGWi5XDJJ8zBlVYASsx953XYFvWhN8w02xVlDwvuWi5dwt5dc6woZdaB6ev0s OUcD1b8RXrs8kE9gZS6SKr4KlE3hU855GXRax3Unu5i8ddZYCm87qNZvF3ae/M7ucqry nucTnlZBcZbsUFn3o9mO3k//tqFztxm7HZAMpI5MGI0DbTQbGjKsKO728Gx/hDAhZJho M+9Szwxd8yqJN3CAxBViyZGQN5dLiyBSHcFqQaSyDOCfHXJ2/Tbv5rnJAcrwqSnIdnZb L40g== 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 dp22-20020a170906c15600b00731646a574esi557057ejc.839.2022.09.06.00.26.01; Tue, 06 Sep 2022 00:26:33 -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 S238278AbiIFHOa (ORCPT + 99 others); Tue, 6 Sep 2022 03:14:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238788AbiIFHO2 (ORCPT ); Tue, 6 Sep 2022 03:14:28 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C2A9279 for ; Tue, 6 Sep 2022 00:14:22 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MMGkZ4fYhzmV94; Tue, 6 Sep 2022 15:10: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, 6 Sep 2022 15:14:19 +0800 Message-ID: Date: Tue, 6 Sep 2022 15:14:19 +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> <761e849c-3b9d-418e-eb68-664f09b3c661@huawei.com> In-Reply-To: <761e849c-3b9d-418e-eb68-664f09b3c661@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.110.173] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500024.china.huawei.com (7.185.36.203) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 2022/7/28 16:24, 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? > Hi, Any comment on this? -- Best GUO Zihua