Skip to contentSkip to conversation

maple_tree-only-root-node-could-be-deficient.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jan 14, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: maple_tree: only root node could be deficient
has been removed from the -mm tree. Its filename was
maple_tree-only-root-node-could-be-deficient.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Wei Yang <[email protected]>
Subject: maple_tree: only root node could be deficient
Date: Wed, 13 Nov 2024 03:16:16 +0000

Each level's rightmost node should have (max == ULONG_MAX). This means current validation skips the right most node on each level.

Only the root node may be below the minimum data threshold.

---

 lib/maple_tree.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/maple_tree.c renamed from lib/maple_tree.c~maple_tree-only-root-node-could-be-deficient +1 -1
@@ -7556,7 +7556,7 @@ void mt_validate(struct maple_tree *mt)
 		MAS_WARN_ON(&mas, mte_dead_node(mas.node));
 		end = mas_data_end(&mas);
 		if (MAS_WARN_ON(&mas, (end < mt_min_slot_count(mas.node)) &&
-				(mas.max != ULONG_MAX))) {
+				(!mte_is_root(mas.node)))) {
 			pr_err("Invalid size %u of " PTR_FMT "\n",
 			       end, mas_mn(&mas));
 		}

_

Patches currently in -mm which might be from [email protected] are