aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorzhangyi (F) <[email protected]>2019-12-04 12:46:12 +0000
committerTheodore Ts'o <[email protected]>2020-01-25 07:59:25 +0000
commit51f57b01e4a3c7d7bdceffd84de35144e8c538e7 (patch)
tree68766b6ea15e5b97969462bd5eb1b91a6712e9fa /fs/jbd2/commit.c
parentjbd2: switch to use jbd2_journal_abort() when failed to submit the commit record (diff)
downloadkernel-51f57b01e4a3c7d7bdceffd84de35144e8c538e7.tar.gz
kernel-51f57b01e4a3c7d7bdceffd84de35144e8c538e7.zip
ext4, jbd2: ensure panic when aborting with zero errno
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: 4327ba52afd03 ("ext4, jbd2: ensure entering into panic after recording an error in superblock") Signed-off-by: zhangyi (F) <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions