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-- 1.7 KB
Makefile -rw-r--r-- 272 bytes
compress.c -rw-r--r-- 10.2 KB
dir.c -rw-r--r-- 6.7 KB
export.c -rw-r--r-- 5.2 KB
inode.c -rw-r--r-- 37.8 KB
isofs.h -rw-r--r-- 6.0 KB
joliet.c -rw-r--r-- 1.3 KB
namei.c -rw-r--r-- 4.4 KB
rock.c -rw-r--r-- 17.5 KB
rock.h -rw-r--r-- 2.3 KB
util.c -rw-r--r-- 2.4 KB
zisofs.h -rw-r--r-- 807 bytes

back to top