From: mawupeng <mawupeng1@huawei.com>
To: <dave.hansen@intel.com>, <akpm@linux-foundation.org>,
<dave.hansen@linux.intel.com>, <luto@kernel.org>,
<peterz@infradead.org>
Cc: <mawupeng1@huawei.com>, <linux-kernel@vger.kernel.org>,
<x86@kernel.org>, <bp@suse.de>, <toshi.kani@hp.com>,
<suresh.b.siddha@intel.com>,
<syzbot+5f488e922d047d8f00cc@syzkaller.appspotmail.com>
Subject: Re: [RFC PATCH 1/1] x86/mm/pat: Clear VM_PAT if copy_p4d_range failed
Date: Thu, 2 Mar 2023 11:47:16 +0800 [thread overview]
Message-ID: <95fcd42c-cb41-d280-32a4-97708061fe41@huawei.com> (raw)
In-Reply-To: <7016f30f-65dd-b1a1-a44a-fb7af689959b@intel.com>
On 2023/2/23 4:03, Dave Hansen wrote:
> On 2/16/23 18:56, Wupeng Ma wrote:
>> dup_mm
>> dup_mmap
>> copy_page_range
>> copy_p4d_range
>> copy_pud_range
>> copy_pmd_range
>> pmd_alloc
>> __pmd_alloc
>> pmd_alloc_one
>> page = alloc_pages(gfp, 0);
>> if (!page)
>> return NULL;
>> mmput
>> exit_mmap
>> unmap_vmas
>> unmap_single_vma
>> untrack_pfn
>> follow_phys
>> WARN_ON_ONCE(1);
>
> What's the point of that warning in the first place? I can certainly
> imagine follow_phys() failing for sparse mappings, for instance. Is
> there some requirement that VM_PFNMAP can't be sparse?
Hi Dave
Thanks for reviewing.
Sorry,I have no idea why warning in the first place.
I think we can delete this WARN_ON_ONCE with another patch?
next prev parent reply other threads:[~2023-03-02 3:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-17 2:56 Wupeng Ma
2023-02-22 20:03 ` Dave Hansen
2023-03-02 3:47 ` mawupeng [this message]
2023-02-23 22:14 ` Andrew Morton
2023-02-24 1:15 ` mawupeng
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=95fcd42c-cb41-d280-32a4-97708061fe41@huawei.com \
--to=mawupeng1@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=bp@suse.de \
--cc=dave.hansen@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=peterz@infradead.org \
--cc=suresh.b.siddha@intel.com \
--cc=syzbot+5f488e922d047d8f00cc@syzkaller.appspotmail.com \
--cc=toshi.kani@hp.com \
--cc=x86@kernel.org \
/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
all inboxes | Powered by JetHome®