Re: [PATCH v3 5/6] maple_tree: add sufficient height

From: Vasily Gorbik
Date: Tue Mar 11 2025 - 11:54:07 EST


On Tue, Mar 11, 2025 at 10:40:17AM -0400, Sidhartha Kumar wrote:
> Would you be able to rerun this test with the following diff applied and
> CONFIG_DEBUG_MAPLE_TREE=y so I can check the state of the tree to easier
> reproduce the error?
>
> diff --git a/lib/maple_tree.c b/lib/maple_tree.c
> index ea1f0acac118..74a4b1924a55 100644
> --- a/lib/maple_tree.c
> +++ b/lib/maple_tree.c
> @@ -1153,8 +1153,11 @@ static inline struct maple_node *mas_pop_node(struct
> ma_state *mas)
> unsigned int req = mas_alloc_req(mas);
>
> /* nothing or a request pending. */
> - if (WARN_ON(!total))
> + if (WARN_ON(!total)) {
> + mas_dump(mas);
> + mt_dump(mas->tree, mt_dump_hex);
> return NULL;
> + }

Sure, please find vmcore-dmesg.txt.xz attached

Attachment: vmcore-dmesg.txt.xz
Description: application/xz