]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: do not BUG when INLINE_DATA_FL lacks system.data xattr
authorTheodore Ts'o <tytso@mit.edu>
Thu, 17 Jul 2025 14:54:34 +0000 (10:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:25:59 +0000 (16:25 +0200)
commit2817ac83cb4732597bf36853fe13ca616f4ee4e2
treec9b52d2ddf7a3bc69cddaad7257f043d2db18387
parent8843a56f32055e6c92a691fcda6f915e29285d6f
ext4: do not BUG when INLINE_DATA_FL lacks system.data xattr

[ Upstream commit 099b847ccc6c1ad2f805d13cfbcc83f5b6d4bc42 ]

A syzbot fuzzed image triggered a BUG_ON in ext4_update_inline_data()
when an inode had the INLINE_DATA_FL flag set but was missing the
system.data extended attribute.

Since this can happen due to a maiciouly fuzzed file system, we
shouldn't BUG, but rather, report it as a corrupted file system.

Add similar replacements of BUG_ON with EXT4_ERROR_INODE() ii
ext4_create_inline_data() and ext4_inline_data_truncate().

Reported-by: syzbot+544248a761451c0df72f@syzkaller.appspotmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/inline.c