Patch "ext4: bail out of ext4_xattr_ibody_get() fails for any reason" has been added to the 4.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 4.19-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-4.19 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
@@ -358,7 +358,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-4.19/ext4-improve-error-recovery-code-paths-in-__ext4_remount.patch
queue-4.19/ext4-fix-warning-in-mb_find_extent.patch
queue-4.19/ext4-bail-out-of-ext4_xattr_ibody_get-fails-for-any-reason.patch
queue-4.19/ext4-add-bounds-checking-in-get_max_inline_xattr_value_size.patch
queue-4.19/ext4-avoid-a-potential-slab-out-of-bounds-in-ext4_group_desc_csum.patch
queue-4.19/ext4-fix-invalid-free-tracking-in-ext4_xattr_move_to_block.patch
queue-4.19/ext4-remove-a-bug_on-in-ext4_mb_release_group_pa.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux