From: Greg Kroah-Hartman Date: Mon, 13 May 2024 13:35:53 +0000 (+0200) Subject: 5.15-stable patches X-Git-Tag: v4.19.314~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d9caa1763fb91112734de4f5d353ef8ad162eb6;p=thirdparty%2Fkernel%2Fstable-queue.git 5.15-stable patches added patches: btrfs-add-missing-mutex_unlock-in-btrfs_relocate_sys_chunks.patch --- diff --git a/queue-5.15/btrfs-add-missing-mutex_unlock-in-btrfs_relocate_sys_chunks.patch b/queue-5.15/btrfs-add-missing-mutex_unlock-in-btrfs_relocate_sys_chunks.patch new file mode 100644 index 00000000000..1ce15b9281a --- /dev/null +++ b/queue-5.15/btrfs-add-missing-mutex_unlock-in-btrfs_relocate_sys_chunks.patch @@ -0,0 +1,35 @@ +From 9af503d91298c3f2945e73703f0e00995be08c30 Mon Sep 17 00:00:00 2001 +From: Dominique Martinet +Date: Fri, 19 Apr 2024 11:22:48 +0900 +Subject: btrfs: add missing mutex_unlock in btrfs_relocate_sys_chunks() + +From: Dominique Martinet + +commit 9af503d91298c3f2945e73703f0e00995be08c30 upstream. + +The previous patch that replaced BUG_ON by error handling forgot to +unlock the mutex in the error path. + +Link: https://lore.kernel.org/all/Zh%2fHpAGFqa7YAFuM@duo.ucw.cz +Reported-by: Pavel Machek +Fixes: 7411055db5ce ("btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()") +CC: stable@vger.kernel.org +Reviewed-by: Pavel Machek +Signed-off-by: Dominique Martinet +Reviewed-by: David Sterba +Signed-off-by: David Sterba +Signed-off-by: Greg Kroah-Hartman +--- + fs/btrfs/volumes.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/fs/btrfs/volumes.c ++++ b/fs/btrfs/volumes.c +@@ -3374,6 +3374,7 @@ again: + * alignment and size). + */ + ret = -EUCLEAN; ++ mutex_unlock(&fs_info->reclaim_bgs_lock); + goto error; + } + diff --git a/queue-5.15/series b/queue-5.15/series index 6a2470a1bd2..69d78d4d8ea 100644 --- a/queue-5.15/series +++ b/queue-5.15/series @@ -153,3 +153,4 @@ usb-gadget-f_fs-fix-a-race-condition-when-processing-setup-packets.patch usb-xhci-plat-don-t-include-xhci.h.patch usb-dwc3-core-prevent-phy-suspend-during-init.patch alsa-hda-realtek-fix-mute-led-of-hp-laptop-15-da3001tu.patch +btrfs-add-missing-mutex_unlock-in-btrfs_relocate_sys_chunks.patch