Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1328055rwb; Wed, 14 Dec 2022 08:57:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf51d0s+cqLpK6V0FD0zo3Iy3hti325xilXfE3Ymkgb8PKsVVfhJuG+euQ2QhNFlSQs+8RVm X-Received: by 2002:a17:906:4c98:b0:7ad:b14f:dea4 with SMTP id q24-20020a1709064c9800b007adb14fdea4mr21364478eju.14.1671037029829; Wed, 14 Dec 2022 08:57:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671037029; cv=none; d=google.com; s=arc-20160816; b=O1S/X+QDEqv2MCr2x/bBjdpP6P3AxfaC5T4AFj2WdU1yLJ7hkVw9GIodQlQh1Vt/Ma SomS6cnO8ZOU+NHb6W8UM2Vwecsemi/zDQ+/Ivq4+3sEcgQo7UpolOipel8EgAt5pAER qIYuGWKGPT0DJyBIJ5W4Kx9ZPtTwWb1ABJa0zDr6ZfwVLm1hBr+AQ+8WKDVPtjEaqVbi 1wLwjf3O0dTBmMb42Zrm6WrgWvqK9OnC9L44fG0BD8H0UvVMK6Hr43sawaety/j+f4W7 FJdUH3ytVJyzB+4mtPF15xQk+2ruYvl5lAETvDTAqhhtizU0CwYomFz/cb9iKPoBN8f3 PK8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=SNwsoTEw6w5KNGO9hLlhSm+YSawuliIutMAa+xnFn8k=; b=csLSGRRJJU/0I4oaabz6mjigGAW9GCsfGdA8VXHdRvkOCfPQNm8832d74U/nEWSkjA l+fcdPsvl+C+sG6wNRnt2MZjdEquYaqZNXWJHsSUbvJYkQ2asx6U8OTR3LH3uKRYjTdq R/yUi/qyVP82bgSt/7CMKMP0eHotBKczMmlnQk7axOZglRlQT2dF4hSRVxeCUx30AXKP a1k3JP+jBoMhx7NyVqUkETFO6FmFHbjUC71zz3lkYhFTDPc34VrwCTXICz1Xqm7UTspr 8d1ehqTfUb68y/tIA3cyiH+QBq2WdmRZiNVlJZmZ9Ijfy2YqVGJq2xlVFCzJasQzdmK8 wYRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="h6PL/+6d"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hx9-20020a170906846900b007ab1b8b71a6si9281739ejc.40.2022.12.14.08.56.53; Wed, 14 Dec 2022 08:57:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@intel.com header.s=Intel header.b="h6PL/+6d"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238823AbiLNP4b (ORCPT + 69 others); Wed, 14 Dec 2022 10:56:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238855AbiLNP4A (ORCPT ); Wed, 14 Dec 2022 10:56:00 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65A232314C; Wed, 14 Dec 2022 07:53:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671033239; x=1702569239; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=12BnbcHagZMkwl9OeOA4D0nsPFyieVD2ck3mCiVJ72w=; b=h6PL/+6dLs5+Gpxr8c4tc3r5F+WFquxrdMSSjYsVOxpbOqewub25mPz4 ThkkUdN9OXqFnDVHZWoHRdQNEdhhsF9bnReRYZWQbMdfCScad2wAzL4J0 n9HIlh6AWB4jHw/jgGWAjcfHJroVQw0d8Lxr/fwblhGmYdyS8FuJ9LN0X YNMydrEuYPt0/i9HXFYVJaHABUIqj9X1qKiPqKa6TqSJVmB5+bCnzlEO8 QQgNmgP1OFPS2pRzJJ5i0eLwzRsi5Qg7xGwdvBUF1aq7ngoCAmgXBnzyW p0xDGittwLVbFQ9f26qRKaZaj6Hb3WfSnVTi7d9P3mPVrdVynHCauYS5h A==; X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="382739966" X-IronPort-AV: E=Sophos;i="5.96,244,1665471600"; d="scan'208";a="382739966" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2022 07:53:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="642545781" X-IronPort-AV: E=Sophos;i="5.96,244,1665471600"; d="scan'208";a="642545781" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga007.jf.intel.com with ESMTP; 14 Dec 2022 07:53:54 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1p5U4u-009sxL-0B; Wed, 14 Dec 2022 17:53:52 +0200 Date: Wed, 14 Dec 2022 17:53:51 +0200 From: Andy Shevchenko To: Eric Dumazet Cc: Stanislaw Gruszka , david.keisarschm@mail.huji.ac.il, dri-devel@lists.freedesktop.org, linux-mtd@lists.infradead.org, linux-scsi@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/5] Renaming weak prng invocations - prandom_bytes_state, prandom_u32_state Message-ID: References: <20221214123358.GA1062210@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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-kernel@vger.kernel.org On Wed, Dec 14, 2022 at 04:15:49PM +0100, Eric Dumazet wrote: > On Wed, Dec 14, 2022 at 1:34 PM Stanislaw Gruszka > wrote: > > On Mon, Dec 12, 2022 at 03:35:20PM +0100, Jason A. Donenfeld wrote: > > > Please CC me on future revisions. > > > > > > As of 6.2, the prandom namespace is *only* for predictable randomness. > > > There's no need to rename anything. So nack on this patch 1/5. > > > > It is not obvious (for casual developers like me) that p in prandom > > stands for predictable. Some renaming would be useful IMHO. > > Renaming makes backports more complicated, because stable teams will > have to 'undo' name changes. > Stable teams are already overwhelmed by the amount of backports, and > silly merge conflicts. > > Take another example : > > u64 timecounter_read(struct timecounter *tc) > > You would think this function would read the timecounter, right ? > > Well, it _updates_ many fields from @tc, so a 'better name' would also > be useful. Right, at some point we become into the world of #define true 0 because... (read below) > linux kernel is not for casual readers. P.S. I believe you applied a common sense and in some cases the renames are necessary. -- With Best Regards, Andy Shevchenko