Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp602633rdb; Tue, 5 Dec 2023 14:27:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHi5VD2zhUDLE65FrCmQ6hdSOSb2Xc4tSS56pOPWyCvGVIJ2l/jHwlkkkCU6I/92AMQY38I X-Received: by 2002:a05:6359:6c0b:b0:170:17eb:3797 with SMTP id tc11-20020a0563596c0b00b0017017eb3797mr3212rwb.63.1701815239512; Tue, 05 Dec 2023 14:27:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701815239; cv=none; d=google.com; s=arc-20160816; b=aMKyuXDlQplURfr830ZrKyfxzu0dWL+6R0pqVuQQMJ8TKj1B76ES6tzGRjBfhqvUEB lgsZOMHU6KPzRV0H7UNcH8Ok4aRms0l+M5Gr/W55hohfQ36zJzBWWKA8TD4C9KEGp8LB 1Q0AfGc7Jhb/jSyBxCNzfCdG3GcvuIwDOYV9dZzMvN8QCjgphug8DAVj+e/IyEaszmM7 6y+8N2VK9V7eNKAjtGaBXBgBEa2tEJkrX9WjXzbeylqiUprCx1hQgcKtjxGfVaBbvqNN 0e9YCxEylrQAvTtxh35ZezsjUC3MBRIu02qqiU9WPgagJb8lw8//CEsmRgCABJfFEpXB k/sA== 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=E7AglM1sNrEzVXvgP3Pr0r6mYMdRh2+F/SBHIShk58c=; fh=/oRLefGN/CbkkfpUj087YLObFgMgahngN702Zflhs7I=; b=bYmMyEOIhA4sYz+9bU5SfyfTrCOknTJNlTsJM3RjzQDAMMmUESFoxUpkCtfcb/1oYa nWdDuHXIGl6uAuFodzij6vwORFV/MP0VFK9xi1eDfTGhcACONQiVSre29WZpX6uZFHjb BQRzJBE6LJ+ZpxG+ifsdVncccbV3i6Zae+3dIev9oiAo36SSMyHJSbXr4rGXIJhREXXa fKkudljn1ZhdDZVdgpvR6K0GoBkBfMznMPKSiPSXylR5pWh+rs9XMBfV9Xdbq2mAHAJp dA2dxKJmgnvjAckiKWofp1TDUtYJCeDLSZBhMxBRmhP5aLjD17Aa0WT/YMHCr28GsSQJ 1sKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=zY4U6y6l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ca39-20020a056a0206a700b005c200b11ba7si2744429pgb.763.2023.12.05.14.27.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 14:27:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=zY4U6y6l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 5229E8092D8A; Tue, 5 Dec 2023 14:27:18 -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 S1346278AbjLEW1I (ORCPT + 99 others); Tue, 5 Dec 2023 17:27:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346259AbjLEW1I (ORCPT ); Tue, 5 Dec 2023 17:27:08 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63F91188; Tue, 5 Dec 2023 14:27:12 -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=E7AglM1sNrEzVXvgP3Pr0r6mYMdRh2+F/SBHIShk58c=; b=zY4U6y6lQoUZxswY4qHKuuGtMg sJixHP0HaCF1NRUNLbKQx1Rts5JMMIgCdPSJbRfX00//4xM6Rse/f/usqrGcuYKcMVvwuLbL61DbH r9U6ocd0dSC2Vwn77w3LWy3ggQ5Dadje/DKxf7gV9zlQQDQU85DTEjlt8pXW0Age0oNooGsLvm0Tl owIo817B6mI00r8rk7Z13PhEpztn1kflJRzQimIIEOrXsFQxN9FBrtW7thGCgsrDmJkrZnIq7FBKa n9UL5MU4XbUSdbAI5KwcRyLsoK/2MT7NP3vE9nJ0EJFBzkiVWUKrHByR86Lo0l2B5wJcnoUGi1poy DJ8rTlUQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1rAdse-008Vj3-0o; Tue, 05 Dec 2023 22:27:04 +0000 Date: Tue, 5 Dec 2023 14:27:04 -0800 From: Luis Chamberlain To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Joel Granados , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 14:27:18 -0800 (PST) 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 I've applied this to sysctl-next as this all looks very sensible to me, except one patch which I'll chime in on, but I'm merging it to sysctl-next now without a promise to get this in as I really would like this to soak in on linux-next for a bit even if it does not get merged in the next kernel release. Exposing it on linux-next will surely iron out run time issues fast. > 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. It all is very trivial stuff, except a few patches, but it all is making sense, so my ask is to address feedback this week and post next week a new set so we can have changes merged as-is for Linux in case this really doesn't break anything. For some reason I raccall seeing som hacky sysclts that shared and modified an entry somewhere but the exact sysctl phases me, and I just cannot recall. > > [..] > > 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. Indeed. Luis