Re: [PATCH] ext4: validate extent entries before caching in ext4_find_extent()

From: Deepanshu Kartikey

Date: Mon Sep 29 2025 - 11:45:55 EST


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