OSDN Git Service

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)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 14 Jun 2018 03:00:48 +0000 (23:00 -0400)
commit819b23f1c501b17b9694325471789e6b5cc2d0d2
tree207be1b910f9777735a6fc92427ed8f95625b4f4
parent513f86d73855ce556ea9522b6bfd79f87356dc3a
ext4: always check block group bounds in ext4_init_block_bitmap()

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