Re: [PATCH] maple_tree: Fix the error of mas->min/max in mas_skip_node()

From: Peng Zhang
Date: Wed Mar 08 2023 - 21:09:21 EST



在 2023/3/9 09:55, Andrew Morton 写道:
On Wed, 8 Mar 2023 00:03:40 +0800 Peng Zhang <zhangpeng.00@xxxxxxxxxxxxx> wrote:

The assignment of mas->min and mas->max is wrong. mas->min and mas->max
should represent the range of the current node. After mas_ascend()
returns, mas-min and mas->max already represent the range of the current
node, so we should delete these assignments of mas->min and mas->max.

Please fully describe the user-visible effects of the flaw, especially
when proposing a -stable backport.

The fixes made by this patch have been included in https://lore.kernel.org/lkml/20230307180247.2220303-2-Liam.Howlett@xxxxxxxxxx/, so please don't pay attention.