ext4: make sure bitmaps and the inode table don't overlap with bg descriptors
authorTheodore Ts'o <tytso@mit.edu>
Thu, 14 Jun 2018 03:08:26 +0000 (23:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jul 2018 14:26:44 +0000 (16:26 +0200)
commit9e4842f2aa6c4b4340669730c90cb6fbf630ee42
tree230b1fc7cd98eed08f5af8aaa7020a9a3c2bfaa8
parent8ef97ef67ce0f8fc3d32c7218e6b412e479ee2ab
ext4: make sure bitmaps and the inode table don't overlap with bg descriptors

commit 77260807d1170a8cf35dbb06e07461a655f67eee upstream.

It's really bad when the allocation bitmaps and the inode table
overlap with the block group descriptors, since it causes random
corruption of the bg descriptors.  So we really want to head those off
at the pass.

https://bugzilla.kernel.org/show_bug.cgi?id=199865

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c