Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp436576rdb; Tue, 5 Dec 2023 09:19:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZ48AmEgoP4uyUus/wyb0mtud7pFh8r7Wt6nVJLHUyb2NNM/uMiakVAvqtjphn1tGQ89AO X-Received: by 2002:a17:902:db09:b0:1d0:6ffd:6e54 with SMTP id m9-20020a170902db0900b001d06ffd6e54mr3575916plx.76.1701796762862; Tue, 05 Dec 2023 09:19:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701796762; cv=none; d=google.com; s=arc-20160816; b=N47pixurNNh70/f6QVQ2L9WmSoe8J4zWezv87fcD4O6vi/xPzRsdMU7VNvzcyWw4J/ jX6p4iYmP1qgqN4L4o38K+LrmkuD9CE/tLqv6gBd8FpWv+ZxC9wrJ0tRzmmVqtwuGW11 Nd/ruCFRjafo3vK8rabyQsm5RaBHvcW2m/64tjT2nFmrzdX5gOx2ETYLAPBwdIjMtIhm vbDD/aHVBL3K9kBRxrgqDJZZ6ldHJbzV3Hsd2lRdBI99LGzLRrIYcHpvEKnXoZk97zgi G6C/yebAYjYc/y/l7ZEkq12QFJf+mDTS4c0DKzdcgEu4pSNMS0LxEN248HaB1jVANpD8 zzxw== 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=6UfLnsOa5+kHOAHP79NWqmALCT9orTfvbeyyuWpBWQA=; fh=dnD8yihI3Gd3Ow8q6Tte1b/lUdFEP6y+GK6HWC1bCgk=; b=OfxNn5HgmpQbR8RN/F2nvgFEjqTBaXR/AWYGdWev5wojjsDGuqcVfMTF9D50AQMxhm 4BmSoN7knzQI7mvT4kygElZeiU3YVTubAEuV2PATE7JoJRaDLPybMbyCABX/9ok4D5hP rNMebTeUBSuQ+tZ2oi8T44qKDpE3gMb8YBgSNJEHixpJ9dH+eAbR6KicpMUwbUYpJB5j Ecqj0YiiAAMp26e1CMavG0NBWzhCI+XM7hd8kr7kIKVed/ueFULDyD7QpULnKCUUWSyh iLnrC4mZJuh6u6A+ndKI8KMV/V9LuEQEsczon4GSAcx0OxY8f5swAlpmrldH0uKM7Kk/ eE9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=WC7mZ97G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i9-20020a17090332c900b001cfb22b0e1csi4281209plr.258.2023.12.05.09.19.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 09:19:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=WC7mZ97G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 82C488092213; Tue, 5 Dec 2023 09:17:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345220AbjLERQv (ORCPT + 99 others); Tue, 5 Dec 2023 12:16:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345984AbjLERQu (ORCPT ); Tue, 5 Dec 2023 12:16:50 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 408491B6; Tue, 5 Dec 2023 09:16:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1701796614; bh=KWkP8n96GGXrhKo85Rj+ALey16KlZtODcw3/5xOWFUI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WC7mZ97GSAfwxIHjGKbWqUNzqRKjIzPKv4na8of1+OwLef5DrPCxhT+cUnDu6POxt yJ67y2cWp9Z3RouyCc8hqX9EIgUPCF0RA41Sks/2Psj0iqfB1SACIzzM2rsPQ7EWnW jWIiuWwR/Ud/4YsEqJUbAKEC3hNmnL1nhhqz4nac= Date: Tue, 5 Dec 2023 18:16:53 +0100 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Luis Chamberlain , Joel Granados Cc: Kees Cook , "Gustavo A. R. Silva" , Iurii Zaikin , Greg Kroah-Hartman , Joel Granados , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 05 Dec 2023 09:17:03 -0800 (PST) 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. This would reduce the impacts of the maintainers. Thomas