Re: [PATCH] ext4: replace BUG_ON with proper error handling in ext4_read_inline_folio
From: Theodore Ts'o
Date: Thu Mar 26 2026 - 08:05:32 EST
On Mon, 23 Feb 2026 12:33:46 +0000, Yuto Ohnuki wrote:
> Replace BUG_ON() with proper error handling when inline data size
> exceeds PAGE_SIZE. This prevents kernel panic and allows the system to
> continue running while properly reporting the filesystem corruption.
>
> The error is logged via ext4_error_inode(), the buffer head is released
> to prevent memory leak, and -EFSCORRUPTED is returned to indicate
> filesystem corruption.
>
> [...]
Applied, thanks!
[1/1] ext4: replace BUG_ON with proper error handling in ext4_read_inline_folio
commit: e8814f7f4646aa0bba3f9e9a446b07753e87117d
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>