Files
twx-linux/fs
zhangyi (F) d5e7ba4ec9 ext4, jbd2: ensure panic when aborting with zero errno
[ Upstream commit 51f57b01e4 ]

JBD2_REC_ERR flag used to indicate the errno has been updated when jbd2
aborted, and then __ext4_abort() and ext4_handle_error() can invoke
panic if ERRORS_PANIC is specified. But if the journal has been aborted
with zero errno, jbd2_journal_abort() didn't set this flag so we can
no longer panic. Fix this by always record the proper errno in the
journal superblock.

Fixes: 4327ba52af ("ext4, jbd2: ensure entering into panic after recording an error in superblock")
Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20191204124614.45424-3-yi.zhang@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-24 08:34:39 +01:00
..
…
2019-08-06 19:06:51 +02:00
2019-12-13 08:52:23 +01:00
…
2019-12-13 08:52:36 +01:00
2020-02-11 04:34:07 -08:00
2018-08-17 16:20:28 -07:00
2019-12-13 08:51:59 +01:00
2020-02-19 19:51:59 +01:00
…
2018-08-17 16:20:27 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2020-02-05 14:43:31 +00:00
…
…
…
…
…
…
…