linux-stable-rt/fs/ext3
Andries E. Brouwer b47b6f38e5 ext3, ext4: avoid divide by zero
As it turns out, the kernel divides by EXT3_INODES_PER_GROUP(s) when
mounting an ext3 filesystem.  If that number is zero, a crash follows.
Below a patch.

This crash was reported by Joeri de Ruiter, Carst Tankink and Pim Vullers.

Cc: <linux-ext4@vger.kernel.org>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-12-17 19:28:16 -08:00
..
Makefile
acl.c
acl.h
balloc.c Revert "ext2/ext3/ext4: add block bitmap validation" 2007-11-13 08:09:11 -08:00
bitmap.c
dir.c Fix 64KB blocksize in ext3 directories 2007-11-14 18:45:43 -08:00
ext3_jbd.c
file.c
fsync.c
hash.c
ialloc.c
inode.c
ioctl.c Forbid user to change file flags on quota files 2007-11-14 18:45:38 -08:00
namei.c Fix 64KB blocksize in ext3 directories 2007-11-14 18:45:43 -08:00
namei.h
resize.c
super.c ext3, ext4: avoid divide by zero 2007-12-17 19:28:16 -08:00
symlink.c
xattr.c
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c