Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1887720rdb; Thu, 7 Dec 2023 11:23:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvSBFZtukL+o58RqZp3LY4G9lgKON6XMz+NrImdy6HalBgvRhAUmAGPawtnVWWNB9Qwo8e X-Received: by 2002:a17:903:2343:b0:1d0:4be4:8def with SMTP id c3-20020a170903234300b001d04be48defmr3829144plh.34.1701977021808; Thu, 07 Dec 2023 11:23:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701977021; cv=none; d=google.com; s=arc-20160816; b=MSgYSeb1/CxCtJY100L9UtHuGB0Sv6C5k4zL13+ZkY9Vshww9EwBFp58UkBs6lzkl3 XPqyiDqzS84Y5Q7I/oJJvuiL1kplWyV5g2+wM6B3o2f1KZBvAHPk0xZkFFfmccXFkrk7 udtZrTdj2XT3So9lGeB2xFnqrSJ7BnUpoV1E3ZBYGuEAnrQhvd7D/1FXzLcciT9UiOCb g6agB8edlrJDd3FTJMqPIyHc+CbZnxOQQiuDwaYmqfIU0lfE2DHFWPDGtr39ykAmEied fRDcDjLFNnDfxG7LT5IJ1B4eyiw8WNh8SQ6I5aXboiJWguMkg6QManTIymCJfem5S0OC m89A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NZ+8ezPbQjSy8qkpaP+VKDQL0kMRxX/mEiOPCBaaysE=; fh=crlFbqj8RAdEVAP2QZ2kIEJDc2dDdZNsafxvugjF3xA=; b=WX/TSrV6UES9W+AJ8O2HdxWJcltWAL3WBuKBPdb6HoAlCPNpY1ao4IWkx4B+ClXvKm 2hA0zwxWbRnaZAdnDyODV3drVeZav1UH70wLtDZwWsk9GpROYDIVYz7jxKl5uU767nIr 42zKrfnjiI2limd9uEw/J5IIYVPjBNBp/wjsGza03duvGpPJ6XVLYGuubiXGABg5JHhC x70JIEM8QWczu9chghzxLb78TCBh/J3gZpvMvFmGOtDPEDOXG/cOcYdZdHVIViAIB+J9 cGUMRP6pP/R0uJ8qsHFtdvT/5lxCon8+v516YrNPPGkeboByHBM1CxagTEjHtTuYsGCW 3N3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=nJRdrpHl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id t6-20020a170902b20600b001cdf0388455si212630plr.111.2023.12.07.11.23.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 11:23:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=nJRdrpHl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id F250C802788A; Thu, 7 Dec 2023 11:23:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232784AbjLGTXP (ORCPT + 99 others); Thu, 7 Dec 2023 14:23:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjLGTXO (ORCPT ); Thu, 7 Dec 2023 14:23:14 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7C6810DC; Thu, 7 Dec 2023 11:23:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1701976997; bh=6SYQxYyGrcDvx6IRN+6dIff5PVo7wQPuPHWX4hH6KZA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nJRdrpHl406V8Pqv+diMBiUkggs7GtUBNOx0+SSTMlNWhL6h7/9+XQ/o7Ul2ru7YQ 0TkWrmXbCwMT0a04wtzuExXuKNewvXrDMSts24ePrOt49uTn3dQ+Ap0nA1sV5cT09A BvZPUjsgDL//msyJBTFObJS3p7YQtjTXc7BaeONU= Date: Thu, 7 Dec 2023 20:23:16 +0100 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Joel Granados Cc: Luis Chamberlain , Kees Cook , "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> <20231207111957.b24ib4hcxr6xufll@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231207111957.b24ib4hcxr6xufll@localhost> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 07 Dec 2023 11:23:39 -0800 (PST) On 2023-12-07 12:19:57+0100, Joel Granados wrote: > On Tue, Dec 05, 2023 at 06:16:53PM +0100, Thomas Weißschuh wrote: > > Hi Luis, Joel, > > > > On 2023-12-05 09:04:08+0100, Thomas Weißschuh wrote: > > > On 2023-12-04 21:50:14-0800, Luis Chamberlain wrote: > > > > On Mon, Dec 04, 2023 at 08:52:13AM +0100, Thomas Weißschuh wrote: > > > > > Tested by booting and with the sysctl selftests on x86. > > > > > > > > Can I trouble you to rebase on sysctl-next? > > > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/log/?h=sysctl-next > > > > > > Will do. > > > > The rebased series is now available at > > https://git.sr.ht/~t-8ch/linux b4/const-sysctl > > > > Nothing much has changed in contrast to v2. > > The only functional change so far is the initialization of > > ctl_table_header::type in init_header(). > > > > I'll wait for Joels and maybe some more reviews before resending it. > > > > > [..] > > > > For the future I think it would make sense to combine the tree-wide constification > > of the structs with the removal of the sentinel values. > I don't see how these two would fit. And this is why: > 1. The "remove sentinel" stuff is almost done. With the sets going into > 6.7 we would only be missing everything under net/*. So you would not > be able to combine them (except for the net stuff) > 2. The motivation for the two sets is differnt. This would confuse > rather than simplify the process. > 3. In order to introduce the const stuff we would have to go through > another round of "convincing" which can potentially derail the > "remove sentinel" stuff. Good reasons, especially 1). > I would *not* like to combine them. I think the const set can stand on > its own. It was more about a process optimization. If somebody has to touch each sysctl table anyway and test the changes, doing so for both series would be easier for the sysctl and subsystem maintainers. But alas, it seems I have to do it myself and can't heap it onto your pile :-) > > > > This would reduce the impacts of the maintainers.