Skip to content

Cleanup sysctl

Eric W. Biederman linux-mips linux-scsi linux-xfs linuxppc-dev lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest59 patches 43 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/59sysctl x25: Remove unnecessary insert_at_head from register_sysctl_table.net/x25/sysctl_net_x25.c+1 -10 replies
2/59sysctl: Move CTL_SUNRPC to sysctl.h where it belongsinclude/linux/sunrpc/debug.h include/linux/sysctl.h+2 -20 replies
3/59sysctl: sunrpc Remove unnecessary insert_at_head flagnet/sunrpc/sysctl.c net/sunrpc/xprtsock.c+2 -20 replies
4/59sysctl: sunrpc Don't unnecessarily set ctl_table->denet/sunrpc/sysctl.c net/sunrpc/xprtsock.c+2 -130 replies
5/59sysctl: rose remove unnecessary insert_at_head flagnet/rose/sysctl_net_rose.c+1 -11 reply
6/59sysctl: netrom remove unnecessary insert_at_head flagnet/netrom/sysctl_net_netrom.c+1 -10 replies
7/59sysctl: llc remove unnecessary insert_at_head flagnet/llc/sysctl_net_llc.c+1 -10 replies
8/59sysctl: ipx remove unnecessary insert_at_head flagnet/ipx/sysctl_net_ipx.c+1 -10 replies
9/59sysctl: decnet remove unnecessary insert_at_head flagnet/decnet/sysctl_net_decnet.c+1 -10 replies
10/59sysctl: dccp remove unnecessary insert_at_head flagnet/dccp/sysctl.c+1 -10 replies
11/59sysctl: ax25 remove unnecessary insert_at_head flagnet/ax25/sysctl_net_ax25.c+1 -10 replies
12/59sysctl: atalk remove unnecessary insert_at_head flagnet/appletalk/sysctl_net_atalk.c+1 -10 replies
13/59sysctl: xfs remove unnecessary insert_at_head flagfs/xfs/linux-2.6/xfs_sysctl.c+1 -10 replies
14/59sysctl: C99 convert xfs ctl_tablesfs/xfs/linux-2.6/xfs_sysctl.c+180 -785 replies
15/59sysctl: scsi remove unnecessary insert_at_head flagdrivers/scsi/scsi_sysctl.c+1 -10 replies
16/59sysctl: md Remove unnecessary insert_at_head flagdrivers/md/md.c+1 -10 replies
17/59sysctl: mac_hid remove unnecessary insert_at_head flagdrivers/macintosh/mac_hid.c+1 -10 replies
18/59sysctl: ipmi remove unnecessary insert_at_head flagdrivers/char/ipmi/ipmi_poweroff.c+1 -11 reply
19/59sysctl: cdrom remove unnecessary insert_at_head flagdrivers/cdrom/cdrom.c+1 -10 replies
20/59sysctl: cdrom Don't set de->ownerdrivers/cdrom/cdrom.c+0 -21 reply
21/59sysctl: Move CTL_PM into sysctl.h where it belongs.arch/frv/kernel/pm.c include/linux/sysctl.h+1 -10 replies
22/59sysctl: frv pm remove unnecessary insert_at_head flagarch/frv/kernel/pm.c+1 -10 replies
23/59sysctl: Move CTL_FRV into sysctl.h where it belongsarch/frv/kernel/sysctl.c include/linux/sysctl.h+1 -10 replies
24/59sysctl: frv remove unnecessary insert_at_head flagarch/frv/kernel/sysctl.c+1 -10 replies
25/59sysctl: C99 convert arch/frv/kernel/pm.carch/frv/kernel/pm.c+43 -73 replies
26/59sysctl: C99 convert arch/frv/kernel/sysctl.carch/frv/kernel/sysctl.c+24 -50 replies
27/59sysctl: sn Remove sysctl ABI BREAKAGEarch/ia64/sn/kernel/xpc_main.c+6 -60 replies
28/59sysctl: C99 Convert arch/ia64/sn/kernel/xpc_main.carch/ia64/sn/kernel/xpc_main.c+38 -480 replies
29/59sysctl: C99 convert arch/ia64/kernel/perfmon and remove ABI breakagearch/ia64/kernel/perfmon.c+47 -90 replies
30/59sysctl: mips/au1000 Remove sys_sysctl supportarch/mips/au1000/common/power.c+5 -110 replies
31/59sysctl: C99 convert the ctl_tables in arch/mips/au1000/common/power.carch/mips/au1000/common/power.c+32 -61 reply
32/59sysctl: C99 convert arch/mips/lasat/sysctl.c and remove ABI breakage.arch/mips/lasat/sysctl.c+116 -290 replies
33/59sysctl: s390 move sysctl definitions to sysctl.harch/s390/appldata/appldata.h arch/s390/kernel/debug.c arch/s390/mm/cmm.c +1 more+8 -71 reply
34/59sysctl: s390 Remove unnecessary use of insert_at_headarch/s390/appldata/appldata_base.c arch/s390/kernel/debug.c arch/s390/mm/cmm.c+4 -40 replies
35/59sysctl: C99 convert ctl_tables in arch/powerpc/kernel/idle.carch/powerpc/kernel/idle.c+8 -31 reply
36/59sysctl: C99 convert ctl_tables entries in arch/ppc/kernel/ppc_htab.carch/ppc/kernel/ppc_htab.c+8 -31 reply
37/59sysctl: C99 convert arch/sh64/kernel/traps.c and remove ABI breakage.arch/sh64/kernel/traps.c+38 -111 reply
38/59sysctl: x86_64 Remove unnecessary use of insert_at_headarch/x86_64/ia32/ia32_binfmt.c arch/x86_64/mm/init.c+2 -20 replies
39/59sysctl: C99 convert ctl_tables in arch/x86_64/ia32/ia32_binfmt.carch/x86_64/ia32/ia32_binfmt.c+20 -100 replies
40/59sysctl: C99 convert ctl_tables in arch/x86_64/kernel/vsyscall.carch/x86_64/kernel/vsyscall.c+2 -20 replies
41/59sysctl: C99 convert ctl_tables in arch/x86_64/mm/init.carch/x86_64/mm/init.c+16 -60 replies
42/59sysctl: Remove sys_sysctl support from the hpet timer driver.drivers/char/hpet.c+2 -21 reply
43/59sysctl: Remove sys_sysctl support from drivers/char/rtc.cdrivers/char/rtc.c+2 -40 replies
44/59sysctl: Register the sysctl number used by the arlan driver.drivers/net/wireless/arlan-proc.c include/linux/sysctl.h+2 -10 replies
45/59sysctl: C99 convert ctl_tables in drivers/parport/procfs.cdrivers/parport/procfs.c+189 -752 replies
46/59sysctl: C99 convert coda ctl_tables and remove binary sysctls.fs/coda/sysctl.c+48 -100 replies
47/59sysctl: C99 convert ctl_tables in NTFS and remove sys_sysctl supportfs/ntfs/sysctl.c+16 -80 replies
48/59sysctl: Register the ocfs2 sysctl numbersfs/ocfs2/cluster/nodemanager.c fs/ocfs2/cluster/nodemanager.h include/linux/sysctl.h+4 -41 reply
49/59sysctl: Move init_irq_proc into init/main where it belongsinit/main.c kernel/sysctl.c+3 -31 reply
50/59sysctl: Move utsname sysctls to their own filekernel/Makefile kernel/sysctl.c kernel/utsname_sysctl.c+147 -1153 replies
51/59sysctl: Move SYSV IPC sysctls to their own fileinit/Kconfig ipc/Makefile ipc/ipc_sysctl.c +1 more+189 -1741 reply
52/59sysctl: Create sys/fs/binfmt_misc as an ordinary sysctl entryfs/proc/root.c kernel/sysctl.c+13 -40 replies
53/59sysctl: Remove support for CTL_ANYinclude/linux/sysctl.h kernel/sysctl.c+1 -20 replies
54/59sysctl: Remove support for directory strategy routines.kernel/sysctl.c+0 -80 replies
55/59sysctl: Remove insert_at_head from register_sysctlarch/arm/kernel/isa.c arch/frv/kernel/pm.c arch/frv/kernel/sysctl.c +65 more+75 -800 replies
56/59sysctl: factor out sysctl_head_next from do_sysctlinclude/linux/sysctl.h kernel/sysctl.c+46 -150 replies
57/59sysctl: allow sysctl_perm to be called from outside of sysctl.cinclude/linux/sysctl.h kernel/sysctl.c+7 -50 replies
58/59sysctl: Reimplement the sysctl proc supportfs/proc/Makefile fs/proc/inode.c fs/proc/internal.h +4 more+484 -1946 replies
59/59sysctl: Remove the proc_dir_entry member for the sysctl tables.include/linux/sysctl.h net/decnet/dn_dev.c net/ipv4/devinet.c +1 more+0 -160 replies

Reviews trailers per patch

7 of 59 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRalf BaechlePaul MundtBenjamin HerrenschmidtClemens LadischMartin SchwidefskyKirill KorotaevDavid Howells
SeriesA-b A-b
1/59
2/59
3/59
4/59
5/59A-b
6/59
7/59
8/59
9/59
10/59
11/59
12/59
13/59
14/59
15/59
16/59
17/59
18/59A-b
19/59
20/59
21/59
22/59
23/59
24/59
25/59A-b
26/59
27/59
28/59
29/59
30/59
31/59
32/59
33/59
34/59
35/59A-b
36/59A-b
37/59A-b
38/59
39/59
40/59
41/59
42/59A-b
43/59
44/59
45/59
46/59
47/59
48/59
49/59
50/59
51/59
52/59
53/59
54/59
55/59
56/59
57/59
58/59
59/59

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v1 thread

Cover letter [PATCH 0/59] Cleanup sysctl

There has not been much maintenance on sysctl in years, and as a result is there is a lot to do to allow future interesting work to happen, and being ambitious I'm trying to do it all at once :)

The patches in this series fall into several general categories.

- Removal of useless attempts to override the standard sysctls

- Registers of sysctl numbers in sysctl.h so someone else does not use the magic number and conflict.

- C99 conversions so it becomes possible to change the layout of struct ctl_table without breaking everything.

- Removal of useless claims of module ownership, in the proc dir entries

- Removal of sys_sysctl support where people had used conflicting sysctl numbers. Trying to break glibc or other applications by changing the ABI is not cool. 9 instances of this in the kernel seems a little extreme.

- General enhancements when I got the junk I could see out.

Odds are I missed something, most of the cleanups are simply a result of me working on the sysctl core and glancing at the users and going: What?

Eric