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-- 3.4 KB
Makefile -rw-r--r-- 388 bytes
acl.c -rw-r--r-- 10.5 KB
acl.h -rw-r--r-- 1.5 KB
balloc.c -rw-r--r-- 54.6 KB
bitmap.c -rw-r--r-- 702 bytes
dir.c -rw-r--r-- 13.5 KB
ext3_jbd.c -rw-r--r-- 1.5 KB
file.c -rw-r--r-- 2.2 KB
fsync.c -rw-r--r-- 2.9 KB
hash.c -rw-r--r-- 4.3 KB
ialloc.c -rw-r--r-- 20.7 KB
inode.c -rw-r--r-- 101.7 KB
ioctl.c -rw-r--r-- 7.7 KB
namei.c -rw-r--r-- 66.8 KB
namei.h -rw-r--r-- 170 bytes
resize.c -rw-r--r-- 33.4 KB
super.c -rw-r--r-- 82.7 KB
symlink.c -rw-r--r-- 1.4 KB
xattr.c -rw-r--r-- 34.5 KB
xattr.h -rw-r--r-- 3.8 KB
xattr_security.c -rw-r--r-- 1.9 KB
xattr_trusted.c -rw-r--r-- 1.5 KB
xattr_user.c -rw-r--r-- 1.6 KB

back to top