• Jan Kara's avatar
    udf: Avoid infinite loop when processing indirect ICBs · c03aa9f6
    Jan Kara authored
    We did not implement any bound on number of indirect ICBs we follow when
    loading inode. Thus corrupted medium could cause kernel to go into an
    infinite loop, possibly causing a stack overflow.
    
    Fix the possible stack overflow by removing recursion from
    __udf_read_inode() and limit number of indirect ICBs we follow to avoid
    infinite loops.
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    c03aa9f6
inode.c 64.7 KB