[PATCH v3 1/2] maple_tree: fix maple_range_64 crashes in RCU mode

Florian Schmaus florian.schmaus at codasip.com
Fri Oct 23 07:14:48 PDT 2026


On Mon, 05 Oct 2026 12:47:27 +0000, Dimitris Charisis <dchar at cslab.ece.ntua.gr> wrote:
> This commit fixes two issues in maple_range_64 nodes under RCU mode. A
> maple_range_64 node repurposes its last slot to hold metadata whenever
> the node is not full. Both issues arise from mishandling that last slot.
> 
> More specifically the two fixes are:
> 
> 1. Remove mt_clear_meta() function. mt_clear_meta() decides whether the
>    last slot of a maple_range_64 node holds a child pointer or a
>    struct maple_metadata with the check
> 
> [...]

Reviewed-by: Florian Schmaus <florian.schmaus at codasip.com>

-- 
Florian Schmaus <florian.schmaus at codasip.com>



More information about the maple-tree mailing list