Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1535206lqs; Sat, 15 Jun 2024 13:19:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9vDt6mTnCqz1ObszOiatz5wwV/uLXF/8s3zmBx93PRxlKqqgf+lZJawc+AAHKilBWYB5LGFqlldtMwktwtbnBpcAU6o4IKZBxjhi8ag== X-Google-Smtp-Source: AGHT+IG0BDG2Pj1rwJrwr/8de5n7PlLEPWmlMYqaIfp0jSoobrjiPxxG1QzfoiVOEsBQNL8XkERi X-Received: by 2002:a92:c26c:0:b0:375:e04f:55ac with SMTP id e9e14a558f8ab-375e0e312afmr63869945ab.16.1718482746522; Sat, 15 Jun 2024 13:19:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718482746; cv=pass; d=google.com; s=arc-20160816; b=xnx8snWZtx0cK0bFFygK/luUYAAyf0Vj4yGvfQM9FFmiru3jpomSNcWxy/vykWVKLn xHalfziq1Ri9W8hD7kTH80W9B2wfgq4tzzi44wV4eIJAj0pNcGsW9fqhUKXhcy21ZdyU +cPjPQJ1DOQkT5lGsg1wfzS2ok1Lvj8gZ+f0LgXfTnIQLNud1Rs1rysRbnlVFg+D8hfS J5kOwV8kvLONPqgVzdL5Pd2Ppj5PRSpDKFQxp73+koqnm+QrbW4P0yHslahIbkv6LPaT nVelqjX0QuTdQXJvn0bbk7zChR1PsUaxb8zWv0tqo8csXCAApB481gqGUqTYqbxLUmGx EJug== 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=lPmMWBLYx52A38MuDGQipvr9Pf4HLux56IdE9LDtBPg=; fh=j10Rpo074N0vUjNrcg1sq29M8wInLmyghgbWn/BJxcU=; b=oYvQffNmXf120JagJczMki03lhzIbXyn208JvOqcS+nV/HLMA22xb938RIIXqoUHwS sj5fLl9GjxnDlu74s9mXwKNh1mp2lJEgdrAuH+x7ECPCvlDAyNG84plqd+WGOObL/wz2 He6/4QuA+yurv75ZxQhC5M9QBRJTgbnu7NVqnDECAEOJaYcoBstF9xPY8D2yK0oxl5aK eVr1vsD+dTxeZzwPhCvbxOl/9zN3Dwdei+R8TlVYKz7fqU33HFPpVyXFouezbS8ssH1Z 7pI+85C4IfoAuJ9Aq6mKGcv5HLmCuPgCapbOC8YGRRWsXC5lunphquRTpuR7oXXYHfhT Srkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b="dsPIZ/Mh"; 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-216005-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216005-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. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fede81ff73si6517044a12.189.2024.06.15.13.19.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 13:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216005-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b="dsPIZ/Mh"; 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-216005-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216005-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 10C65281E9C for ; Sat, 15 Jun 2024 20:19:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C406561FE3; Sat, 15 Jun 2024 20:19:00 +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="dsPIZ/Mh" 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 7DACF4C62A for ; Sat, 15 Jun 2024 20:18:56 +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=1718482739; cv=none; b=aJqSlXRqvggl9xIcaf4P1lh+663PXlt29xPknUsYlZqrL7ZgfpksG5713NKncjvd58m4/6hURAkohv0Yea2P4wLTSYi9BO4P4jxSuB9rEWSI9sXnJcIXgfuEPdYVx8itepPKoB/5S5bhfO6wFrsYN8L13nZOj8/l3Qb8GyJcca8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718482739; c=relaxed/simple; bh=VWcfEiBlDIo8t3b8V4pHvWJXgkHgEu1ID36AGj5Fmio=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZfT4NMJm0tzAhbMzxgdPhGTUUEsrFH9aZnJt/MWuwz/LiDJ8kBnEA1Ohfh68iF0ERRMnv3R/bRR4G7QElvR1jJja5TxAdGfGj6EO5vV81wkuyZ/N/LHcTJqN4NgvX0HxSb6jzo1I5JHPdgr1z8Fz5tXwmQ6Vri7SVPIwot3dPPU= 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=dsPIZ/Mh; 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=1718482728; bh=VWcfEiBlDIo8t3b8V4pHvWJXgkHgEu1ID36AGj5Fmio=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dsPIZ/MhN5ZXM8F6CG2s99fRBqJY4dmDCbt21kt2Urncvwu5FmeBHWSpoxaycESw+ THm5RlIAfTHf92ti4WrMRcxrRFeFsKJW+wJU0t/VWBlbV5oPgpm0j3VRbPL1KLNYDE PntoDWz8Hl3LeGGHY2mQ31EzwNEEXLVNcSKA9W0E= Date: Sat, 15 Jun 2024 22:18:48 +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: References: <7823ff95-1490-4c1b-b489-a9c05adad645@t-8ch.de> <20240607094053.x3cmkhmrgaw6jqd3@joelS2.panther.com> <37d5fd30-9327-4b57-8e4d-22af929d3fc4@t-8ch.de> <20240610081036.bugf62o3y2wh2ugu@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: <20240610081036.bugf62o3y2wh2ugu@joelS2.panther.com> On 2024-06-10 10:10:36+0000, Joel Granados wrote: > On Fri, Jun 07, 2024 at 03:54:01PM +0200, Thomas Weißschuh wrote: > > 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: > ... > > > 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. > > LGTM. Once you send "sysctl: move internal interfaces to const struct ctl_table" and > "sysctl: allow registration of const struct ctl_table", I'll put them > into sysctl-testing and have them there until they can go into sysctl-next > (after the end of the next merge window). Please send both of them in one > series and remember to work on the "what" and the "why" for the commit > messages and cover letter. IMO all of the remaining commits can go in as one series, as they all belong to the sysctl core (I can leave out "sysctl: constify standard sysctl tables") FYI recent changes to the sysctl core introduced another prerequisite for "sysctl: move internal interfaces to const struct ctl_table", which is "bpf: Constify ctl_table argument of filter function". See https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git/ sysctl-constfy Thomas