Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1571694rdb; Thu, 7 Dec 2023 03:05:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEiamjZ3jB0ncaUIjLRF820ENX3eXABIZuT0uqPJUlINiQSV7QDC5IEiAZ266Y2YX4+apL5 X-Received: by 2002:a05:6a00:1f05:b0:6ce:4853:beaf with SMTP id be5-20020a056a001f0500b006ce4853beafmr1645904pfb.56.1701947150376; Thu, 07 Dec 2023 03:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701947150; cv=none; d=google.com; s=arc-20160816; b=gqSTJ7lllTlw+NyjLFGyFJ73VZUTqRSy8VpoqzDSiL21gYZGAjWox2YuakqhhTUM5b lAhR9hPTxOi7FAOh2guwpQcQOsMAIdNyMpF8Q/pnuh3EYECcXwwuJC0nX3Iiv/OCAI7G FrmNVf24jriuyRWJDS8Ld2pCU68/cbguH7jwl9RpTx8k8uHW7AXPwYsiqRcpIZeoCyaV 4Nyt6Oridm9eRzpxr5SY8YGYKynrn8cCYR4wPl799hfBxUb3d2rfZD/aFCdWSIXjHxgX VWHzQ9eAcWUOTG99KJApUQrfRnZ/dW4FkT3rEXWedHpRiUs5NUaPSvtfxbYtP2FfgEJK urdA== 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=daPuwGpwsCikEu05jfrEZmZPhBfvdaDIM/2Wd7kHU2o=; fh=VMiU9mcTfNctAjuTqNEfh9rYBGNzsqL/vcswcPFvNfw=; b=qGvfBK4dbvUiD102/Q59n7DI6YDTO3GRRXCT860aERzZpxNBgGareS9N7vxNooIEIR UwENVzcOp1ajCO5S7nNCTVGZBkOInhJIyhF6zkDnrK2mEm8kcQkQEniUPINmNiQZKbwm LRbhPKpvNkM7C7MModLiUp14s9MdfIaQnz9KAkmL1D41YPZInlw46DDbuGE4mJbwYHrj 67zYpGBfhcTUkhyRxbhKdE94GD5twyP8GhtBqatu64ykpHu/4E3NfqmmZQ6eU5+ig5V9 766Sr2XpgyP2c5IrNCyxp/SMgXUAs5loy5glCc4xgQBnAsqU9Ogom7G9PRGl3n092fU2 mqPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=mxGpFbe7; 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 h31-20020a63f91f000000b005be14925624si982069pgi.714.2023.12.07.03.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 03:05:50 -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=mxGpFbe7; 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 5D8F3808EE57; Thu, 7 Dec 2023 03:05:47 -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 S231439AbjLGLFX (ORCPT + 99 others); Thu, 7 Dec 2023 06:05:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232072AbjLGLFW (ORCPT ); Thu, 7 Dec 2023 06:05:22 -0500 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 692E4D53; Thu, 7 Dec 2023 03:05:25 -0800 (PST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20231207110524euoutp01613e40d891be59b320c0ade472d29cf4~eh_RfuRbr0152401524euoutp01U; Thu, 7 Dec 2023 11:05:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20231207110524euoutp01613e40d891be59b320c0ade472d29cf4~eh_RfuRbr0152401524euoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1701947124; bh=daPuwGpwsCikEu05jfrEZmZPhBfvdaDIM/2Wd7kHU2o=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=mxGpFbe7KXsKyseqrH3jNtn2il9wQdQXl/rOGiAa2M9Xyo1/07WsXczlO6mfXp8tU Jc8TpYWfSptZ/65M4wzfyKmjApuSydZ+TtfOMq9FGiR2UxDviI1yeKrHTqgXTBfzlh m/RHd25QI6OIxfkBmTo9PXGnUQjW8K1yR1qoWmzs= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20231207110523eucas1p1204a194eba3c8a617cef548da848508f~eh_RFEIs72424224242eucas1p12; Thu, 7 Dec 2023 11:05:23 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id A6.43.09552.3F6A1756; Thu, 7 Dec 2023 11:05:23 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20231207110523eucas1p21e6a6ba5cbe0c2f17f7b0d08a50d6aad~eh_QksM9x1784117841eucas1p2u; Thu, 7 Dec 2023 11:05:23 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20231207110523eusmtrp190eca1446906b88559f4ac378aac3f40~eh_QkG1IK1166211662eusmtrp1T; Thu, 7 Dec 2023 11:05:23 +0000 (GMT) X-AuditID: cbfec7f5-83dff70000002550-2a-6571a6f3ecee Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id BB.A2.09146.2F6A1756; Thu, 7 Dec 2023 11:05:23 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20231207110522eusmtip1d56bff99c4aba8b5fee2428935de0000~eh_QX5JuT2586225862eusmtip19; Thu, 7 Dec 2023 11:05:22 +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:05:22 +0000 Date: Thu, 7 Dec 2023 12:05:21 +0100 From: Joel Granados To: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= CC: Luis Chamberlain , Kees Cook , "Gustavo A. R. Silva" , Iurii Zaikin , Greg Kroah-Hartman , , , Subject: Re: [PATCH v2 00/18] sysctl: constify sysctl ctl_tables Message-ID: <20231207110521.jeudk6y5ejh6ngf6@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="a7f76owrdx7oxple" 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+NgFrrNKsWRmVeSWpSXmKPExsWy7djPc7qflxWmGnxqV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pi9S6UG3Js7X0a1LjTd9EroJZRosOTGh3ehv2RbBSqC5KxsvtzJ9pSY+inv38 56ld+WHZtyQTT7cJd1yUWIozEg21mIuKEwHO4gDwiQMAAA== X-CMS-MailID: 20231207110523eucas1p21e6a6ba5cbe0c2f17f7b0d08a50d6aad X-Msg-Generator: CA X-RootMTR: 20231205080416eucas1p241d86dda65c0009ca352673e1ca5b26d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20231205080416eucas1p241d86dda65c0009ca352673e1ca5b26d 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:05:47 -0800 (PST) --a7f76owrdx7oxple Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 05, 2023 at 09:04:08AM +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/log/?h= =3Dsysctl-next >=20 > Will do. >=20 > Note: >=20 > I noticed that patch "sysctl: move sysctl type to ctl_table_header" from > this series seems to be the better alternative to > commit fd696ee2395755a ("sysctl: Fix out of bounds access for empty sysct= l registers") > which is currently on sysctl-next. Indeed. By taking this out of the ctl_table, we would not need to make sure that we don't touch that (potentially non-existing) first element. This is what I think should be done (@Luis @Kees chime in if you have any thoughts): 1. Leave the current fix for 6.7. AFAIK, it is already queued for that release and it is a bit late in the cycle to put anything new in. 2. I think this patch has value on its own as a better solution to the "access invalid memory" issue. @thomas: remove this patch from your const set and send it in a different patch series. 3. const patchset would need to go on top of the new set. Having it on its own will allow it to go in faster and make it easier to review without having to thinkg about the const stuff as well. Best >=20 > The patch from the series should only depend on > "sysctl: drop sysctl_is_perm_empty_ctl_table" from my series. >=20 > Thomas --=20 Joel Granados --a7f76owrdx7oxple Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEErkcJVyXmMSXOyyeQupfNUreWQU8FAmVxpu8ACgkQupfNUreW QU/DNAv/TDQMJUs4oKgPcr+aoFQ/sng5W4yFQY5GA7FAsG3lAFqEcPFG6YB8XWO6 pUmcI9ZvnpNMaQdN4PBYCo25B165jbGnm4qlyOQ/vCTECPzIESXwC42lNOCblQUQ mM0LarwaqRHcUzh0/9EyTdh/8M3n0O3foisGm/3JmKBkMoFrt81ucKW01fyasptR GIhFpi4WdbMsb/uRjImsMmJza8oPSa7uTU4Vhs9fMmhRIKwp4/fAW38z+LPZkf60 /nspxC6IRu1xA9fByp25sv+P/uAu5dx+VVrDFGfAyIyxAJLU1IIgeTLAzWmNKp0M /BLnEEJ/8FD59zHUWRYE//yUKO/tfMfenQ9U69x13CeT2aeFEMT+jB3z1XcmaAG6 l5nycPXZZQsx8Nb0ayfWLaWSmeA5/Vh8Jc8QXCZmO7xLGftipyLWpZcGhjcOwaUi upyI4hAm+GL2Gm7BbWUpjgeB34pbhTSCQPDNyGJeWT2x9l6qKKmlUG36eKx6q2NO AXRuEQwr =YKxV -----END PGP SIGNATURE----- --a7f76owrdx7oxple--