This is a note to let you know that I've just added the patch titled ext4: handle error of ext4_setup_system_zone() on remount to the 4.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: ext4-handle-error-of-ext4_setup_system_zone-on-remount.patch and it can be found in the queue-4.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From foo@baz Wed Mar 17 06:09:14 PM CET 2021 From: Jan Kara <jack@xxxxxxx> Date: Wed, 17 Mar 2021 17:44:12 +0100 Subject: ext4: handle error of ext4_setup_system_zone() on remount To: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx>, Jan Kara <jack@xxxxxxx>, Lukas Czerner <lczerner@xxxxxxxxxx>, Theodore Ts'o <tytso@xxxxxxx> Message-ID: <20210317164414.17364-2-jack@xxxxxxx> From: Jan Kara <jack@xxxxxxx> commit d176b1f62f242ab259ff665a26fbac69db1aecba upstream. ext4_setup_system_zone() can fail. Handle the failure in ext4_remount(). Reviewed-by: Lukas Czerner <lczerner@xxxxxxxxxx> Signed-off-by: Jan Kara <jack@xxxxxxx> Link: https://lore.kernel.org/r/20200728130437.7804-2-jack@xxxxxxx Signed-off-by: Theodore Ts'o <tytso@xxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/ext4/super.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -4968,7 +4968,10 @@ static int ext4_remount(struct super_blo ext4_register_li_request(sb, first_not_zeroed); } - ext4_setup_system_zone(sb); + err = ext4_setup_system_zone(sb); + if (err) + goto restore_opts; + if (sbi->s_journal == NULL && !(old_sb_flags & MS_RDONLY)) ext4_commit_super(sb, 1); Patches currently in stable-queue which might be from jack@xxxxxxx are queue-4.4/ext4-handle-error-of-ext4_setup_system_zone-on-remount.patch queue-4.4/ext4-check-journal-inode-extents-more-carefully.patch queue-4.4/ext4-don-t-allow-overlapping-system-zones.patch