summaryrefslogtreecommitdiffstats
path: root/fs/ext4/symlink.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2010-05-16 01:00:00 -0400
committerTheodore Ts'o <tytso@mit.edu>2010-05-16 01:00:00 -0400
commit42007efd569f1cf3bfb9a61da60ef6c2179508ca (patch)
tree70db30db1fcf756d95db1ef02452e4cb062ebdd4 /fs/ext4/symlink.c
parent35121c9860316d7799cea0fbc359a9186e7c2747 (diff)
downloadtalos-obmc-linux-42007efd569f1cf3bfb9a61da60ef6c2179508ca.tar.gz
talos-obmc-linux-42007efd569f1cf3bfb9a61da60ef6c2179508ca.zip
ext4: check s_log_groups_per_flex in online resize code
If groups_per_flex < 2, sbi->s_flex_groups[] doesn't get filled out, and every other access to this first tests s_log_groups_per_flex; same thing needs to happen in resize or we'll wander off into a null pointer when doing an online resize of the file system. Thanks to Christoph Biedl, who came up with the trivial testcase: # truncate --size 128M fsfile # mkfs.ext3 -F fsfile # tune2fs -O extents,uninit_bg,dir_index,flex_bg,huge_file,dir_nlink,extra_isize fsfile # e2fsck -yDf -C0 fsfile # truncate --size 132M fsfile # losetup /dev/loop0 fsfile # mount /dev/loop0 mnt # resize2fs -p /dev/loop0 https://bugzilla.kernel.org/show_bug.cgi?id=13549 Reported-by: Alessandro Polverini <alex@nibbles.it> Test-case-by: Christoph Biedl <bugzilla.kernel.bpeb@manchmal.in-ulm.de> Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/symlink.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud