• Andreas Gruenbacher's avatar
    gfs2: Fix inode height consistency check · cfcdb5ba
    Andreas Gruenbacher authored
    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: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    cfcdb5ba
glops.c 21.2 KB