This is a note to let you know that I've just added the patch titled ext4: bail out of ext4_xattr_ibody_get() fails for any reason to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: ext4-bail-out-of-ext4_xattr_ibody_get-fails-for-any-reason.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 2a534e1d0d1591e951f9ece2fb460b2ff92edabd Mon Sep 17 00:00:00 2001 From: Theodore Ts'o <tytso@xxxxxxx> Date: Fri, 12 May 2023 15:16:27 -0400 Subject: ext4: bail out of ext4_xattr_ibody_get() fails for any reason From: Theodore Ts'o <tytso@xxxxxxx> commit 2a534e1d0d1591e951f9ece2fb460b2ff92edabd upstream. In ext4_update_inline_data(), if ext4_xattr_ibody_get() fails for any reason, it's best if we just fail as opposed to stumbling on, especially if the failure is EFSCORRUPTED. Cc: stable@xxxxxxxxxx Signed-off-by: Theodore Ts'o <tytso@xxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/ext4/inline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c @@ -361,7 +361,7 @@ static int ext4_update_inline_data(handl error = ext4_xattr_ibody_get(inode, i.name_index, i.name, value, len); - if (error == -ENODATA) + if (error < 0) goto out; BUFFER_TRACE(is.iloc.bh, "get_write_access"); Patches currently in stable-queue which might be from tytso@xxxxxxx are queue-6.1/ext4-improve-error-recovery-code-paths-in-__ext4_remount.patch queue-6.1/ext4-fix-warning-in-mb_find_extent.patch queue-6.1/ext4-fix-deadlock-when-converting-an-inline-directory-in-nojournal-mode.patch queue-6.1/ext4-bail-out-of-ext4_xattr_ibody_get-fails-for-any-reason.patch queue-6.1/ext4-improve-error-handling-from-ext4_dirhash.patch queue-6.1/ext4-add-bounds-checking-in-get_max_inline_xattr_value_size.patch queue-6.1/ext4-avoid-a-potential-slab-out-of-bounds-in-ext4_group_desc_csum.patch queue-6.1/ext4-check-iomap-type-only-if-ext4_iomap_begin-does-not-fail.patch queue-6.1/ext4-fix-lockdep-warning-when-enabling-mmp.patch queue-6.1/ext4-fix-invalid-free-tracking-in-ext4_xattr_move_to_block.patch queue-6.1/ext4-remove-a-bug_on-in-ext4_mb_release_group_pa.patch queue-6.1/ext4-fix-data-races-when-using-cached-status-extents.patch