Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp25896imn; Wed, 3 Aug 2022 18:02:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR5DqTf0kCVSqVC7KIL9vo30YYS91yi++PDbWGCj/+VCFqPyZjBSMfJKej+v8JsR/cIM7fx1 X-Received: by 2002:a05:6402:524a:b0:43d:aa71:33d8 with SMTP id t10-20020a056402524a00b0043daa7133d8mr16891024edd.33.1659574934816; Wed, 03 Aug 2022 18:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659574934; cv=none; d=google.com; s=arc-20160816; b=0OufXAO05cAM8oMuRI4ZH/dPjKOLc1wJwbOu2lQU0SaJtGYOQY/lJtBUUIiZcZHGjA bIRKo8mIPNQGrndNw/8MoFrwUBhmbTpukjD4sLoiDpU1YQKlQJjwe9UKEIT/2IvFVDhU cppBR1G/bOTk7LyIsx/2nV35iTXJe7ks00zrLhrIE+Bte9wUqBqbVUl3YxV5Tg2SY8G6 WaQRp8UJ2b0J4EXbZ2f4Y41/BE46caXCfpsTdnnc8afKyObaQzoTpEvk5XlvUJRjL+sb MVGW0p8CyLCSTny9VpsVYHmkX4RXHwFLmH+LyjOaEq+1SxImOzBibSKGU6P0nT7y5wnE o5HA== 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; bh=ldvhGcbXnUyfqOK5We4Csz43q/h2ZLH0OnRato1UcVo=; b=nV13YtesehsFzx6drEnSLCxD7OPsTLY9uzEX81Z1DMFWpOm03Baac/P0WBXB8XCOJW i16KnUgObmmdACsWQxom6gvv+aNRZUQtw8sOqrFeUbCii6vHrpbSSB1LTQdVFlOnb/3I FuM4r4MZYekwEuKCeDFyt/qf7n0bcLqKv9oQyCDufBoMjIhagbdDrLJDDixwl5R2smHh ya+ra8XeQVkDfSQG6H8wVCKooGXHlYJoOejuXd+ooFUSOSUZBSLcsCSWlm2ZHS2+TvcM 4vmd0XwKTuil+8iKVaGmuk+RT6poSpMyEA/qlmw+Iv1I6P70NkZoeqBjnvRN8c4JCY8h D5uQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a05640211c600b0043e39c683f9si4196674edw.556.2022.08.03.18.01.23; Wed, 03 Aug 2022 18:02:14 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238676AbiHDAjW (ORCPT + 99 others); Wed, 3 Aug 2022 20:39:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237351AbiHDAjV (ORCPT ); Wed, 3 Aug 2022 20:39:21 -0400 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E5DED5018F; Wed, 3 Aug 2022 17:39:19 -0700 (PDT) Date: Thu, 4 Aug 2022 02:39:15 +0200 From: Pablo Neira Ayuso To: Linus Torvalds Cc: Paolo Abeni , Vlad Buslov , Oz Shlomo , kuba@kernel.org, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [GIT PULL] Networking for 6.0 Message-ID: References: <20220803101438.24327-1-pabeni@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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-kernel@vger.kernel.org On Wed, Aug 03, 2022 at 05:27:07PM -0700, Linus Torvalds wrote: > On Wed, Aug 3, 2022 at 5:11 PM Pablo Neira Ayuso wrote: > > > > For these two questions, this new Kconfig toggle was copied from: > > > > config NF_CONNTRACK_PROCFS > > bool "Supply CT list in procfs (OBSOLETE)" > > default y > > depends on PROC_FS > > > > which is under: > > > > if NF_CONNTRACK > > > > but the copy and paste was missing this. > > Note that there's two problems with that > > (1) the NF_CONNTRACK_PROCFS thing is 'default y' because it *USED* to > be unconditional, and was split up as a config option back in 2011. > > See commit 54b07dca6855 ("netfilter: provide config option to disable > ancient procfs parts"). > > IOW, that NF_CONNTRACK_PROCFS exists and defaults to on, not because > people added new code and wanted to make it default, but because the > code used to always be enabled if NF_CONNTRACK was enabled, and people > wanted the option to *disable* it. > > That's when you do 'default y' - you take existing code that didn't > originally have a question at all, and you make it optional. Then you > use 'default y' so that people who used it don't get screwed in the > process. > > (2) it didn't do the proper conditional on the feature it depended on. > > So let's not do copy-and-paste programming. The old Kconfig snippet > had completely different rules, had completely different history, and > completely different default values as a result. > > I realize that it's very easy to think of Kconfig as some > not-very-important detail to just hook things up. But because it's > front-facing to users, I do want people to think about it more than > perhaps people otherwise would. Agreed, it was a bad a idea to copy and paste it from NF_CONNTRACK_PROCFS, this new toggle has nothing to do with it. I'll take a closer look at any new Kconfig toggle coming in the future to avoid issues like this. Thanks for reviewing.