diff options
author | Tao Ma <tao.ma@oracle.com> | 2010-01-30 23:32:19 +0800 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-02-02 18:14:20 -0800 |
commit | d622b89a2f58613a9c1407b22b02aecdd2187a7c (patch) | |
tree | 4987446f5308b324e74dd4bcc0da7c15f728d019 /firmware | |
parent | 26636bf6b2010aa84c54d577231e017ba71493d0 (diff) | |
download | blackbird-op-linux-d622b89a2f58613a9c1407b22b02aecdd2187a7c.tar.gz blackbird-op-linux-d622b89a2f58613a9c1407b22b02aecdd2187a7c.zip |
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>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions