Seems like it'd be easy to filter out *that* specific use (getting the kernel version number), and report all the other uses. This also argues that the kernel will probably need to support this specific sysctl even if it deprecates and ultimately removes other sysctl support. After all, we have statically linked binaries out there.
Re-deprecating sysctl()
Posted Aug 30, 2007 20:01 UTC (Thu) by ebiederm (subscriber, #35028)
[Link]
And that is what I implemented in my patch.
A printk that logs when you use it and with which program and that
filters out the glibc usage.
Not that the glibc usage is a big deal because it is just a check for
non-SMP to optimize pthreads so any value gives you correctly running
code.