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/[email protected]

To: Luis Chamberlain <[email protected]>
To: Petr Pavlu <[email protected]>
To: Sami Tolvanen <[email protected]>
To: Daniel Gomez <[email protected]>
To: Kees Cook <[email protected]>
To: Peter Zijlstra <[email protected]>
To: Ingo Molnar <[email protected]>
To: Will Deacon <[email protected]>
To: Boqun Feng <[email protected]>
To: Waiman Long <[email protected]>
To: Paul E. McKenney <[email protected]>
To: Frederic Weisbecker <[email protected]>
To: Neeraj Upadhyay <[email protected]>
To: Joel Fernandes <[email protected]>
To: Josh Triplett <[email protected]>
To: Uladzislau Rezki <[email protected]>
To: Steven Rostedt <[email protected]>
To: Mathieu Desnoyers <[email protected]>
To: Lai Jiangshan <[email protected]>
To: Zqiang <[email protected]>
To: Andrew Morton <[email protected]>
To: James E.J. Bottomley <[email protected]>
To: Helge Deller <[email protected]>
To: Greg Kroah-Hartman <[email protected]>
To: Jiri Slaby <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

Signed-off-by: Joel Granados <[email protected]>
---
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 <[email protected]>



Reply via email to