Andreas Gruenbacher c713ebf2fe gfs2: Improve gfs2_make_fs_rw error handling
[ Upstream commit b66f723bb552ad59c2acb5d45ea45c890f84498b ]

In gfs2_make_fs_rw(), make sure to call gfs2_consist() to report an
inconsistency and mark the filesystem as withdrawn when
gfs2_find_jhead() fails.

At the end of gfs2_make_fs_rw(), when we discover that the filesystem
has been withdrawn, make sure we report an error.  This also replaces
the gfs2_withdrawn() check after gfs2_find_jhead().

Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Cc: syzbot+f51cb4b9afbd87ec06f2@syzkaller.appspotmail.com
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:39:53 +01:00
..
2023-03-10 09:39:32 +01:00
2021-06-29 10:56:51 +02:00
2021-06-29 10:56:51 +02:00
2022-05-01 17:22:30 +02:00
2022-04-08 14:24:10 +02:00
2021-04-29 10:33:35 -07:00
2021-08-19 12:31:17 -05:00
2022-04-08 14:24:10 +02:00
2021-04-08 15:07:21 +02:00