Re: [PATCH RFC] maple_tree: should get pivots boundary by type

From: Liam Howlett
Date: Fri Nov 11 2022 - 12:14:10 EST


* Wei Yang <richard.weiyang@xxxxxxxxx> [221110 21:20]:
> On Thu, Nov 10, 2022 at 04:14:31PM +0000, Liam Howlett wrote:
> >* Wei Yang <richard.weiyang@xxxxxxxxx> [221110 02:25]:
> >> If my understanding is correct, we should get pivots boundary by type.
> >>
> >
> >Thank you, yes - you are correct. This is a bug, and should have:
>
> Thanks. I am curious why this doesn't trigger a problem yet?
>
> From code, it seems we may access the out of boundary array.

yes, it would likely access the array out of bounds. This code is not
used by the mm code right now.

>
> >
> >Fixes: 54a611b60590 (Maple Tree: add new data structure)
> >
> >Please fix your commit message and add the fixes line and resend.
> >
> >Reviewed-by: Liam R. Howlett <Liam.Howlett@xxxxxxxxxx>
> >
>
> --
> Wei Yang
> Help you, Help me