]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: don't remount read-only with errors=continue on reboot
authorJan Kara <jack@suse.cz>
Fri, 27 Nov 2020 11:33:54 +0000 (12:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Jan 2021 13:48:36 +0000 (14:48 +0100)
commit11459136a107bd45fdf786a922ee03b7dbb65c87
treeb9a99aef6c7981a4e7908dc29f96a391900ef943
parent6b0a4f603d5b209af45ee973b0f8a2e1838e7b4a
ext4: don't remount read-only with errors=continue on reboot

[ Upstream commit b08070eca9e247f60ab39d79b2c25d274750441f ]

ext4_handle_error() with errors=continue mount option can accidentally
remount the filesystem read-only when the system is rebooting. Fix that.

Fixes: 1dc1097ff60e ("ext4: avoid panic during forced reboot")
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Cc: stable@kernel.org
Link: https://lore.kernel.org/r/20201127113405.26867-2-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/super.c