]> err.no Git - linux-2.6/commit
sysctl: check length at deprecated_sysctl_warning
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Thu, 15 Nov 2007 00:58:38 +0000 (16:58 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 15 Nov 2007 02:45:37 +0000 (18:45 -0800)
commit6fc48af82cef55546d640778698943b6227b7fb0
treeb47f618967576fecae480caedabcd45c88073541
parentdbd0cf48842700c3a694dcd32b29e63e27f37acc
sysctl: check length at deprecated_sysctl_warning

Original patch assumed args->nlen < CTL_MAXNAME, but it can be false.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sysctl.c