Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5157434rdb; Tue, 12 Dec 2023 23:51:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQ3SaiivEvdNcdrs5ky7qECWaEXvKjuh+MDQaCnAnR+U85MBG/aKX8Zad0EJ534/1/m9it X-Received: by 2002:a05:6a00:a85:b0:6ce:748e:d0d0 with SMTP id b5-20020a056a000a8500b006ce748ed0d0mr4311898pfl.52.1702453909838; Tue, 12 Dec 2023 23:51:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702453909; cv=none; d=google.com; s=arc-20160816; b=Esw5LI1TWDjfejzzOpDCIg0WHy7JaWPeb0DVr074dyosMVyr1aNSVAONFm5cjOUXlY bT8mmrUguvztJq2x85heBlxMHGaCqAvAuuDUScl3fy4/SbB0HsA6zWtYv9wE6OHJ0wRx 14bqrWpqw7Cvips5bP3XGuM7UWdszxf2JQ+S8djF91zym9RGH2iS5i1CEjsec4j6dBOa 25ZGl0CQS5Tdzp8lS5EDhjgIgY3dxMa6Zhh5CvZU+tUE84V4nmKGvry5/mWTzvKUY85v MpU4B8UZEvuuZ3IK9hKMR2H2onH9O/QAOJNUMO0ZjXCmJtj9PwtB8koWKIzZbxPOvsX4 OCkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yTukDIvPvseoy1hNbDDGgwwb3/RxkKSXoPYCWaH//5k=; fh=EH4Td2wqwmNnu5U8E03iSHuLcsR/LzloLMty02gcaAM=; b=JlYAyfXAC/g+M+1fAanRt0bjdaGX5jdzSKzLwUqvSRPLwGL8zLXc7RsyaZr/X9f7nS 8fvpDTI9/9MZA3gn+VUT1Xk/c2ctXVFmIx8Y5k8jW/c22V96878iE2l61hRb1O9UfE4L fL+Mr+APOpncw0jxvk7XIrE9ex9MS3oKMLhYRRX7452Yqw0Xzlv/PO+TsK1WrGvwvHeS 4IGUi7KHFhoAdkFRDmYjzc9JplXT3DU4w77B938O7a60Qv0YeYxodSB8l2p3wh0PP2Ax BWI5yFTTmhgX4ecXL1CZvtFHltdJOtBv1chq7ZTkZlZn+wIpk6GO4UPPR7nijf58MPFK IUSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=dOw65wL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x34-20020a631722000000b005b9a4673310si9035495pgl.326.2023.12.12.23.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 23:51:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=dOw65wL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 1584E80B0288; Tue, 12 Dec 2023 23:51:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378721AbjLMHvc (ORCPT + 99 others); Wed, 13 Dec 2023 02:51:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378554AbjLMHva (ORCPT ); Wed, 13 Dec 2023 02:51:30 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68C84BD; Tue, 12 Dec 2023 23:51:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description; bh=yTukDIvPvseoy1hNbDDGgwwb3/RxkKSXoPYCWaH//5k=; b=dOw65wL1I3pJFA5OkCVW55giVL jJOalIrBc4j5r5LTdtvyxA1zUhkCTVINrUqDH91ldAoL5//nxZU6VM6LJDAHN+y+04ahad3r6/7Yt DEQIDRkPkYN+kmbw6X2G+ZSVBc39WtgYe+rCMFFt6P9w8Inp3lDn8SSU1hIFnrcn+RwKzOlIUQMNP mN69RIlgKuKQzEI6IkWrsjn2oYkIsOcLAQeMo46wLMFqi0XRJFNiVgkPqEib7Nhgr8OGCQTJXqsJG l6xc1q3tNol6mXgirY7wtWqmBT69VNPXFz108aP/W+EQpl+jM1nykC/2BzDh9FJ1OHjmAoU6xeY31 lC0TRIqw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1rDK1i-00DxGw-2a; Wed, 13 Dec 2023 07:51:30 +0000 Date: Tue, 12 Dec 2023 23:51:30 -0800 From: Luis Chamberlain To: Joel Granados , Dan Carpenter , Julia Lawall , Kees Cook Cc: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , "Gustavo A. R. Silva" , Iurii Zaikin , Greg Kroah-Hartman , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 00/18] sysctl: constify sysctl ctl_tables Message-ID: References: <20231204-const-sysctl-v2-0-7a5060b11447@weissschuh.net> <20231207104357.kndqvzkhxqkwkkjo@localhost> <20231208095926.aavsjrtqbb5rygmb@localhost> <8509a36b-ac23-4fcd-b797-f8915662d5e1@t-8ch.de> <20231212090930.y4omk62wenxgo5by@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20231212090930.y4omk62wenxgo5by@localhost> Sender: Luis Chamberlain X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 12 Dec 2023 23:51:47 -0800 (PST) On Tue, Dec 12, 2023 at 10:09:30AM +0100, Joel Granados wrote: > My idea was to do something similar to your originl RFC, where you have > an temporary proc_handler something like proc_hdlr_const (we would need > to work on the name) and move each subsystem to the new handler while > the others stay with the non-const one. At the end, the old proc_handler > function name would disapear and would be completely replaced by the new > proc_hdlr_const. >=20 > This is of course extra work and might not be worth it if you don't get > negative feedback related to tree-wide changes. Therefore I stick to my > previous suggestion. Send the big tree-wide patches and only explore > this option if someone screams. I think we can do better, can't we just increase confidence in that we don't *need* muttable ctl_cables with something like smatch or coccinelle so that we can just make them const? Seems like a noble endeavor for us to generalize. Then we just breeze through by first fixing those that *are* using mutable tables by having it just de-register and then re-register new tables if they need to be changed, and then a new series is sent once we fix all those muttable tables. Luis