Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1059378lqt; Fri, 7 Jun 2024 07:04:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpvA1UO2OdFTT2KGiK82tf6N05OwlneMAmF+nKy2kIXQiFlRJWXwWeyzUxeNPvbh027uBKhJFVk9xrq8rhQImzLpH7ZMGZ+KAN8bf97g== X-Google-Smtp-Source: AGHT+IGhWWZkA+MrgpTzUOG4IRGETzNSbmj7y3DDJY3nFsB7aAPMcTH3f4Ny/NEj6xAazMXbC/4K X-Received: by 2002:a05:6a00:2d0e:b0:702:4811:8d8c with SMTP id d2e1a72fcca58-703f88ba594mr10186273b3a.12.1717769087410; Fri, 07 Jun 2024 07:04:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717769087; cv=pass; d=google.com; s=arc-20160816; b=i4tK7YvFHE5xZF+A7b8TjTH4u4Ibh6yaBYriNPsPqVnJo3paz1UmllpF+khUc51Jhp oN87/hsjz8yGaCKGPhnwRrMIICkZoGgE/Q3xbOZ2S+6CV3PCvCol7Q6asOXFXMbRbLjg kAT1zMkepWIdfI6O6kZkvvE+eJ55YtW6m7c6dm14B9OEQWVdygzkQ45qI0YbLYNqYpFR L9l3yJ/iXd57S22SdjPrRV4lzq445XZ+VJMpm0AXMQ9UVY083usZSdzHyYArB7ztwjhc felh1mFGC9dCMr1idq0stDumvEZlYeFzw6BCWZjoT+CdKpkAlkGU4wTSH6sqpH8YMXYn SBOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/Ru0nvEOAGGH2ioeZ2ANUSBU0ejOpbFbqIa7rWRTCH8=; fh=j10Rpo074N0vUjNrcg1sq29M8wInLmyghgbWn/BJxcU=; b=GjGeH2gAiniKg+WU3FeF6u/rIqbRIMqKCzng9VBcrqDdLMaFQzZ4mnbUVcolJrmSoZ SKqRB4eOX7tAXZdCJPpNvDlaS4Ojh9qjBiJ0E5BK/6KmjPPowuREg0PWy/UktovhHR2K c/Ufe3ZGv9xvronzxytwiSYNjlDAUo4pJ3idAFB/n3ia3lZ7CSUZp1FruDdLJwEtoJ1Q 82xqfoGbpuTCmkrCOXd/FtnU8o/+iSnDQtnliQyKc2Hr1Z67a8Ixfee7kbkuvNym9/jL QHvkE861TY7yzlYxGwZb+7CS6I4xOcNHyFre3Hm5lDuWlpeqvXfh7TO+Ymc7o7Fhpil5 kYcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=QFWwBGKb; arc=pass (i=1 spf=pass spfdomain=t-8ch.de dkim=pass dkdomain=t-8ch.de dmarc=pass fromdomain=t-8ch.de); spf=pass (google.com: domain of linux-kernel+bounces-206203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206203-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=t-8ch.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd38e70csi3161789b3a.57.2024.06.07.07.04.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 07:04:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=QFWwBGKb; arc=pass (i=1 spf=pass spfdomain=t-8ch.de dkim=pass dkdomain=t-8ch.de dmarc=pass fromdomain=t-8ch.de); spf=pass (google.com: domain of linux-kernel+bounces-206203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206203-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=t-8ch.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 20F432920BF for ; Fri, 7 Jun 2024 13:54:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E69D196DA7; Fri, 7 Jun 2024 13:54:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=t-8ch.de header.i=@t-8ch.de header.b="QFWwBGKb" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05BEB195B2E for ; Fri, 7 Jun 2024 13:54:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717768446; cv=none; b=JzjJ11jOzHPiDKsMBNit3oWK6HYILGdsP7/QlI7pliGHbjIaUjcDSxMikeQ7KgHnVCID+GbSSwsg7JkVTy//T5Rl5NXSjtsjyWNaarp9hIekqnURP/vj3qvNwLeD8EfOdToFjaeQYVfPd2i/NuM/jskVJT6Yhypio335iDuHbjs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717768446; c=relaxed/simple; bh=Mp5s+leBjzFi1kNNv9MmnZ647UlxmmCA12Jil7R3iA4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uLsr1GKCE51geMqZyPrAzJndxqmZEUBrCGSLEyKc9MSlZM/BAofqkpSss75kUKs8dqTN6OVt70IFzgsSUPJuB/Pta5WeXpWlD3HJhgTu0B528oNP2gvqjOn1lW7taCzj765lMx/GlEb2WrjQMT65lCJeMPc+czDQVaYlvYr6dck= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=t-8ch.de; spf=pass smtp.mailfrom=t-8ch.de; dkim=pass (1024-bit key) header.d=t-8ch.de header.i=@t-8ch.de header.b=QFWwBGKb; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=t-8ch.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=t-8ch.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=t-8ch.de; s=mail; t=1717768441; bh=Mp5s+leBjzFi1kNNv9MmnZ647UlxmmCA12Jil7R3iA4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QFWwBGKbihW15MB0Q7Ef6M23/p3loPUKAsnFnOyrG1oZ2XP7kYY3HiIIIjWiv+ZZv 4G+j9AFEplaaua/bzDtYmWCLKX2PQ9LTLw89iHwOyV0lmuZVEAZmGomXMW4WJx7zIy d/oL6CQHk098jql2uAE/Mlws//xQeRSKFpd0becg= Date: Fri, 7 Jun 2024 15:54:01 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Joel Granados Cc: Luis Chamberlain , linux-kernel@vger.kernel.org, Kees Cook Subject: Re: Current state of the sysctl constification effort Message-ID: <37d5fd30-9327-4b57-8e4d-22af929d3fc4@t-8ch.de> References: <7823ff95-1490-4c1b-b489-a9c05adad645@t-8ch.de> <20240607094053.x3cmkhmrgaw6jqd3@joelS2.panther.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240607094053.x3cmkhmrgaw6jqd3@joelS2.panther.com> On 2024-06-07 11:40:53+0000, Joel Granados wrote: > On Fri, May 31, 2024 at 12:50:32PM +0200, Thomas Weißschuh wrote: > > Hi Joel, Hi Luis, > > > > most of the sysctl handler preparation patches have been picked up by > > the subsystem maintainers and are available in -next. > > > > Only two are missing: > > > > * utsname: constify ctl_table arguments of utility function [0] > > * sysctl: constify ctl_table arguments of utility function [1] > > > > Both of them are going through the sysctl tree anyways. > > > > With this done it should be possible to also queue up > > sysctl: treewide: constify the ctl_table argument of handlers [2] > > for the bots to chew on in -next. > > > > My local builds are still succeeding on the last submitted version of > > the patch. > > > > > > Thomas > > > > [0] https://lore.kernel.org/lkml/20240518-sysctl-const-handler-utsname-v1-1-27a6c8813620@weissschuh.net/ > > [1] https://lore.kernel.org/lkml/20240513-jag-constfy_sysctl_proc_args-v1-1-bba870a480d5@samsung.com/ > > [2] https://lore.kernel.org/lkml/20240423-sysctl-const-handler-v3-11-e0beccb836e2@weissschuh.net/ > > All this is coming together nicely. Indeed. > Is there anything left to do besides > what is being discussed in this mail, to start changing the ctl_tables > to `static const`? The changes to the tables also need (as per [0] and [1]): * sysctl: move internal interfaces to const struct ctl_table * sysctl: allow registration of const struct ctl_table I think we do the handlers for v6.11, the rest of [0] and [1] for v6.12 and then we can go through the rest of the trees ctl_tables. [0] https://lore.kernel.org/lkml/20231204-const-sysctl-v2-0-7a5060b11447@weissschuh.net/ [1] https://git.sr.ht/~t-8ch/linux/log/sysctl-constfy