]> git.hungrycats.org Git - linux/commit
[PATCH] add range checking to sys_sysctl()
authorAndrew Morton <akpm@osdl.org>
Sun, 22 Feb 2004 15:04:55 +0000 (07:04 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 22 Feb 2004 15:04:55 +0000 (07:04 -0800)
commitdf84e5eb0ee0c942fcaa4408ac9d43b9cf73b352
treefdc727d418e2d620ec583be830aadaf76e28b55f
parent93d1187270d54f53b8516dd8e88dc7f2ec883905
[PATCH] add range checking to sys_sysctl()

If you pass a huge nlen value into sys_sysctl() it will loop for hours
printing billions of question marks, so range-check the arguments.

Also, remove the code which informs the user that the sysctl is obsolete: it
allows unprivileged users to spam the logs.
kernel/sysctl.c