commit | d622b89a2f58613a9c1407b22b02aecdd2187a7c | [log] [tgz] |
---|---|---|
author | Tao Ma <tao.ma@oracle.com> | Sat Jan 30 23:32:19 2010 +0800 |
committer | Joel Becker <joel.becker@oracle.com> | Tue Feb 02 18:14:20 2010 -0800 |
tree | 4987446f5308b324e74dd4bcc0da7c15f728d019 | |
parent | 26636bf6b2010aa84c54d577231e017ba71493d0 [diff] |
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 <tao.ma@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>