Message ID | ZJx62RvS9TwjUUCi@bombadil.infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp9136748vqr; Wed, 28 Jun 2023 11:50:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hiqvrKSL9SnID4X7nDRwczCMz5+nWHVbB/KpEXaYgdLM55w7pVYySD8+m/ayNL3N31HXa X-Received: by 2002:a19:f709:0:b0:4fa:fe2b:dfd3 with SMTP id z9-20020a19f709000000b004fafe2bdfd3mr6145137lfe.5.1687978234792; Wed, 28 Jun 2023 11:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687978234; cv=none; d=google.com; s=arc-20160816; b=xjtGWIFEz7HxNtpXDCR4DogztV8EQpKq5YD0UzbVrqbRPqe/2Oo/tOqZXeBHk6F7tj fz5sc21bjH7NKcdM9ij9+F+f51I5ROWBTRVzjYATmX22/9Gx9J8gW6hR8T8UKIP5ImyZ W4b0NfMGUuYgF3yBJPXJhI2qx+bWuMQJBUOhEfBgVoHVou8qxlGQ4Pc/hfsTCLY7yqOW Tlm4eSBgABEXQQZiFYHii9g+UC2N6vdWlrvPS+uGbEwm9UMnP2EoBxOGRDHO790roJyD i16W8VVGj3fLpVkaDG2KocKjZhUtuVyTbgJYJ34LJ5uTsNQH0kp+YYII1uY37ezEueR3 iy+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=rZ7tW+lP5VbpS09o8l8H9B+pWyICkkk7HcLmzLLVSYE=; fh=mQ6p71muUksJQuioOtHODGKK2gIe2PhVXOEXMGovbNw=; b=xXa4qdEwmA55ItQ0Lxt38lGBinth/4SF17QZMCtqT2ITmigm7BvTJwiBSHFgliet++ mWYvwZBMHckFaf35TKv2IvNEgb8YfRsf4Pl5Um23k8oKBfr1s8YwBT+Mwsu1QJgP62GX IvOU1pazNRHKlfaHclrg/XTKLagG9w/gklpvCL7vSP9PUN9SqBtyZ/Y21EIbYG7R4hZA 5xmobnPfeH0DVAQu5w3y96R2Y54Vqol/j78Fot7FJrZwsZMtnpu+u4tCkh/m+Fde6U8K suKfegQbfktQTlt8rbOEDJHvokHnX2Q/biMSCXI3u51etU2fK0PK2wmTWjAi94MEDcLE iKZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=jLIna+47; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a056402128a00b0051d90d4c97asi4788336edv.456.2023.06.28.11.50.07; Wed, 28 Jun 2023 11:50:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=jLIna+47; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231917AbjF1SYn (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Wed, 28 Jun 2023 14:24:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231986AbjF1SYj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 28 Jun 2023 14:24:39 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CF491BE8; Wed, 28 Jun 2023 11:24:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=rZ7tW+lP5VbpS09o8l8H9B+pWyICkkk7HcLmzLLVSYE=; b=jLIna+47HDapmlKg2krsqqOn5u LaxSJ37gnbaRB7oSlZEOHwBRws4MDZKwLLN+LcRVt8hOBi7MkzgUi+C9O2raUKUlMilwnio8IY1cn kJgPP+F+IgqgQ0vfi9aHP5q2042JXQSvTgXFkDZOBYoMXiLgcYpB+Y1vNth5ec8nd6wnZ3+1A4AFO j3ACuczFst0UWGk/5CbnMDu3uKXO318BI1YSfe/S2/G2KiO9mnV0WAKbXZt/cqJy17UK4meO+14XZ 7z9+2P7+fkF59UClddYhILm8VYpfQkh/TQKjNpH8Bg1w8Hu5rh5D8R2UYWLqKsbytogEkvJqvP/w8 Tzp8N4ig==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qEZq5-00GO51-0t; Wed, 28 Jun 2023 18:24:25 +0000 Date: Wed, 28 Jun 2023 11:24:25 -0700 From: Luis Chamberlain <mcgrof@kernel.org> To: Linus Torvalds <torvalds@linux-foundation.org> Cc: ebiederm@xmission.com, keescook@chromium.org, yzaikin@google.com, j.granados@samsung.com, patches@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, mcgrof@kernel.org Subject: [GIT PULL] sysctl changes for v6.5-rc1 Message-ID: <ZJx62RvS9TwjUUCi@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: Luis Chamberlain <mcgrof@infradead.org> X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769973465530507474?= X-GMAIL-MSGID: =?utf-8?q?1769973465530507474?= |
Series |
[GIT,PULL] sysctl changes for v6.5-rc1
|
|
Pull-request
git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/ tags/v6.5-rc1-sysctl-nextMessage
Luis Chamberlain
June 28, 2023, 6:24 p.m. UTC
The following changes since commit f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6: Linux 6.4-rc2 (2023-05-14 12:51:40 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/ tags/v6.5-rc1-sysctl-next for you to fetch changes up to 2f2665c13af4895b26761107c2f637c2f112d8e9: sysctl: replace child with an enumeration (2023-06-18 02:32:54 -0700) ---------------------------------------------------------------- v6.5-rc1-sysctl-next The changes queued up for v6.5-rc1 for sysctl are in line with prior efforts to stop usage of deprecated routines which incur recursion and also make it hard to remove the empty array element in each sysctl array declaration. The most difficult user to modify was parport which required a bit of re-thinking of how to declare shared sysctls there, Joel Granados has stepped up to the plate to do most of this work and eventual removal of register_sysctl_table(). That work ended up saving us about 1465 bytes according to bloat-o-meter. Since we gained a few bloat-o-meter karma points I moved two rather small sysctl arrays from kernel/sysctl.c leaving us only two more sysctl arrays to move left. Most changes have been tested on linux-next for about a month. The last straggler patches are a minor parport fix, changes to the sysctl kernel selftest so to verify correctness and prevent regressions for the future change he made to provide an alternative solution for the special sysctl mount point target which was using the now deprecated sysctl child element. This is all prep work to now finally be able to remove the empty array element in all sysctl declarations / registrations which is expected to save us a bit of bytes all over the kernel. That work will be tested early after v6.5-rc1 is out. ---------------------------------------------------------------- Joel Granados (16): parport: Move magic number "15" to a define parport: Remove register_sysctl_table from parport_proc_register parport: Remove register_sysctl_table from parport_device_proc_register parport: Remove register_sysctl_table from parport_default_proc_register parport: Removed sysctl related defines sysctl: stop exporting register_sysctl_table sysctl: Refactor base paths registrations sysctl: Remove register_sysctl_table parport: plug a sysctl register leak test_sysctl: Fix test metadata getters test_sysctl: Group node sysctl test under one func test_sysctl: Add an unregister sysctl test test_sysctl: Add an option to prevent test skip test_sysclt: Test for registering a mount point sysctl: Remove debugging dump_stack sysctl: replace child with an enumeration Luis Chamberlain (4): sysctl: remove empty dev table signal: move show_unhandled_signals sysctl to its own file sysctl: move umh sysctl registration to its own file sysctl: move security keys sysctl registration to its own file drivers/parport/procfs.c | 185 ++++++++++++----------- drivers/parport/share.c | 2 +- fs/proc/proc_sysctl.c | 244 +++---------------------------- fs/sysctls.c | 5 +- include/linux/key.h | 3 - include/linux/parport.h | 2 + include/linux/sysctl.h | 45 ++---- include/linux/umh.h | 2 - kernel/signal.c | 23 +++ kernel/sysctl.c | 40 +---- kernel/umh.c | 11 +- lib/test_sysctl.c | 91 +++++++++++- scripts/check-sysctl-docs | 10 -- security/keys/sysctl.c | 7 + tools/testing/selftests/sysctl/sysctl.sh | 115 +++++++++++---- 15 files changed, 351 insertions(+), 434 deletions(-)
Comments
The pull request you sent on Wed, 28 Jun 2023 11:24:25 -0700:
> git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/ tags/v6.5-rc1-sysctl-next
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/6a8cbd9253abc1bd0df4d60c4c24fa555190376d
Thank you!