[Patch v3 0/3] maple_tree: Fix the replacement of a root leaf node
Andrew Morton
akpm at linux-foundation.org
Tue Jun 10 18:37:27 PDT 2025
On Wed, 11 Jun 2025 01:12:50 +0000 Wei Yang <richard.weiyang at gmail.com> wrote:
> On destroy we should set each node dead. But current
> code miss this when the maple tree has only the root node.
>
> The reason is mt_destroy_walk() leverage mte_destroy_descend() to set
> node dead, but this is skipped since the only root node is a leaf.
Thanks. You added cc:stable to two of the patches and that's great,
thanks for remembering. But the changelogs didn't tell us why you made
this choice.
So, as always, please always describe the userspace-visible impact of a
bug when fixing that bug!
More information about the maple-tree
mailing list