]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: always check block group bounds in ext4_init_block_bitmap()
authorTheodore Ts'o <tytso@mit.edu>
Thu, 14 Jun 2018 03:00:48 +0000 (23:00 -0400)
committerBrian Maly <brian.maly@oracle.com>
Tue, 5 Mar 2019 20:00:19 +0000 (15:00 -0500)
commitaf56b80da43c34857ccd715e8178dedbf4aaa9c8
treea85e625b01d8b783116b2338a6f132d09f1d8083
parentdc5c343c360846c502f23557d0e3bf85ecdff2ef
ext4: always check block group bounds in ext4_init_block_bitmap()

commit 819b23f1c501b17b9694325471789e6b5cc2d0d2 upstream.

Regardless of whether the flex_bg feature is set, we should always
check to make sure the bits we are setting in the block bitmap are
within the block group bounds.

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 ac48bb9bc0a32f5a4432be1645b57607f8c46aa7)

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/balloc.c