From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) (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 C16F54A2E21; Wed, 19 Aug 2026 18:16:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.97.179.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787163370; cv=none; b=cBIJyl5e+NoJdUaTCXxvw8S+vpg9N2NcmRBgFYuqdo9bYib8PB+EciPSAEt5HVBVtp0lZD7Fj4IwHMvJf6Wi3REW6UZTeTR99EL9mJ9GbcSbw/9jgWmVJzW8PwTSSGWDEUOAe9yD9H+9UWH5zdqYOhkEvUEtstqfuInSoHEdt+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787163370; c=relaxed/simple; bh=YGnndkyJz+5FcFnyiRJNeZgq4ppwAqnOYIuLjGZwL9I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rsQiebV1MAQxUgrp3U91rY6dgF7Tx2As0MCT63GsP/lDTFryBunC3pjnwGJd1MBLHQ3CiKhG/i6Pbbo0AxvpUOfe+5owggj0k+B9AFxrGCqbL6LEZ7PN1bRMROQ5pcODQ3hcHsgWZeuzqE5msGcfqkOz0i/s2Q6J5viuUBDZGUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=qC3QekU8; arc=none smtp.client-ip=213.97.179.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="qC3QekU8" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Cc:To:Message-Id:Content-Transfer-Encoding:Content-Type: MIME-Version:Subject:Date:From:From:Reply-To; bh=ejMylrBJLD/RiSl9pzRqjWJL0id2KLBq0dPByhCupIc=; b=qC3QekU8LcLUtIfZnNeTZcPd71 p5zsUzeyCNS89SPyLFrKlih+UqpUsSnE1uYZQbCbJm4vLP80WBnOBfjuV+wOfWgWlZKCJ23fG7wIt MPNUl6u3dh5ohGQ9foDpzunb6pkidUsf4fFsBi3OjT41Ce0hEAcoR2SyZy/3lM05AaaIKQ2kFd+bt nfBElxipJVjzC6lbIGPtHN/ymdTmDBwXhrGF4NwPH4JZr5BbjlccQ+p9xodwaJRSTb1goQJo9umDb fcQ8+1iimu5Cr1rXCzQD+owsME2B+gArhPqTOelPBQ1c9ER0sOt52+dllNt8l722BfEvhNne2xk7/ +9C2q/FA==; Received: from 186-249-147-181.shared.desktop.com.br ([186.249.147.181] helo=[127.0.1.1]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1wwkpV-006ENH-W9; Wed, 19 Aug 2026 20:16:02 +0200 From: Mauricio Faria de Oliveira Date: Wed, 19 Aug 2026 15:16:15 -0300 Subject: [PATCH RFC v3 02/13] proc: add config option SYSCTL_MODULE_ALIASES Precedence: bulk X-Mailing-List: lvs-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260819-sysctl-module-aliases-v3-2-aab90569365d@igalia.com> References: <20260819-sysctl-module-aliases-v3-0-aab90569365d@igalia.com> In-Reply-To: <20260819-sysctl-module-aliases-v3-0-aab90569365d@igalia.com> To: Kees Cook , Joel Granados , Nathan Chancellor , Nicolas Schier , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman Cc: kernel-dev@igalia.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, fsverity@lists.linux.dev, keyrings@vger.kernel.org, bpf@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kbuild@vger.kernel.org, netdev@vger.kernel.org, linux-wpan@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-sctp@vger.kernel.org, linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, bridge@lists.linux.dev, mptcp@lists.linux.dev, rds-devel@oss.oracle.com, virtualization@lists.linux.dev, Mauricio Faria de Oliveira X-Mailer: b4 0.14.2 Add a config option for the 'sysctl:' module aliases feature. Signed-off-by: Mauricio Faria de Oliveira --- fs/proc/Kconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/fs/proc/Kconfig b/fs/proc/Kconfig index 24f5a36f45df8b1d6831a0f4011c1f6b1987cb52..ea77cb2b0b0e3e52ff2d19d9bb16d5a3f5ab8162 100644 --- a/fs/proc/Kconfig +++ b/fs/proc/Kconfig @@ -98,6 +98,19 @@ config SYSCTL building a kernel for install/rescue disks or your system is very limited in memory. +config SYSCTL_MODULE_ALIASES + bool "'sysctl:' module aliases (EXPERIMENTAL)" + depends on SYSCTL && MODULES + default n + help + The /proc/sys files registered by a module do not exist until the + module is loaded; meanwhile, userspace cannot find or access them. + + This option adds 'sysctl:*//' module aliases for the + /proc/sys files registered by modules, so modules for nonexistent + files can be loaded with 'modprobe sysctl:/proc/sys//' + by userspace when needed. + config PROC_PAGE_MONITOR default y depends on PROC_FS && MMU -- 2.47.3 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3AAA2C5DF81 for ; Wed, 19 Aug 2026 18:16:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Jgev/aQ8JSDHZ4mKwOn6NcIsMhFUTd4w4/7paUwOu2Q=; b=mnNMfU40ujwz/8 uhgCiSuzqs1FSvZOsLlyaUXbx/Y/FFSA7MWxG1LO7hnDKM1CExmyfnQoDZq1Q6PopTfxUUVcX2N8p fkNKtk6+ThCDxdbeixh/TN8byPFSYo0ltBlEt+rRVPiHXcoeeceOUhh+NkEih2xkeULQBCg3Au6AI ZvmADTpTD4g1kiDssdir25mQblsBXIh7C4r7SYozLspLiPHjENSJ/8kujz8PukvDOI64vK6wcktBi pcl0ClLEtfF2tS0Rwk2zBLtynzmmrrMAtekeAAlseJy/+Qn+vtFZj/UzuO1Cwp76YthTKMBOfwaY2 QPwP9x3bkRBUZnmZpjEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wwkpl-0000000AKrK-3r8g; Wed, 19 Aug 2026 18:16:17 +0000 Received: from fanzine2.igalia.com ([213.97.179.56]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wwkpi-0000000AKq1-1ldF for linux-riscv@lists.infradead.org; Wed, 19 Aug 2026 18:16:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Cc:To:Message-Id:Content-Transfer-Encoding:Content-Type: MIME-Version:Subject:Date:From:From:Reply-To; bh=ejMylrBJLD/RiSl9pzRqjWJL0id2KLBq0dPByhCupIc=; b=qC3QekU8LcLUtIfZnNeTZcPd71 p5zsUzeyCNS89SPyLFrKlih+UqpUsSnE1uYZQbCbJm4vLP80WBnOBfjuV+wOfWgWlZKCJ23fG7wIt MPNUl6u3dh5ohGQ9foDpzunb6pkidUsf4fFsBi3OjT41Ce0hEAcoR2SyZy/3lM05AaaIKQ2kFd+bt nfBElxipJVjzC6lbIGPtHN/ymdTmDBwXhrGF4NwPH4JZr5BbjlccQ+p9xodwaJRSTb1goQJo9umDb fcQ8+1iimu5Cr1rXCzQD+owsME2B+gArhPqTOelPBQ1c9ER0sOt52+dllNt8l722BfEvhNne2xk7/ +9C2q/FA==; Received: from 186-249-147-181.shared.desktop.com.br ([186.249.147.181] helo=[127.0.1.1]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1wwkpV-006ENH-W9; Wed, 19 Aug 2026 20:16:02 +0200 From: Mauricio Faria de Oliveira Date: Wed, 19 Aug 2026 15:16:15 -0300 Subject: [PATCH RFC v3 02/13] proc: add config option SYSCTL_MODULE_ALIASES MIME-Version: 1.0 Message-Id: <20260819-sysctl-module-aliases-v3-2-aab90569365d@igalia.com> References: <20260819-sysctl-module-aliases-v3-0-aab90569365d@igalia.com> In-Reply-To: <20260819-sysctl-module-aliases-v3-0-aab90569365d@igalia.com> To: Kees Cook , Joel Granados , Nathan Chancellor , Nicolas Schier , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman Cc: kernel-dev@igalia.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, fsverity@lists.linux.dev, keyrings@vger.kernel.org, bpf@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kbuild@vger.kernel.org, netdev@vger.kernel.org, linux-wpan@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-sctp@vger.kernel.org, linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, bridge@lists.linux.dev, mptcp@lists.linux.dev, rds-devel@oss.oracle.com, virtualization@lists.linux.dev, Mauricio Faria de Oliveira X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260819_111615_327252_80D3609B X-CRM114-Status: UNSURE ( 9.25 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add a config option for the 'sysctl:' module aliases feature. Signed-off-by: Mauricio Faria de Oliveira --- fs/proc/Kconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/fs/proc/Kconfig b/fs/proc/Kconfig index 24f5a36f45df8b1d6831a0f4011c1f6b1987cb52..ea77cb2b0b0e3e52ff2d19d9bb16d5a3f5ab8162 100644 --- a/fs/proc/Kconfig +++ b/fs/proc/Kconfig @@ -98,6 +98,19 @@ config SYSCTL building a kernel for install/rescue disks or your system is very limited in memory. +config SYSCTL_MODULE_ALIASES + bool "'sysctl:' module aliases (EXPERIMENTAL)" + depends on SYSCTL && MODULES + default n + help + The /proc/sys files registered by a module do not exist until the + module is loaded; meanwhile, userspace cannot find or access them. + + This option adds 'sysctl:*//' module aliases for the + /proc/sys files registered by modules, so modules for nonexistent + files can be loaded with 'modprobe sysctl:/proc/sys//' + by userspace when needed. + config PROC_PAGE_MONITOR default y depends on PROC_FS && MMU -- 2.47.3 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv