From: Jan Kara Date: Thu, 19 Aug 2010 21:13:33 +0000 (-0700) Subject: lib/radix-tree.c: fix overflow in radix_tree_range_tag_if_tagged() X-Git-Tag: v2.6.36-rc2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5ed3a4af77b851b6271ad3d9abc4c57fa3ce0f5;p=pandora-kernel.git lib/radix-tree.c: fix overflow in radix_tree_range_tag_if_tagged() When radix_tree_maxindex() is ~0UL, it can happen that scanning overflows index and tree traversal code goes astray reading memory until it hits unreadable memory. Check for overflow and exit in that case. Signed-off-by: Jan Kara Cc: Christoph Hellwig Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed