Re: [PATCH 5.10.y] ext4: add bounds check for inline data length in ext4_read_inline_page
From: Sasha Levin
Date: Wed Jul 01 2026 - 20:38:57 EST
> Add a bounds check after computing len, returning -EFSCORRUPTED if the
> value exceeds PAGE_SIZE.
>
> The upstream commit replaced a BUG_ON(len > PAGE_SIZE) in
> ext4_read_inline_folio(). In 6.1 and earlier, the function is still named
> ext4_read_inline_page() and the BUG_ON was never present, so this patch
> adds the bounds check directly.
Queued for 5.10.y, thanks.
--
Thanks,
Sasha