kernel_optimize_test/fs/ext4
Theodore Ts'o f0a459dec5 ext4: fix online resize's handling of a too-small final block group
Avoid growing the file system to an extent so that the last block
group is too small to hold all of the metadata that must be stored in
the block group.

This problem can be triggered with the following reproducer:

umount /mnt
mke2fs -F -m0 -b 4096 -t ext4 -O resize_inode,^has_journal \
	-E resize=1073741824 /tmp/foo.img 128M
mount /tmp/foo.img /mnt
truncate --size 1708M /tmp/foo.img
resize2fs /dev/loop0 295400
umount /mnt
e2fsck -fy /tmp/foo.img

Reported-by: Torsten Hilbrich <torsten.hilbrich@secunet.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
2018-09-03 22:19:43 -04:00
..
acl.c
acl.h
balloc.c ext4: use ext4_warning() for sb_getblk failure 2018-08-01 12:02:31 -04:00
bitmap.c
block_validity.c
dir.c ext4: avoid divide by zero fault when deleting corrupted inline directories 2018-08-27 09:22:45 -04:00
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
ext4.h ext4: avoid arithemetic overflow that can trigger a BUG 2018-09-01 12:45:04 -04:00
extents_status.c
extents_status.h
extents.c ext4: handle layout changes to pinned DAX mappings 2018-07-29 17:00:22 -04:00
file.c
fsmap.c
fsmap.h
fsync.c
hash.c
ialloc.c ext4: use ext4_warning() for sb_getblk failure 2018-08-01 12:02:31 -04:00
indirect.c
inline.c ext4: avoid divide by zero fault when deleting corrupted inline directories 2018-08-27 09:22:45 -04:00
inode.c ext4: avoid arithemetic overflow that can trigger a BUG 2018-09-01 12:45:04 -04:00
ioctl.c
Kconfig
Makefile
mballoc.c ext4: remove unneeded variable "err" in ext4_mb_release_inode_pa() 2018-08-04 17:34:07 -04:00
mballoc.h
migrate.c
mmp.c
move_extent.c
namei.c ext4: check to make sure the rename(2)'s destination is not freed 2018-08-27 01:47:09 -04:00
page-io.c
readpage.c
resize.c ext4: fix online resize's handling of a too-small final block group 2018-09-03 22:19:43 -04:00
super.c ext4: recalucate superblock checksum after updating free blocks/inodes 2018-09-01 14:42:14 -04:00
symlink.c
sysfs.c
truncate.h ext4: handle layout changes to pinned DAX mappings 2018-07-29 17:00:22 -04:00
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c ext4: check for NUL characters in extended attribute's name 2018-08-01 12:36:52 -04:00
xattr.h