Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4146693rwb; Tue, 6 Sep 2022 03:21:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR5SAejOzXKvWnfjTTjH+ukEsD3T1NI2atYdv8GWk9WNM94XBtpNAVAz+jbhsVXAxDaZXpQz X-Received: by 2002:a17:90a:7088:b0:200:4e9f:a206 with SMTP id g8-20020a17090a708800b002004e9fa206mr11564126pjk.173.1662459685761; Tue, 06 Sep 2022 03:21:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662459685; cv=none; d=google.com; s=arc-20160816; b=UeygaWM2QYuEG2zy2Ll5hVbvoNDJdBufcg4tUOWflXmr1cZ88Q8x40jsJWoUlSkVN0 fqpNaVetAaMBZJCDAZfW2ASRsMqWVjsGoSZDR7dkGbQP2F9ae9RYXWUK4svI5vTc7Kcq pDbC9BzcNoUQlORCz3I2fjTgwqia/iRdM8VKx8EKdS6YeC5py/81VWDVpXZocQ/h3cIM MHfJaEpmzCI4oq4N4esmM0ZM6EU3NF48f5iu5hoo1dYS7hwxyx7L1V404CFiFClXACgy gp+HXbEPrA5SthvDHCH4ugWO3rYBo1OPlr/Z4IHb6EivBozfZAm9fpWTyBn+uQiJ1hpi TzpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eHVUWtQk9RffrDk2YTOoYnHBvKTAStl/d5Z+VJs6vYI=; b=vRTNKRHETYanK57h3QoQCWDa4RBZr6s9CLEs5tSgCDCapr1rR0x1nqQr1nx08Ejzj7 bOXWliweHZ5dq3yBWTn5thdA5HaNTP3q5I80gjA25kbFdJFzGGlhw/FOCw0SnH8wN9S+ 4h8gzl2f8PDNqT/j9e2jddtswCFkv0+afYlnZWZQN8yzBJNJH1MsQLCM/+e6OYJzZRgY kBaEQUDR0uforeC+mMwI+opH/Zan+xeqCoZ4vSje6HHNZcKNHz09bcRfps+ZzFhWOa2N prNcg5gslpTmXG6OfEz5Ye3yD4ULlPSP8qShPk5Adh79r/4gSeekLYXBR+XK1xnkfaHY jGIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=ezp2eceY; 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 w6-20020a170902904600b001769a1f7b2esi7469734plz.360.2022.09.06.03.21.05; Tue, 06 Sep 2022 03:21:25 -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=ezp2eceY; 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 S239096AbiIFKRQ (ORCPT + 99 others); Tue, 6 Sep 2022 06:17:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238753AbiIFKRP (ORCPT ); Tue, 6 Sep 2022 06:17:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AFBD2BB14 for ; Tue, 6 Sep 2022 03:17:14 -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 ams.source.kernel.org (Postfix) with ESMTPS id 1F279B816E9 for ; Tue, 6 Sep 2022 10:17:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CD3BC433B5 for ; Tue, 6 Sep 2022 10:17:11 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="ezp2eceY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1662459428; 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=eHVUWtQk9RffrDk2YTOoYnHBvKTAStl/d5Z+VJs6vYI=; b=ezp2eceYaZSehIns26h+Mie5sxUAM3eH7dFse+Ik0FOLV8D19StglOJtJTWLXemRNbCbwX TnOgn7OoeiK3rjFaVc879zT7z4s64dKzJrLsMSC4ghZo3H7T7WV0HMZiLCeQqkB9NNAiIS Tyjj7odfwVxRJy3ducMx5pEJWyRjkeg= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 03b9887e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 6 Sep 2022 10:17:08 +0000 (UTC) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-344fc86d87cso77055827b3.3 for ; Tue, 06 Sep 2022 03:17:08 -0700 (PDT) X-Gm-Message-State: ACgBeo1h7NJiG24raoFjQ/8AI+wTfCnKvphbyx+Jaq9KMCkAPesWturx a2wLz0j1g7Q8wgrtMEN4sGZPsipnAfasW2cxDbE= X-Received: by 2002:a81:a093:0:b0:345:c52:945c with SMTP id x141-20020a81a093000000b003450c52945cmr12335653ywg.341.1662459427131; Tue, 06 Sep 2022 03:17:07 -0700 (PDT) MIME-Version: 1.0 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> From: "Jason A. Donenfeld" Date: Tue, 6 Sep 2022 12:16:56 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Inquiry about the removal of flag O_NONBLOCK on /dev/random To: "Guozihua (Scott)" Cc: Eric Biggers , Linux Crypto Mailing List , Andrew Lutomirski , "Theodore Ts'o" , zhongguohua Content-Type: text/plain; charset="UTF-8" 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 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? Jason