lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250509-jag-mv_ctltables_iter2-v1-0-d0ad83f5f4c3@kernel.org>
Date: Fri, 09 May 2025 14:54:04 +0200
From: Joel Granados <joel.granados@...nel.org>
To: Luis Chamberlain <mcgrof@...nel.org>, Petr Pavlu <petr.pavlu@...e.com>, 
 Sami Tolvanen <samitolvanen@...gle.com>, 
 Daniel Gomez <da.gomez@...sung.com>, Kees Cook <kees@...nel.org>, 
 Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...hat.com>, 
 Will Deacon <will@...nel.org>, Boqun Feng <boqun.feng@...il.com>, 
 Waiman Long <longman@...hat.com>, "Paul E. McKenney" <paulmck@...nel.org>, 
 Frederic Weisbecker <frederic@...nel.org>, 
 Neeraj Upadhyay <neeraj.upadhyay@...nel.org>, 
 Joel Fernandes <joel@...lfernandes.org>, 
 Josh Triplett <josh@...htriplett.org>, Uladzislau Rezki <urezki@...il.com>, 
 Steven Rostedt <rostedt@...dmis.org>, 
 Mathieu Desnoyers <mathieu.desnoyers@...icios.com>, 
 Lai Jiangshan <jiangshanlai@...il.com>, Zqiang <qiang.zhang1211@...il.com>, 
 Andrew Morton <akpm@...ux-foundation.org>, 
 "James E.J. Bottomley" <James.Bottomley@...senPartnership.com>, 
 Helge Deller <deller@....de>, 
 Greg Kroah-Hartman <gregkh@...uxfoundation.org>, 
 Jiri Slaby <jirislaby@...nel.org>
Cc: linux-modules@...r.kernel.org, linux-kernel@...r.kernel.org, 
 linux-fsdevel@...r.kernel.org, rcu@...r.kernel.org, linux-mm@...ck.org, 
 linux-parisc@...r.kernel.org, linux-serial@...r.kernel.org, 
 Joel Granados <joel.granados@...nel.org>
Subject: [PATCH 00/12] sysctl: Move sysctls to their respective subsystems
 (second batch)

This series relocates sysctl tables from kern_table to their respective
subsystems. It is mostly moves to core kernel subsystems but also
includes mm/memory.c and 2 drivers (parisc and tty). With this series we
are left with 8 ctl_tables out of the original 50 that existed within
the kern_table array. With all this activity in kernel/sysctl.c, I took
the liberty of removing unneeded include headers as well as outdated
changelog comments.

By decentralizing sysctl registrations, subsystem maintainers regain
control over their sysctl interfaces, improving maintainability and
reducing the likelihood of merge conflicts. All this is made possible by
the work done to reduce the ctl_table memory footprint in commit
d7a76ec87195 ("sysctl: Remove check for sentinel element in ctl_table
arrays").

A few comments on the process:
1. If you see that the change is good and want to push it through a tree
   different than sysctl, please tell me so I can remove it from this
   series and try to avoid conflicts in linux-next.
2. Apologies if you have received this in error. Please tell me if you
   want to be removed from recipient list and note that it is difficult
   to actually know who is interested in these "treewide" changes.

Testing done by running sysctl selftests on x86_64 and 0-day.

You can find the first batch here [1], if you are curious.

Comments are greatly appreciated

[1] https://lore.kernel.org/20250313-jag-mv_ctltables-v3-0-91f3bb434d27@kernel.org

To: Luis Chamberlain <mcgrof@...nel.org>
To: Petr Pavlu <petr.pavlu@...e.com>
To: Sami Tolvanen <samitolvanen@...gle.com>
To: Daniel Gomez <da.gomez@...sung.com>
To: Kees Cook <kees@...nel.org>
To: Peter Zijlstra <peterz@...radead.org>
To: Ingo Molnar <mingo@...hat.com>
To: Will Deacon <will@...nel.org>
To: Boqun Feng <boqun.feng@...il.com>
To: Waiman Long <longman@...hat.com>
To: Paul E. McKenney <paulmck@...nel.org>
To: Frederic Weisbecker <frederic@...nel.org>
To: Neeraj Upadhyay <neeraj.upadhyay@...nel.org>
To: Joel Fernandes <joel@...lfernandes.org>
To: Josh Triplett <josh@...htriplett.org>
To: Uladzislau Rezki <urezki@...il.com>
To: Steven Rostedt <rostedt@...dmis.org>
To: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
To: Lai Jiangshan <jiangshanlai@...il.com>
To: Zqiang <qiang.zhang1211@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>
To: James E.J. Bottomley <James.Bottomley@...senPartnership.com>
To: Helge Deller <deller@....de>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Jiri Slaby <jirislaby@...nel.org>
Cc: linux-modules@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Cc: linux-fsdevel@...r.kernel.org
Cc: rcu@...r.kernel.org
Cc: linux-mm@...ck.org
Cc: linux-parisc@...r.kernel.org
Cc: linux-serial@...r.kernel.org

Signed-off-by: Joel Granados <joel.granados@...nel.org>
---
Joel Granados (12):
      module: Move modprobe_path and modules_disabled ctl_tables into the module subsys
      locking/rtmutex: Move max_lock_depth into rtmutex.c
      rcu: Move rcu_stall related sysctls into rcu/tree_stall.h
      mm: move randomize_va_space into memory.c
      parisc/power: Move soft-power into power.c
      fork: mv threads-max into kernel/fork.c
      Input: sysrq: mv sysrq into drivers/tty/sysrq.c
      sysctl: Move tainted ctl_table into kernel/panic.c
      sysctl: move cad_pid into kernel/pid.c
      sysctl: Move sysctl_panic_on_stackoverflow to kernel/panic.c
      sysctl: Remove (very) old file changelog
      sysctl: Remove superfluous includes from kernel/sysctl.c

 drivers/parisc/power.c       |  20 +++-
 drivers/tty/sysrq.c          |  38 +++++++
 include/linux/kmod.h         |   1 -
 include/linux/panic.h        |   2 -
 include/linux/rtmutex.h      |   2 -
 include/linux/sysctl.h       |   4 -
 kernel/fork.c                |  20 +++-
 kernel/locking/rtmutex.c     |  23 +++++
 kernel/locking/rtmutex_api.c |   5 -
 kernel/module/kmod.c         |  32 +++++-
 kernel/panic.c               |  60 +++++++++++
 kernel/pid.c                 |  32 ++++++
 kernel/rcu/tree_stall.h      |  33 +++++-
 kernel/sysctl.c              | 233 -------------------------------------------
 mm/memory.c                  |  18 ++++
 15 files changed, 271 insertions(+), 252 deletions(-)
---
base-commit: 7a94ff386a4a0d9322c56c0e998dd20468d869b1
change-id: 20250509-jag-mv_ctltables_iter2-9a176a322c9d

Best regards,
-- 
Joel Granados <joel.granados@...nel.org>



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ