aboutsummaryrefslogtreecommitdiff
path: root/fs/gfs2/super.c
diff options
context:
space:
mode:
authorGravatar Andreas Gruenbacher <agruenba@redhat.com> 2023-03-28 00:43:16 +0200
committerGravatar Andreas Gruenbacher <agruenba@redhat.com> 2023-03-28 00:57:47 +0200
commitcfcdb5bad34f600aed7613c3c1a5e618111f77b7 (patch)
treebbbff1d109567d4836102fb1c89e85949dc1c5aa /fs/gfs2/super.c
parentgfs2: Remove ghs[] from gfs2_unlink (diff)
downloadlinux-cfcdb5bad34f600aed7613c3c1a5e618111f77b7.tar.gz
linux-cfcdb5bad34f600aed7613c3c1a5e618111f77b7.tar.bz2
linux-cfcdb5bad34f600aed7613c3c1a5e618111f77b7.zip
gfs2: Fix inode height consistency check
The maximum allowed height of an inode's metadata tree depends on the filesystem block size; it is lower for bigger-block filesystems. When reading in an inode, make sure that the height doesn't exceed the maximum allowed height. Arrays like sd_heightsize are sized to be big enough for any filesystem block size; they will often be slightly bigger than what's needed for a specific filesystem. Reported-by: syzbot+45d4691b1ed3c48eba05@syzkaller.appspotmail.com Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/super.c')
0 files changed, 0 insertions, 0 deletions