WSL2-Linux-Kernel/fs/gfs2
Andreas Gruenbacher 46c9088cab 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:26:48 +01:00
..
Kconfig
Makefile
acl.c
acl.h
aops.c gfs2: Always check inode size of inline inodes 2023-02-09 11:26:48 +01:00
aops.h
bmap.c gfs2: Always check inode size of inline inodes 2023-02-09 11:26:48 +01:00
bmap.h
dentry.c
dir.c
dir.h
export.c
file.c gfs2: Fix gfs2_file_buffered_write endless loop workaround 2022-07-12 16:34:59 +02:00
gfs2.h
glock.c
glock.h
glops.c gfs2: Always check inode size of inline inodes 2023-02-09 11:26:48 +01:00
glops.h
incore.h
inode.c
inode.h
lock_dlm.c
log.c
log.h
lops.c
lops.h
main.c
meta_io.c
meta_io.h
ops_fstype.c gfs2: Switch from strlcpy to strscpy 2022-11-26 09:24:51 +01:00
quota.c gfs2: use i_lock spin_lock for inode qadata 2022-06-09 10:22:40 +02:00
quota.h
recovery.c
recovery.h
rgrp.c
rgrp.h
super.c gfs2: Cosmetic gfs2_dinode_{in,out} cleanup 2023-02-09 11:26:48 +01:00
super.h
sys.c
sys.h
trace_gfs2.h
trans.c
trans.h
util.c
util.h
xattr.c
xattr.h