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
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 936 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 172.4 KB
Makefile -rw-r--r-- 50.5 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top