Patch "ext4: add missing brelse() update_backups()'s error path" has been added to the 4.9-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: add missing brelse() update_backups()'s error path

to the 4.9-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-add-missing-brelse-update_backups-s-error-path.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From ea0abbb648452cdb6e1734b702b6330a7448fcf8 Mon Sep 17 00:00:00 2001
From: Vasily Averin <vvs@xxxxxxxxxxxxx>
Date: Sat, 3 Nov 2018 17:11:19 -0400
Subject: ext4: add missing brelse() update_backups()'s error path

From: Vasily Averin <vvs@xxxxxxxxxxxxx>

commit ea0abbb648452cdb6e1734b702b6330a7448fcf8 upstream.

Fixes: ac27a0ec112a ("ext4: initial copy of files from ext3")
Signed-off-by: Vasily Averin <vvs@xxxxxxxxxxxxx>
Signed-off-by: Theodore Ts'o <tytso@xxxxxxx>
Cc: stable@xxxxxxxxxx # 2.6.19
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
 fs/ext4/resize.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/fs/ext4/resize.c
+++ b/fs/ext4/resize.c
@@ -1095,8 +1095,10 @@ static void update_backups(struct super_
 			   backup_block, backup_block -
 			   ext4_group_first_block_no(sb, group));
 		BUFFER_TRACE(bh, "get_write_access");
-		if ((err = ext4_journal_get_write_access(handle, bh)))
+		if ((err = ext4_journal_get_write_access(handle, bh))) {
+			brelse(bh);
 			break;
+		}
 		lock_buffer(bh);
 		memcpy(bh->b_data, data, size);
 		if (rest)


Patches currently in stable-queue which might be from vvs@xxxxxxxxxxxxx are

queue-4.9/ext4-add-missing-brelse-add_new_gdb_meta_bg-s-error-path.patch
queue-4.9/ext4-avoid-buffer-leak-in-ext4_orphan_add-after-prior-errors.patch
queue-4.9/ext4-release-bs.bh-before-re-using-in-ext4_xattr_block_find.patch
queue-4.9/ext4-fix-missing-cleanup-if-ext4_alloc_flex_bg_array-fails-while-resizing.patch
queue-4.9/ext4-fix-buffer-leak-in-__ext4_read_dirblock-on-error-path.patch
queue-4.9/ext4-fix-possible-inode-leak-in-the-retry-loop-of-ext4_resize_fs.patch
queue-4.9/ext4-fix-possible-leak-of-sbi-s_group_desc_leak-in-error-path.patch
queue-4.9/ext4-add-missing-brelse-in-set_flexbg_block_bitmap-s-error-path.patch
queue-4.9/ext4-fix-buffer-leak-in-ext4_xattr_move_to_block-on-error-path.patch
queue-4.9/ext4-avoid-potential-extra-brelse-in-setup_new_flex_group_blocks.patch
queue-4.9/ext4-add-missing-brelse-update_backups-s-error-path.patch
queue-4.9/ext4-avoid-possible-double-brelse-in-add_new_gdb-on-error-path.patch
queue-4.9/ext4-fix-possible-leak-of-s_journal_flag_rwsem-in-error-path.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