kernel-ark/fs/ext3
Mingming Cao fcd5df3588 [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>
2006-06-25 10:01:07 -07:00
..
acl.c
acl.h
balloc.c
bitmap.c
dir.c
file.c
fsync.c
hash.c
ialloc.c
inode.c
ioctl.c
Makefile
namei.c
namei.h
resize.c [PATCH] Avoid disk sector_t overflow for >2TB ext3 filesystem 2006-06-25 10:01:07 -07:00
super.c [PATCH] Avoid disk sector_t overflow for >2TB ext3 filesystem 2006-06-25 10:01:07 -07:00
symlink.c
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c
xattr.h