acrn-kernel/fs/gfs2
Andreas Gruenbacher d458a09844 gfs2: Always check inode size of inline inodes
commit 70376c7ff3 upstream.

Check if the inode size of stuffed (inline) inodes is within the allowed
range when reading inodes from disk (gfs2_dinode_in()).  This prevents
us from on-disk corruption.

The two checks in stuffed_readpage() and gfs2_unstuffer_page() that just
truncate inline data to the maximum allowed size don't actually make
sense, and they can be removed now as well.

Reported-by: syzbot+7bb81dfa9cda07d9cd9d@syzkaller.appspotmail.com
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-09 11:28:27 +01:00
..
Kconfig
Makefile
acl.c
acl.h
aops.c gfs2: Always check inode size of inline inodes 2023-02-09 11:28:27 +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
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
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: Cosmetic gfs2_dinode_{in,out} cleanup 2023-02-09 11:28:27 +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