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
ChangeLog -rw-r--r-- 14.0 KB
Kconfig -rw-r--r-- 948 bytes
Makefile -rw-r--r-- 164 bytes
TODO -rw-r--r-- 385 bytes
befs.h -rw-r--r-- 3.2 KB
befs_fs_types.h -rw-r--r-- 4.9 KB
btree.c -rw-r--r-- 21.9 KB
btree.h -rw-r--r-- 300 bytes
datastream.c -rw-r--r-- 15.5 KB
datastream.h -rw-r--r-- 514 bytes
debug.c -rw-r--r-- 7.6 KB
endian.h -rw-r--r-- 3.1 KB
inode.c -rw-r--r-- 1.1 KB
inode.h -rw-r--r-- 123 bytes
io.c -rw-r--r-- 1.8 KB
io.h -rw-r--r-- 190 bytes
linuxvfs.c -rw-r--r-- 24.0 KB
super.c -rw-r--r-- 3.0 KB
super.h -rw-r--r-- 134 bytes

back to top