linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Ge Yang <yangge1116@126.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	21cnbao@gmail.com, david@redhat.com,
	baolin.wang@linux.alibaba.com, muchun.song@linux.dev,
	osalvador@suse.de, liuzixing@hygon.cn
Subject: Re: [PATCH V2] mm/hugetlb: remove unnecessary holding of hugetlb_lock
Date: Fri, 6 Jun 2025 13:45:46 +0800	[thread overview]
Message-ID: <a57a2de7-1b0c-4cc9-a300-02cb46c1f02a@126.com> (raw)
In-Reply-To: <20250605181242.54767f38223f9ebd4c379ccb@linux-foundation.org>



在 2025/6/6 9:12, Andrew Morton 写道:
> On Thu, 5 Jun 2025 08:44:09 +0800 Ge Yang <yangge1116@126.com> wrote:
> 
>>> This change addresses a possible performance issue which was introduced
>>> by 113ed54ad276 ("mm/hugetlb: fix kernel NULL pointer dereference when
>>> replacing free hugetlb folios").  113ed54ad276 was added recently and
>>> was cc:stable.
>>>
>>> David said:
>>> https://lkml.kernel.org/r/87521d93-cc03-480d-a2ef-3ef8c84481c9@redhat.com
>>>
>>>
>>> Question is, will that bugfix's performance impact be sufficiently
>>> serious for us to also backport this new patch?
>>
>> In some low-probability scenarios, there could be severe impacts. For
>> example, when multiple CPUs execute the replace_free_hugepage_folios()
>> function simultaneously. It seems that we need to backport this new
>> patch. Thank you.
> 
> OK, thanks.  I added
> 
> Fixes: 113ed54ad276 ("mm/hugetlb: fix kernel NULL pointer dereference when replacing free hugetlb folios")
> Cc: <stable@vger.kernel.org>
> 
> and moved this to the mm-hotfixes pile.  I'll keep it there for a week
> or two for review/test.  Once it goes upstream, this should propagate
> into 6.15.x.

Ok,thanks.



      reply	other threads:[~2025-06-06  5:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-27  3:36 yangge1116
2025-05-28  2:45 ` Muchun Song
2025-06-04 22:47 ` Andrew Morton
2025-06-05  0:44   ` Ge Yang
2025-06-06  1:12     ` Andrew Morton
2025-06-06  5:45       ` Ge Yang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a57a2de7-1b0c-4cc9-a300-02cb46c1f02a@126.com \
    --to=yangge1116@126.com \
    --cc=21cnbao@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=david@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=liuzixing@hygon.cn \
    --cc=muchun.song@linux.dev \
    --cc=osalvador@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox