https://github.com/torvalds/linux
Revision d5ed3a4af77b851b6271ad3d9abc4c57fa3ce0f5 authored by Jan Kara on 19 August 2010, 21:13:33 UTC, committed by Linus Torvalds on 20 August 2010, 16:34:55 UTC
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 <jack@suse.cz>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f2e41e9
History
Tip revision: d5ed3a4af77b851b6271ad3d9abc4c57fa3ce0f5 authored by Jan Kara on 19 August 2010, 21:13:33 UTC
lib/radix-tree.c: fix overflow in radix_tree_range_tag_if_tagged()
Tip revision: d5ed3a4
File Mode Size
Kconfig -rw-r--r-- 451 bytes
Makefile -rw-r--r-- 156 bytes
configfs_internal.h -rw-r--r-- 5.0 KB
dir.c -rw-r--r-- 43.7 KB
file.c -rw-r--r-- 9.4 KB
inode.c -rw-r--r-- 7.7 KB
item.c -rw-r--r-- 5.4 KB
mount.c -rw-r--r-- 4.8 KB
symlink.c -rw-r--r-- 7.5 KB

back to top