Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Lance Yang <lance.yang@linux.dev>
To: Hugh Dickins <hughd@google.com>,
	"David Hildenbrand (Arm)" <david@kernel.org>
Cc: akpm@linux-foundation.org, baolin.wang@linux.alibaba.com,
	baohua@kernel.org, dev.jain@arm.com, liam.howlett@oracle.com,
	ljs@kernel.org, mhocko@suse.com, rppt@kernel.org,
	npache@redhat.com, zhengqi.arch@bytedance.com,
	ryan.roberts@arm.com, surenb@google.com, ziy@nvidia.com,
	linux-mm@kvack.org
Subject: Re: [PATCH hotfix] mm: fix pmd_special() fallback to observe huge_zero
Date: Thu, 30 Apr 2026 17:10:33 +0800	[thread overview]
Message-ID: <7a4c824c-faee-4991-b8c8-703f7f0e19a0@linux.dev> (raw)
In-Reply-To: <9845ff31-acaf-4a04-86a2-b4104446e966@kernel.org>



On 2026/4/30 16:54, David Hildenbrand (Arm) wrote:
>>> ... and triggering the VM_WARN_ON_ONE(), although never reported so far.
>>>
>>> To fix it, teach vm_normal_page_pmd()/vm_normal_page_pud() whether
>>> pmd_special/pud_special is actually implemented.
>>>
>>> Fixes: af38538801c6 ("mm/memory: factor out common code from vm_normal_page_*()")
>>
>> Agreed.  My Fixes tag (where my bisection arrived) was correct for the
>> common zap_huge_pmd() symptom I was seeing (Lorenzo's commit removed
>> an independent is_huge_zero_pmd() check from it, so it now relies on
>> vm_normal_folio_pmd() to give the right answer).  But you've chased
>> up other usages, and realized it goes back further.  You could just as
>> well blame the other commit mentioned in this thread, the d82d09e48219
>> ("mm/huge_memory: mark PMD mappings of the huge zero folio special"),
>> because in come configs it is not doing what it expects to be doing.
>> But af38538801c6 is where effects start appearing, so fine to blame
>> it (and both come from the same 6.18 series, do it doesn't matter).
>>
>>> Signed-off-by: Hugh Dickins <hughd@google.com>>
>>> Co-developed-by: David Hildenbrand (Arm) <david@kernel.org>
>>
>> That's generous, but the patch is not mine at all, and I'll
>> happily let you grab my two paragraphs above.  Please, just
> 
> Okay, I didn't want to undermine your involvement.
> 
>> Reported-by: Hugh Dickins <hughd@google.com>
> 
> Then, I'd also add a
> 
> Debugged-by: Hugh Dickins <hughd@google.com>

Yeah. Thanks to Hugh for the bisection, debugging and detailed
analysis!

Cheers, Lance


      reply	other threads:[~2026-04-30  9:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-29  5:08 [PATCH hotfix] mm: fix pmd_special() fallback to observe huge_zero Hugh Dickins
2026-04-29  5:54 ` Lance Yang
2026-04-29  6:12   ` David Hildenbrand (Arm)
2026-04-29  6:57     ` Lance Yang
2026-04-29  7:14       ` David Hildenbrand (Arm)
2026-04-29  7:33         ` Lance Yang
2026-04-30  5:53           ` David Hildenbrand (Arm)
2026-04-30  6:46             ` Lance Yang
2026-04-30  8:30             ` Lance Yang
2026-04-30  8:48             ` Hugh Dickins
2026-04-30  8:54               ` David Hildenbrand (Arm)
2026-04-30  9:10                 ` Lance 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=7a4c824c-faee-4991-b8c8-703f7f0e19a0@linux.dev \
    --to=lance.yang@linux.dev \
    --cc=akpm@linux-foundation.org \
    --cc=baohua@kernel.org \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=david@kernel.org \
    --cc=dev.jain@arm.com \
    --cc=hughd@google.com \
    --cc=liam.howlett@oracle.com \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=mhocko@suse.com \
    --cc=npache@redhat.com \
    --cc=rppt@kernel.org \
    --cc=ryan.roberts@arm.com \
    --cc=surenb@google.com \
    --cc=zhengqi.arch@bytedance.com \
    --cc=ziy@nvidia.com \
    /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