]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerBrian Maly <brian.maly@oracle.com>
Tue, 5 Mar 2019 19:59:51 +0000 (14:59 -0500)
commitdc5c343c360846c502f23557d0e3bf85ecdff2ef
treefb3786b36469257585e8f4d34eed440b1563be66
parentafd8ee1656da7856792da9ae7c9bac0bd971db7b
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>
(cherry picked from commit ac93c718365ac6ea9d7631641c8dec867d623491)

Orabug: 29428607
CVE: CVE-2018-10878

Signed-off-by: John Donnelly <John.P.Donnelly@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
fs/ext4/super.c