Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1580937rdb; Thu, 7 Dec 2023 03:23:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpJ//NQUO07m8zD7SD0q7dmyzUjYZVTK9NdKPxBJjAT7zEcZ4Ra0gdWpHeYWa/LEdS/MKd X-Received: by 2002:a05:6a21:a59c:b0:18f:97c:8a28 with SMTP id gd28-20020a056a21a59c00b0018f097c8a28mr3275047pzc.83.1701948225676; Thu, 07 Dec 2023 03:23:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701948225; cv=none; d=google.com; s=arc-20160816; b=nsuYxasPNDZMbFsmHbCW2U5rm1I1FvGs/gyH5T5vAosysSbPktQhSJH87ry6ScU3Jr mfMAm6DL4asJACwupbv4QsB6xY8jw5gL64SJpUMl711aqrmFwopeXG1nnZ+/fJ+OkLvK BiyFkFsTmETJeDE3ri5chaFzwRa3G4qkntRTw8b8vcFQdv9Tteo4DrDE55KLdZYCXbF5 jsjWprrcDUk3ZdiRjk6hZU5d179aMS8NQU1IuxO6GcvpOlw2FeytOMJD686JW0iqRJAa sxYNxt6zFbqVHs3UfB5m+r7Bs5zZ+P4F9VfABzPY/E49dQK5Rb1u1+M3WfSIyFlRjA/f qm+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=mv2E/4ghW3Y614By89oI+rnRJ/EeSCDukuyif0pKhY4=; fh=e7IXwEi08zRI3kmprBRMAIBC0BDAGObX/F55gKMKnXg=; b=JmFXej2DmdmrAgmXFBFX8hT3BgCc4AiqjpBwI1e8eB45EyckI0HeAzxQapnUp8/5VB pQTbCoVX0STY1KdQQEt+KXdmYxNvzX5DfqK8CVLmbU6JWvtmMeetLtrM7ylcuTIOoD9U ecF5STe1HJr4i7kRT8+vjHDtg4P6Un9uyTdM9pNxSQOHA7bklet+DCQH4sl8hzTDSqum y+9UJ0vxRCQGo+EzIwiwjJjTbTV757dGflMslzFBXpW27D0ChFz1DLfjoFkDdXqwVAmy MS5SoUo7wSHtCV1WAb/WuQzRmB8wXUTf0jIOYB7LWvD0YyJ9Vg8IArNCeCaEvc6GDxv5 P9cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=pKSDTFZ3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id jc3-20020a056a006c8300b006ce63dbd7f4si1092155pfb.142.2023.12.07.03.23.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 03:23:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=pKSDTFZ3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C14C8808EEEF; Thu, 7 Dec 2023 03:23:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379016AbjLGLX1 (ORCPT + 99 others); Thu, 7 Dec 2023 06:23:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379020AbjLGLXZ (ORCPT ); Thu, 7 Dec 2023 06:23:25 -0500 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E98A10DF; Thu, 7 Dec 2023 03:23:26 -0800 (PST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20231207112325euoutp027a3fb34ac3039778584482f733e7de25~eiOAWlDOW0096800968euoutp02y; Thu, 7 Dec 2023 11:23:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20231207112325euoutp027a3fb34ac3039778584482f733e7de25~eiOAWlDOW0096800968euoutp02y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1701948205; bh=mv2E/4ghW3Y614By89oI+rnRJ/EeSCDukuyif0pKhY4=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=pKSDTFZ3/rIy3m9CeF5f6TFVZifRRljyHp/8x1U6uaJTUVVAE7dTrTJaMWTCyEGga 6st2LdETFYxT7dNjFoQOexZQhzys9Eq1b9Ho0crjnP3FYAmTCH+tuaoe6XM6eqm8sK 7jDSjLbHDjZdNXY3pSiPB+diZjc1h18uDB3YLdgU= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20231207112324eucas1p294e7836b2f95a621f5c5da4417fbd944~eiOAHv0101543615436eucas1p28; Thu, 7 Dec 2023 11:23:24 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 6D.1C.09814.C2BA1756; Thu, 7 Dec 2023 11:23:24 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20231207112324eucas1p2962efea55f2a1f49f6efb3b06fd1a582~eiN-e9jzy0304903049eucas1p29; Thu, 7 Dec 2023 11:23:24 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20231207112324eusmtrp1ba25d583adfbb1f4832c2ef714986ac0~eiN-eNB2i2178921789eusmtrp1p; Thu, 7 Dec 2023 11:23:24 +0000 (GMT) X-AuditID: cbfec7f4-711ff70000002656-4b-6571ab2cba0b Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id BD.36.09274.C2BA1756; Thu, 7 Dec 2023 11:23:24 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20231207112324eusmtip2d0ba42d1464b1fac01f073106bd847d0~eiN-Qu0pa0917909179eusmtip2-; Thu, 7 Dec 2023 11:23:24 +0000 (GMT) Received: from localhost (106.210.248.38) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 7 Dec 2023 11:23:23 +0000 Date: Thu, 7 Dec 2023 12:23:22 +0100 From: Joel Granados To: Luis Chamberlain CC: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= , Kees Cook , "Gustavo A. R. Silva" , Iurii Zaikin , Greg Kroah-Hartman , , , Subject: Re: [PATCH v2 00/18] sysctl: constify sysctl ctl_tables Message-ID: <20231207112322.uac2my3u4aafnxl2@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="2b7bopsuuvobq6c5" Content-Disposition: inline In-Reply-To: X-Originating-IP: [106.210.248.38] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBKsWRmVe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Dy0v/PdObs37X80Hr3xvNZw14fmb +Wz6f2d7eqQW9yedyr0ybSurw57sjplPNBkXzD3KKd+181lM6gw1le839535MY37mvf9yzXx cwpTtTQqny832qRwW6H/4ntLJZbijERDLeai4kQA4FkMaYcDAAA= X-CMS-MailID: 20231207112324eucas1p2962efea55f2a1f49f6efb3b06fd1a582 X-Msg-Generator: CA X-RootMTR: 20231205222712eucas1p109566babf1072328184c818d1b6965b5 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20231205222712eucas1p109566babf1072328184c818d1b6965b5 References: <20231204-const-sysctl-v2-0-7a5060b11447@weissschuh.net> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 07 Dec 2023 03:23:43 -0800 (PST) --2b7bopsuuvobq6c5 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 05, 2023 at 02:27:04PM -0800, Luis Chamberlain wrote: > On Tue, Dec 05, 2023 at 06:16:53PM +0100, Thomas Wei=DFschuh wrote: > > Hi Luis, Joel, > >=20 > > On 2023-12-05 09:04:08+0100, Thomas Wei=DFschuh wrote: > > > On 2023-12-04 21:50:14-0800, Luis Chamberlain wrote: > > > > On Mon, Dec 04, 2023 at 08:52:13AM +0100, Thomas Wei=DFschuh wrote: > > > > > Tested by booting and with the sysctl selftests on x86. > > > >=20 > > > > Can I trouble you to rebase on sysctl-next? > > > >=20 > > > > https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/lo= g/?h=3Dsysctl-next > > >=20 > > > Will do. > >=20 > > The rebased series is now available at > > https://git.sr.ht/~t-8ch/linux b4/const-sysctl >=20 > 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 That is the "move sysctl type to ctl_table_header" right? > 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. +1 for soaking it :) >=20 > > 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(). > >=20 > > I'll wait for Joels and maybe some more reviews before resending it. >=20 > 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. Any thoughts on the size of the tree-wide patches? >=20 > 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. Its probably in net/*. There is were they are really taking advantage of ctl_table. >=20 > > > [..] > >=20 > > For the future I think it would make sense to combine the tree-wide con= stification > > of the structs with the removal of the sentinel values. > >=20 > > This would reduce the impacts of the maintainers. >=20 > Indeed. >=20 > Luis --=20 Joel Granados --2b7bopsuuvobq6c5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEErkcJVyXmMSXOyyeQupfNUreWQU8FAmVxqyoACgkQupfNUreW QU9Mfgv/W62R2aUunsSdN2DFcIRXKePW0Oyyu2RfLLT5I7Utd/1PdHjuhIyyOAGS /9vP1zfp6ZGhrl/NqZpIIZH3t1E8/zxURK178TDc/d5zC6LzOTu+r7PVgGq0wN9Q PiiEebBCA5bdfrEO4baxAofR981s92b+EH/914TTzn4McmwPCLkn6+6HujiSakz5 HNz8wIGczjzsnYDrHSWV8DlAH87vs+Zxa8/T9hzBhWm+yb1f0o+XCHhLLmfACfop q+NEQwlRK/0Tfx3Xug43D5fU6kvZqgm0vJxOhEU3fnZClS08IZj4oVyixBcCtQuK FQDoy1wy9nBLtea4ENrWbJ6mIhOB2a4N8mq3Nn31+OmcSqw+fr6uEbYGi2hmqcZy rhkQU4qJL6BD387CrLxiglHbSVJ5SKEDXdZ99ukoXkQi60/zcOdr6ZnxA1NAkzLE vtyQIcDYBIogDImnnNqSMJo5ETxVM1GxisxECDwK4izJrE0MznDZnPnyDAK+CbAl 6YZXT1C0 =8Yi9 -----END PGP SIGNATURE----- --2b7bopsuuvobq6c5--