Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67787C678D5 for ; Thu, 9 Mar 2023 02:09:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbjCICJU (ORCPT ); Wed, 8 Mar 2023 21:09:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbjCICJQ (ORCPT ); Wed, 8 Mar 2023 21:09:16 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 830D1B788E for ; Wed, 8 Mar 2023 18:09:14 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id ay18so608806pfb.2 for ; Wed, 08 Mar 2023 18:09:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1678327754; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=gfu/KwFVzc/Mhm/dGygFGmdSj7EneRyv1RVogBuDfAE=; b=dXMSkm5QFUg2hsGRa4whtQxI5kX2Yob0l1M6NHTCTBKyk2aDxjuGjsxDmsf/VsT3yt +vBaQBn4wAy2wTV2IJXgtXZiBox6aLuDUBb9j9YM/MrO3dCXownD0aFUkxxlUjxI/QfN N50mjt9fjA9WUydgKZQqk7JZYjVsm3bYr3KZOD+9pHN6rxqTA8pS5SfyLdfBN6XV0gQ2 C0K5A8ib0AycdBrxr+2pVK008q4e4+7oWZazp9mA8kTIjvGt/efb84Ic4T0njNXzIHqX OH8bOX4H5UjfLBTC6pTO69QtOwIO/7N9nNPL9fcPBDBcIOzmk+Olb8oiKbghyJRZiLHQ Tpjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678327754; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=gfu/KwFVzc/Mhm/dGygFGmdSj7EneRyv1RVogBuDfAE=; b=7qYzgMic1keimvGNN3cAIEKcigcBV+iV6c2EO+JQnIKJbosNNvfve8OWXYYR1njQWF VfyyvTFf1+ISnQ9CTLcGX5nC+KTrHxCzhmmWEkaCL+1V8+gQH55nXTAFyt06NNw6cAGe ayyI8TWRb6yJxMKqGBykcJA3OGkMdugia93annnXdAWkWrifERqyUa8+RhqgpPT0Czhm vQP/a7H5ynjQIbTO4gCAoRUnyTleliHTWchrAqTk/OiZVg0xNTeXKVBSpwSmntsiEef8 MLQ1aDvk+DyIdBypK/OHHMZ3Aqa36jPsMKVymC6zEcPtW9brbvAt0oYbQhtMR+WQ2Jml SAvg== X-Gm-Message-State: AO0yUKWuetkSnlY9LhUvbOjseHdVLGTdH+t6ZfYQwMw6j7QD4zW/BWj3 +n+sz9ku9VP/J1ozc2bCRVmnGw== X-Google-Smtp-Source: AK7set+ABtdw3r8PqslQtAfmOu77yAOxg1w+6Hbo5FZcHMgjcM9JtbFcCj6g9bdZOqW8uRINlX9Z4A== X-Received: by 2002:aa7:9ed1:0:b0:5e0:316a:1fef with SMTP id r17-20020aa79ed1000000b005e0316a1fefmr14444906pfq.15.1678327753983; Wed, 08 Mar 2023 18:09:13 -0800 (PST) Received: from [10.200.11.19] ([139.177.225.234]) by smtp.gmail.com with ESMTPSA id j19-20020a62e913000000b005ae02dc5b94sm9996356pfh.219.2023.03.08.18.09.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Mar 2023 18:09:13 -0800 (PST) Message-ID: <0db9e2b9-e5ed-e817-bd3f-9812fd914c97@bytedance.com> Date: Thu, 9 Mar 2023 10:09:07 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] maple_tree: Fix the error of mas->min/max in mas_skip_node() To: Andrew Morton Cc: Liam.Howlett@oracle.com, snild@sony.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org, Stable@vger.kernel.org References: <20230307160340.57074-1-zhangpeng.00@bytedance.com> <20230308175552.60b3f6a3efda2289dc6c5bc9@linux-foundation.org> From: Peng Zhang In-Reply-To: <20230308175552.60b3f6a3efda2289dc6c5bc9@linux-foundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2023/3/9 09:55, Andrew Morton 写道: > On Wed, 8 Mar 2023 00:03:40 +0800 Peng Zhang 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@oracle.com/, so please don't pay attention.