v1
2026-10-13
修复 maple tree 销毁崩溃 · v1
修复 maple tree RCU 销毁时内部节点元数据误判,恢复逐节点清理并移除末尾清理,避免错误释放。
原始补丁链接
子 Patch(2)
1/2
maple_tree: restore per-node metadata clearing in mte_destroy_descend()
The internal nodes of a tree without MT_FLAGS_ALLOC_RANGE are maple_range_64 nodes, which keep their metadata (end, gap) in the bytes of the last slot when that slot is unused. A node with 15 childre
2/2
maple_tree: remove the late metadata clearing from mt_destroy_walk()
At the end of mt_destroy_walk(…, false), mt_clear_meta() clears the metadata of the node the walk started from. By then mte_dead_leaves() has replaced each child pointer in that node with the plain