diff options
author | Deepanshu Kartikey <kartikey406@gmail.com> | 2025-09-23 19:02:45 +0530 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2025-09-26 08:36:08 -0400 |
commit | 44d2a72f4d64655f906ba47a5e108733f59e6f28 (patch) | |
tree | e1c075bd09efba7092a01dc2e44939e5099a5cb7 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 57295e835408d8d425bef58da5253465db3d6888 (diff) |
ext4: validate ea_ino and size in check_xattrs
During xattr block validation, check_xattrs() processes xattr entries
without validating that entries claiming to use EA inodes have non-zero
sizes. Corrupted filesystems may contain xattr entries where e_value_size
is zero but e_value_inum is non-zero, indicating invalid xattr data.
Add validation in check_xattrs() to detect this corruption pattern early
and return -EFSCORRUPTED, preventing invalid xattr entries from causing
issues throughout the ext4 codebase.
Cc: stable@kernel.org
Suggested-by: Theodore Ts'o <tytso@mit.edu>
Reported-by: syzbot+4c9d23743a2409b80293@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?extid=4c9d23743a2409b80293
Signed-off-by: Deepanshu Kartikey <kartikey406@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Message-ID: <20250923133245.1091761-1-kartikey406@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions