Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp253733imw; Thu, 14 Jul 2022 00:44:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vQkCK+pkcfbeimCRsQ61Cv4N4RKwXFbq8tQhTz90vmaMC2FwR0O4fiWwA5qL3abJulS7zq X-Received: by 2002:a17:907:7256:b0:722:e5a8:e3a3 with SMTP id ds22-20020a170907725600b00722e5a8e3a3mr7461115ejc.599.1657784698838; Thu, 14 Jul 2022 00:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657784698; cv=none; d=google.com; s=arc-20160816; b=w6ByaGHHx08/uq7lS6eKdkZ0RxDxp+arE9Dd+jtWoLyUOs+jVRHjrGwtWBSRb0doEg ntEdIeIlKMbqX9fmMHcmsCKUtrm+bcjcpqV9eenLqUzWBeugGciIRFZ3qogjjVkypfLs grDRQozDKj2yu/77QfDLgM0aYoqyt3IEpsJll0DuKtDrRjkeRYcHU9gp3+14F/ZZPJUT 9whQ9Qjt1kAOlhOjWRJXO/1awRamC+ICQ/MKQQ5Skf11KjgjIiMoAQHLxNdS1rjs8T8X u82qQPuTwOW5q/5KaKmBPqXBQDMP101WdMn7y8UWsNgMjNd91/7uXSg64UaOlKuMrz5N 9JUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:subject:from:to :content-language:user-agent:mime-version:date:message-id; bh=bokL1ANkPAt6nBN0rzC/9CeFEfSHvYPYAFeCONqReQg=; b=LGXr0A4MSL9psw5ykpofc4sOcmm+aEXWyKWCXtdgATgQnub7ZMSJ3kdZBhmMbkUgr7 2PKDR+BW0k5LKboFESpjnFLGcaf02CofGlxt1ALvhxf6FA9cuR2DlgeFrfZe7/9GVwlQ eXy9z3WOVvwg1XjtiWp8WkvYMwBlB5oz8u8QOg5JE35XRoaIO0Mei0koSmbecuPC1N8V xaLm2LMxTnV7pQ/LAVJUzkZ4bz4lZX6JbBGm2p4dTZpwvy1xqvJZ65/7kf+A9jUMf9Py eyEyJuPmtKotgWTHRikZDOE//cgEj+d/LGJt0w6cYeVA9AdbNH53Bvu1BJ1JZd+dtlm6 YfJA== 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 y65-20020a50bb47000000b0043a7264df4asi1221062ede.265.2022.07.14.00.44.18; Thu, 14 Jul 2022 00:44:58 -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 S229990AbiGNHec (ORCPT + 99 others); Thu, 14 Jul 2022 03:34:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229713AbiGNHeb (ORCPT ); Thu, 14 Jul 2022 03:34:31 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86076BE0F for ; Thu, 14 Jul 2022 00:34:29 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Lk5mG0R5yzkWvp; Thu, 14 Jul 2022 15:32:14 +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, 14 Jul 2022 15:33:58 +0800 Message-ID: <13e1fa9d-4df8-1a99-ca22-d9d655f2d023@huawei.com> Date: Thu, 14 Jul 2022 15:33:47 +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 Content-Language: en-US To: From: "Guozihua (Scott)" Subject: Inquiry about the removal of flag O_NONBLOCK on /dev/random CC: , 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,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 Hi Community, Recently we noticed the removal of flag O_NONBLOCK on /dev/random by commit 30c08efec888 ("random: make /dev/random be almost like /dev/urandom"), it seems that some of the open_source packages e.g. random_get_fd() of util-linux and __getrandom() of glibc. The man page for random() is not updated either. Would anyone please kindly provide some background knowledge of this flag and it's removal? Thanks! -- Best GUO Zihua