Patch "dm btree: fix leak of bufio-backed block in btree_split_beneath error path" has been added to the 4.2-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
dm btree: fix leak of bufio-backed block in btree_split_beneath error path
to the 4.2-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-btree-fix-leak-of-bufio-backed-block-in-btree_split_beneath-error-path.patch
and it can be found in the queue-4.2 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
4dcb8b57df3593dcb20481d9d6cf79d1dc1534beMon Sep 17 00:00:00 2001
From: Mike Snitzer <[email protected]>
Date: Thu, 22 Oct 2015 10:56:40 -0400
Subject: dm btree: fix leak of bufio-backed block in btree_split_beneath error path
From: Mike Snitzer <[email protected]>
commit 4dcb8b57df3593dcb20481d9d6cf79d1dc1534be upstream.
btree_split_beneath()'s error path had an outstanding FIXME that speaks directly to the potential for _not_ cleaning up a previously allocated bufio-backed block.
Fix this by releasing the previously allocated bufio block using unlock_block().
--- drivers/md/persistent-data/dm-btree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/persistent-data/dm-btree.c +1 -1
@@ -523,7 +523,7 @@ static int btree_split_beneath(struct sh r =new_block (s->info, &right);if (r <0 ) { -/* FIXME: put left */ +unlock_block (s->info, left);return r; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.2/dm-btree-fix-leak-of-bufio-backed-block-in-btree_split_beneath-error-path.patch queue-4.2/dm-btree-remove-fix-a-bug-when-rebalancing-nodes-after-removal.patch queue-4.2/dm-cache-the-clean_shutdown-flag-was-not-being-set.patch