Andreas Gruenbacher c2191e5071 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:33:59 +01:00
..
2023-03-10 09:33:25 +01:00
2019-07-03 14:45:18 +02:00
2021-06-29 10:56:51 +02:00
2022-08-06 14:44:49 -07:00
2022-05-09 23:12:33 -04:00
2022-08-03 10:35:43 -07:00
2022-09-11 20:26:06 -07:00
2022-09-11 20:26:06 -07:00
2022-02-02 07:49:59 -07:00
2022-06-28 20:38:15 +02:00