android_kernel_samsung_sm8650/fs/gfs2
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
..
acl.c
acl.h
aops.c gfs2: jdata writepage fix 2023-03-10 09:33:25 +01:00
aops.h
bmap.c gfs2: Always check inode size of inline inodes 2023-02-09 11:28:27 +01:00
bmap.h
dentry.c
dir.c
dir.h
export.c
file.c gfs2: Merge branch 'for-next.nopid' into for-next 2022-10-09 22:56:28 +02:00
gfs2.h
glock.c gfs2: Partially revert gfs2_inode_lookup change 2022-12-31 13:32:45 +01:00
glock.h gfs2: Merge branch 'for-next.nopid' into for-next 2022-10-09 22:56:28 +02:00
glops.c gfs2: Always check inode size of inline inodes 2023-02-09 11:28:27 +01:00
glops.h
incore.h
inode.c gfs2: Merge branch 'for-next.nopid' into for-next 2022-10-09 22:56:28 +02:00
inode.h
Kconfig
lock_dlm.c
log.c Revert "gfs2: stop using generic_writepages in gfs2_ail1_start_one" 2023-02-09 11:28:13 +01:00
log.h
lops.c
lops.h
main.c gfs2: Register fs after creating workqueues 2022-09-20 17:53:54 +02:00
Makefile
meta_io.c gfs2: replace ll_rw_block() 2022-09-11 20:26:06 -07:00
meta_io.h
ops_fstype.c gfs2: Merge branch 'for-next.nopid' into for-next 2022-10-09 22:56:28 +02:00
quota.c gfs2: replace ll_rw_block() 2022-09-11 20:26:06 -07:00
quota.h
recovery.c
recovery.h
rgrp.c
rgrp.h
super.c gfs2: Improve gfs2_make_fs_rw error handling 2023-03-10 09:33:59 +01:00
super.h
sys.c
sys.h
trace_gfs2.h
trans.c
trans.h
util.c gfs2: Merge branch 'for-next.nopid' into for-next 2022-10-09 22:56:28 +02:00
util.h
xattr.c
xattr.h