Andreas Gruenbacher 46c9088cab gfs2: Always check inode size of inline inodes
commit 70376c7ff31221f1d21db5611d8209e677781d3a 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
..
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