Patch "dm clone: call kmem_cache_destroy() in dm_clone_init() error path" has been added to the 5.15-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

    dm clone: call kmem_cache_destroy() in dm_clone_init() error path

to the 5.15-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:
     dm-clone-call-kmem_cache_destroy-in-dm_clone_init-error-path.patch
and it can be found in the queue-5.15 subdirectory.

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


>From 6827af4a9a9f5bb664c42abf7c11af4978d72201 Mon Sep 17 00:00:00 2001
From: Mike Snitzer <snitzer@xxxxxxxxxx>
Date: Tue, 4 Apr 2023 11:59:00 -0400
Subject: dm clone: call kmem_cache_destroy() in dm_clone_init() error path

From: Mike Snitzer <snitzer@xxxxxxxxxx>

commit 6827af4a9a9f5bb664c42abf7c11af4978d72201 upstream.

Otherwise the _hydration_cache will leak if dm_register_target() fails.

Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Mike Snitzer <snitzer@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/md/dm-clone-target.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/md/dm-clone-target.c
+++ b/drivers/md/dm-clone-target.c
@@ -2214,6 +2214,7 @@ static int __init dm_clone_init(void)
 	r = dm_register_target(&clone_target);
 	if (r < 0) {
 		DMERR("Failed to register clone target");
+		kmem_cache_destroy(_hydration_cache);
 		return r;
 	}
 


Patches currently in stable-queue which might be from snitzer@xxxxxxxxxx are

queue-5.15/dm-flakey-fix-a-crash-with-invalid-table-line.patch
queue-5.15/dm-clone-call-kmem_cache_destroy-in-dm_clone_init-error-path.patch
queue-5.15/dm-ioctl-fix-nested-locking-in-table_clear-to-remove-deadlock-concern.patch
queue-5.15/dm-verity-fix-error-handling-for-check_at_most_once-on-fec.patch
queue-5.15/dm-integrity-call-kmem_cache_destroy-in-dm_integrity_init-error-path.patch
queue-5.15/dm-don-t-lock-fs-when-the-map-is-null-in-process-of-resume.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