From: Eric Dumazet Date: Tue, 2 Aug 2005 04:11:43 +0000 (-0700) Subject: [PATCH] sys_set_mempolicy() doesnt check if mode < 0 X-Git-Tag: v2.6.13-rc5~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba17101b41977f124948e0a7797fdcbb59e19f3e;p=pandora-kernel.git [PATCH] sys_set_mempolicy() doesnt check if mode < 0 A kernel BUG() is triggered by a call to set_mempolicy() with a negative first argument. This is because the mode is declared as an int, and the validity check doesnt check < 0 values. Alternatively, mode could be declared as unsigned int or unsigned long. Signed-off-by: Eric Dumazet Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed