Skip to contentSkip to conversation

ext4: validate extent entries before caching in ext4_find_extent()

PATCH Deepanshu Kartikey 1 participant 1 message Sep 29, 2025

lore
Share & tools
lore
#0 lore raw

Zhang Yi,

I've prepared v2 based on your feedback about avoiding redundant checks. After further analysis, I'm detecting the invalid INLINE_DATA + EXTENTS flag combination rather than just VERITY + INLINE_DATA, as this addresses the broader issue of mutually exclusive flags.

The v2 patch rejects any inode with both INLINE_DATA and EXTENTS flags set, which catches this corruption and potentially other similar cases.

Thank you for guiding me to the root cause.

Best regards,
Deepanshu