Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1369748rwb; Wed, 16 Nov 2022 16:44:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6L+TEFGPiEl3epTyfOptIsZboocPbaNxVgVwTMgScIK6qwImQ1YM1OOGCx8Z/8RKqpq2Yz X-Received: by 2002:a17:903:24a:b0:177:faf5:58c5 with SMTP id j10-20020a170903024a00b00177faf558c5mr252928plh.166.1668645884559; Wed, 16 Nov 2022 16:44:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668645884; cv=none; d=google.com; s=arc-20160816; b=NSKVoIC/qutEmsNP0ghv47HVKDlAzEKTD+1dnIl+66Y3EhdaE5dV6xvpUglvA0o/Np d7vg05S3qUlrjTogNrPhOgbCm6POFkQJOb0pc7CZ24QORp8N3Zgb4crcCLUnUTqwlXXH a7hMLQvZNe1K05QlNXlNz9qmVgPY+acdAzXeQf31fbFcsip9aLRpG0VR+YY6NCl08czZ +6y30bF/XHyTaQSvKIXC2TLfiVhViv7J3InQRKVAiV2aa9unw8Aq57oUUd3muZcNDbLA +AIQeNJPaR7UD1crqQel6bD5/jizfRVRnTcJbE7wp/RGyNn3q4QfDHiRX3x0hhWX/OOE zMSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=o11kryBEJKQUBcciv1YGNpGcl9GzU1jQr08TEiO/WZo=; b=LSzdLVOWLh/zcznxukv9PeFmhHyGh6x+KeXpPkX8WSAPRgyUi3Vzy2AJHY428uBlN/ bBHu0x/oLwn2KU21Mu8JWAV/BC/IUoz2Uoe03w4yxSE/+pHAp1Rl/yoAM9Aq7bSci8xc eGD5SGyTk2vQchCipUL9Yg8MeTY8/4Xev4nZAgVfOufxUBS3CUZkwr6q92Ddb4bVbPXz kIO4INOElVVFzmiZ3JGMcfGENLuPyvXIA50hX0jgCyjMA6Ji5M6xbU3/vpQkA/Vaykfu ow27h1sy7OBNf+7MNqaxS+BSsEZ5QzlTkcarHyqu1AQfzJgdVzQCUYuXN6CsUefAhWSA lLHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=N4yvuS4q; 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 b15-20020a170902b60f00b001768a29b9dfsi15215073pls.68.2022.11.16.16.44.29; Wed, 16 Nov 2022 16:44:44 -0800 (PST) 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=N4yvuS4q; 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 S234101AbiKQAoR (ORCPT + 99 others); Wed, 16 Nov 2022 19:44:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233963AbiKQAoQ (ORCPT ); Wed, 16 Nov 2022 19:44:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1C802B622; Wed, 16 Nov 2022 16:44:08 -0800 (PST) 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 71B77B81F6A; Thu, 17 Nov 2022 00:44:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D214C433C1; Thu, 17 Nov 2022 00:44:01 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="N4yvuS4q" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1668645839; 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=o11kryBEJKQUBcciv1YGNpGcl9GzU1jQr08TEiO/WZo=; b=N4yvuS4qyMfxtARqyPHRBhk1SEXxz/3WJew88lI6NMO4+fa/MCaJBZuB/2QrKCXtuhKI0R o+j7S1e3eQB22ynfMfsCp3AmUWUXzjYsWW7wUl/69cBI5Z/naX7VjRMFejW8Owc2sNFQI3 bMKj7v4gh+/iKlR/7cv7MrrI9ssFAS8= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 39d4929e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 17 Nov 2022 00:43:58 +0000 (UTC) Date: Thu, 17 Nov 2022 01:43:54 +0100 From: "Jason A. Donenfeld" To: Kees Cook Cc: linux-kernel@vger.kernel.org, patches@lists.linux.dev, Greg Kroah-Hartman , Jakub Kicinski , Russell King , Catalin Marinas , Thomas Bogendoerfer , Heiko Carstens , Herbert Xu , Christoph =?utf-8?Q?B=C3=B6hmwalder?= , Jani Nikula , Jason Gunthorpe , Sakari Ailus , "Martin K . Petersen" , Theodore Ts'o , Andreas Dilger , Jaegeuk Kim , Richard Weinberger , "Darrick J . Wong" , SeongJae Park , Thomas Gleixner , Andrew Morton , Michael Ellerman , Helge Deller , netdev@vger.kernel.org, linux-crypto@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mmc@vger.kernel.org, linux-parisc@vger.kernel.org, ydroneaud@opteya.com Subject: Re: [PATCH v2 3/3] treewide: use get_random_u32_between() when possible Message-ID: References: <20221114164558.1180362-1-Jason@zx2c4.com> <20221114164558.1180362-4-Jason@zx2c4.com> <202211161436.A45AD719A@keescook> <202211161628.164F47F@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <202211161628.164F47F@keescook> 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 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 Wed, Nov 16, 2022 at 04:31:18PM -0800, Kees Cook wrote: > On Thu, Nov 17, 2022 at 01:03:14AM +0100, Jason A. Donenfeld wrote: > > On Thu, Nov 17, 2022 at 12:55:47AM +0100, Jason A. Donenfeld wrote: > > > 2) What to call it: > > > - between I still like, because it mirrors "I'm thinking of a number > > > between 1 and 10 and..." that everybody knows, > > > - inclusive I guess works, but it's not a preposition, > > > - bikeshed color #3? > > > > - between > > - ranged > > - spanning > > > > https://www.thefreedictionary.com/List-of-prepositions.htm > > - amid > > > > Sigh, names. > > I think "inclusive" is best. I find it not very descriptive of what the function does. Is there one you like second best? Or are you convinced they're all much much much worse than "inclusive" that they shouldn't be considered? Jason