summaryrefslogtreecommitdiffstats
path: root/Documentation/sx.txt
diff options
context:
space:
mode:
authorMingming Cao <cmm@us.ibm.com>2006-06-25 05:47:50 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-25 10:01:07 -0700
commitfcd5df35882b128ef3e160fab3074e6fe7ae501b (patch)
tree2ffa30054f510e0fdca988d18ab28d6df12c3f06 /Documentation/sx.txt
parentb61367732fc273977cc3fb85c272ce1a7bb1f533 (diff)
downloadop-kernel-dev-fcd5df35882b128ef3e160fab3074e6fe7ae501b.zip
op-kernel-dev-fcd5df35882b128ef3e160fab3074e6fe7ae501b.tar.gz
[PATCH] Avoid disk sector_t overflow for >2TB ext3 filesystem
If ext3 filesystem is larger than 2TB, and sector_t is a u32 (i.e. CONFIG_LBD not defined in the kernel), the calculation of the disk sector will overflow. Add check at ext3_fill_super() and ext3_group_extend() to prevent mount/remount/resize >2TB ext3 filesystem if sector_t size is 4 bytes. Verified this patch on a 32 bit platform without CONFIG_LBD defined (sector_t is 32 bits long), mount refuse to mount a 10TB ext3. Signed-off-by: Mingming Cao<cmm@us.ibm.com> Acked-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation/sx.txt')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud