diff options
| author | Yuto Ohnuki <ytohnuki@amazon.com> | 2026-02-23 12:33:46 +0000 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2026-03-27 23:31:52 -0400 |
| commit | 356227096eb66e41b23caf7045e6304877322edf (patch) | |
| tree | ca1c93573c471519476540eefbe10069d71f2ab7 /include/asm-sh/git@git.tavy.me:linux.git | |
| parent | 1308255bbf8452762f89f44f7447ce137ecdbcff (diff) | |
ext4: replace BUG_ON with proper error handling in ext4_read_inline_folio
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.
Signed-off-by: Yuto Ohnuki <ytohnuki@amazon.com>
Link: https://patch.msgid.link/20260223123345.14838-2-ytohnuki@amazon.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Diffstat (limited to 'include/asm-sh/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
