Re: [PATCH v2] ext4: validate ea_ino and size in check_xattrs
From: Deepanshu Kartikey
Date: Tue Sep 23 2025 - 21:21:48 EST
Thank you for the feedback on the e2fsck coordination.
You raise a valid point about the complete repair workflow. I'm happy to work on a corresponding e2fsck patch if that would be helpful, though I'd appreciate guidance on the preferred approach:
1. Should I proceed with the kernel patch first and then work on e2fsck, or would you prefer coordinated patches?
2. For the e2fsck side, would the appropriate fix be to:
- Clear e_value_inum when e_value_size is zero, or
- Remove the entire corrupted xattr entry?
I'm new to e2fsprogs development but willing to learn the codebase if you think it's valuable to have matching fixes. Alternatively, if there are others typically handling the e2fsck side of ext4 corruption fixes, I'm happy to focus on the kernel patch and coordinate with them.
Thanks for considering the broader user experience - I hadn't fully thought through the repair workflow.
Deepanshu Kartikey