Skip to content
Commit b3e6bcb9 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: add EA_INODE checking to ext4_iget()



Add a new flag, EXT4_IGET_EA_INODE which indicates whether the inode
is expected to have the EA_INODE flag or not.  If the flag is not
set/clear as expected, then fail the iget() operation and mark the
file system as corrupted.

This commit also makes the ext4_iget() always perform the
is_bad_inode() check even when the inode is already inode cache.  This
allows us to remove the is_bad_inode() check from the callers of
ext4_iget() in the ea_inode code.

Reported-by: default avatar <syzbot+cbb68193bdb95af4340a@syzkaller.appspotmail.com>
Reported-by: default avatar <syzbot+62120febbd1ee3c3c860@syzkaller.appspotmail.com>
Reported-by: default avatar <syzbot+edce54daffee36421b4c@syzkaller.appspotmail.com>
Cc: stable@kernel.org
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Link: https://lore.kernel.org/r/20230524034951.779531-2-tytso@mit.edu


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 7877cb91
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment