Linux 5.5 Finally Doing Away With The SYSCTL System Call

Written by Michael Larabel in Linux Kernel on 28 November 2019 at 12:01 AM EST. 16 Comments
LINUX KERNEL
The Linux 5.5 kernel is set to finally eliminate the code backing the sysctl system call, which has been deprecated for about a decade and should have no impact on modern systems of any architecture.

The Linux sysctl system call has long been deprecated and not advised for use with the sysctl interface being exposed via /proc/sys being the preferred means of reading/setting kernel system attributes. The change for Linux 5.5 isn't touching the /proc/sys support but is just about finally removing the system call with the binary interface to sysctl on Linux having been unused now for years -- well, the hope is there are no users left but they admit to possibly needing to reverting the patch should any real users come forward of this system call.

Even back in 2011 they wanted to delete the code but in that case made SYSCTL_SYSCALL default to no. At that point the code was left in for compatibility with old C libraries but now anyone building Linux 5.5 hopefully isn't running a super vintage libc.

Eric Biederman wrote with the patch removing this syscall, "As far as I can tell we have reached the point where no one enables the sysctl system call anymore. It still is enabled in a few defconfigs but they are mostly the rarely used one and in asking people about that it was more cut & paste enabled than anything else...If my analysis turns out to be wrong and someone actually cares it will be easy to revert this commit and have the system call again."

Farewell SYSCTL_SYSCALL!
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week