From: Tao Ma Date: Sat, 30 Jan 2010 15:32:19 +0000 (+0800) Subject: ocfs2: Fix memory overflow in cow_by_page. X-Git-Tag: v2.6.33-rc8~38^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d622b89a2f58613a9c1407b22b02aecdd2187a7c;p=pandora-kernel.git ocfs2: Fix memory overflow in cow_by_page. In ocfs2_duplicate_clusters_by_page, we calculate map_end by shifting page_index. But actually in case we meet with a large offset(say in a i686 box, poff_t is only 32 bits and page_index=2056240), we will overflow. So change the type of page_index to loff_t. Signed-off-by: Tao Ma Signed-off-by: Joel Becker --- Reading git-diff-tree failed