From patchwork Tue Jul 16 14:16:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joel Granados X-Patchwork-Id: 13734542 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) (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 2B46119B3CC for ; Tue, 16 Jul 2024 14:17:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721139432; cv=none; b=ocrtsd7UUxwtk2iYiGflK6KEqubbv5izjaPZuMmY1FVkvQKxfDyspSPJ+wY/kw1U9qREFR09ApOTuTmBdwim7bjgX7HEna2n98QzQ/glVyt/97WVfTe1CrOx1bJ+Do1kFrLN2wktcalgf8vBmjDinfHYIEoXTB/+KOtF0cTXfxg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721139432; c=relaxed/simple; bh=EyjHSgHtEE2QiyHm0eTIJGb6awCiW6GpKsXEilVPt1M=; h=Date:From:To:CC:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:References; b=qBLTtIgBw+OOMl5XoPJE/7xA+MRaQ6GYA4orwHRUtfQA4Kd7MpqAVSOjHzPB/qpkCzNEXzdN8Jlm8liTjYUXx/PdO1UQ+f6eaghr+hTJ0W/qKnLb2B0j7d1yrmlcwDbPQdy/H4ifAAs6tmQPAbqEFkXOH0OcyV6EaE/EOU1fwu8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=iDnW/9Zq; arc=none smtp.client-ip=210.118.77.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="iDnW/9Zq" Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20240716141704euoutp01d3c15d3d15adaa453b481f0d7bee316f~ity-2YiAN2204922049euoutp01E for ; Tue, 16 Jul 2024 14:17:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20240716141704euoutp01d3c15d3d15adaa453b481f0d7bee316f~ity-2YiAN2204922049euoutp01E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1721139424; bh=YACcv9BnNidhkssSMiXRLLRpbe0KedK8tj/31WFDyt8=; h=Date:From:To:CC:Subject:References:From; b=iDnW/9Zqt7DflM4OCs5hFZAK1Y07gA9/yY/5GysIZ+rzqEBSu84D6fL7ybW5cEorC 7RRTgzyPUR3l/dzVT1C38NuETNE9LvXd41aBA6QZ/7EqDNIbwvM4EkTUyFxrdDUoPF h9fyYQ4x+B9ONXMvrGkCvAwfVVrdQFWozR4jxXcA= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20240716141704eucas1p249b4e56cec88c18b54440b6909ba6a53~ity-ohLpr2326023260eucas1p2-; Tue, 16 Jul 2024 14:17:04 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 4C.7E.09620.FD086966; Tue, 16 Jul 2024 15:17:03 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20240716141703eucas1p2f6ddaf91b7363dd893d37b9aa8987dc6~ity-JtRme2675326753eucas1p2f; Tue, 16 Jul 2024 14:17:03 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240716141703eusmtrp1cf005c630bc078c4d62f11c3eae60e55~ity-JFkkv0611306113eusmtrp1C; Tue, 16 Jul 2024 14:17:03 +0000 (GMT) X-AuditID: cbfec7f5-d31ff70000002594-8f-669680df92a5 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 14.CF.09010.FD086966; Tue, 16 Jul 2024 15:17:03 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240716141703eusmtip2590a943316251bb03d751924354a77bc~ity_2eG9b3028830288eusmtip2f; Tue, 16 Jul 2024 14:17:03 +0000 (GMT) Received: from localhost (106.210.248.174) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Jul 2024 15:17:02 +0100 Date: Tue, 16 Jul 2024 16:16:56 +0200 From: Joel Granados To: Linus Torvalds CC: Luis Chamberlain , Jeff Johnson , Joel Granados , Kees Cook , Thomas =?utf-8?q?Wei=C3=9Fschuh?= , Wen Yang , , Subject: [GIT PULL] sysctl changes for v6.11-rc1 Message-ID: <20240716141656.pvlrrnxziok2jwxt@joelS2.panther.com> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLKsWRmVeSWpSXmKPExsWy7djP87r3G6alGexZpmtxpjvXYs/ekywW l3fNYbP4/eMZk8WNCU8ZLRq33GW1eNT3lt3i/Zr7rA4cHrMb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1p2f6ddaf91b7363dd893d37b9aa8987dc6 X-Msg-Generator: CA X-RootMTR: 20240716141703eucas1p2f6ddaf91b7363dd893d37b9aa8987dc6 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240716141703eucas1p2f6ddaf91b7363dd893d37b9aa8987dc6 References: Linus Note: I have update the capabilities in my signing key. I don't think anything changes on your side, but thought I'd mention it for good measure. Pulling from https://git.kernel.org/pub/scm/docs/kernel/pgpkeys.git would probably solve any unforeseen issues. The following changes since commit c3f38fa61af77b49866b006939479069cd451173: Linux 6.10-rc2 (2024-06-02 15:44:56 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl.git/ tags/sysctl-6.11-rc1 for you to fetch changes up to acc154691fc75e1a178fc36624bdeee1420585a4: sysctl: Warn on an empty procname element (2024-06-13 10:50:52 +0200) ---------------------------------------------------------------- sysctl changes for 6.11-rc1 Summary * Remove "->procname == NULL" check when iterating through sysctl table arrays Removing sentinels in ctl_table arrays reduces the build time size and runtime memory consumed by ~64 bytes per array. With all ctl_table sentinels gone, the additional check for ->procname == NULL that worked in tandem with the ARRAY_SIZE to calculate the size of the ctl_table arrays is no longer needed and has been removed. The sysctl register functions now returns an error if a sentinel is used. * Preparation patches for sysctl constification Constifying ctl_table structs prevents the modification of proc_handler function pointers as they would reside in .rodata. The ctl_table arguments in sysctl utility functions are const qualified in preparation for a future treewide proc_handler argument constification commit. * Misc fixes Increase robustness of set_ownership by providing sane default ownership values in case the callee doesn't set them. Bound check proc_dou8vec_minmax to avoid loading buggy modules and give sysctl testing module a name to avoid compiler complaints. Testing * This got push to linux-next in v6.10-rc2, so it has had more than a month of testing ---------------------------------------------------------------- Jeff Johnson (1): sysctl: Add module description to sysctl-testing Joel Granados (8): locking: Remove superfluous sentinel element from kern_lockdep_table mm profiling: Remove superfluous sentinel element from ctl_table sysctl: Remove check for sentinel element in ctl_table arrays sysctl: Replace nr_entries with ctl_table_size in new_links sysctl: Remove superfluous empty allocations from sysctl internals sysctl: Remove "child" sysctl code comments sysctl: Remove ctl_table sentinel code comments sysctl: Warn on an empty procname element Thomas Weißschuh (3): sysctl: always initialize i_uid/i_gid utsname: constify ctl_table arguments of utility function sysctl: constify ctl_table arguments of utility function Wen Yang (1): sysctl: move the extra1/2 boundary check of u8 to sysctl_check_table_array fs/proc/proc_sysctl.c | 70 ++++++++++++++++++++++++++---------------------- include/linux/sysctl.h | 2 +- kernel/locking/lockdep.c | 1 - kernel/sysctl-test.c | 50 ++++++++++++++++++++++++++++++++++ kernel/sysctl.c | 31 +++++++++------------ kernel/utsname_sysctl.c | 2 +- lib/alloc_tag.c | 1 - net/sysctl_net.c | 11 ++------ 8 files changed, 105 insertions(+), 63 deletions(-)