From: "Yin, Fengwei" <fengwei.yin@intel.com>
To: Ram Tummala <rtummala@nvidia.com>, <akpm@linux-foundation.org>
Cc: <willy@infradead.org>, <linux-mm@kvack.org>,
<linux-kernel@vger.kernel.org>, <apopple@nvidia.com>,
<stable@vger.kernel.org>
Subject: Re: [PATCH] mm: Fix PTE_AF handling in fault path on architectures with HW AF support
Date: Wed, 10 Jul 2024 09:08:13 +0800 [thread overview]
Message-ID: <d1ea4228-9ee0-41de-9119-e9a8a577ca51@intel.com> (raw)
In-Reply-To: <20240710000942.623704-1-rtummala@nvidia.com>
On 7/10/2024 8:09 AM, Ram Tummala wrote:
> The polarity of prefault calculation is incorrect. This leads to prefault
> being incorrectly set for the faulting address. The following if check will
> incorrectly clear the PTE_AF bit instead of setting it and the access will
> fault again on the same address due to the missing PTE_AF bit.
>
> if (prefault && arch_wants_old_prefaulted_pte())
> entry = pte_mkold(entry);
I have same confusion as Matthew about the PTE_AF.
But I think this is a good catch as old code is like:
bool prefault = vmf->address != addr;
Sorry for the issue by me. And
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
Regards
Yin, Fengwei
next prev parent reply other threads:[~2024-07-10 1:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-10 0:09 [PATCH] mm: Fix PTE_AF handling in fault path on architectures with HW AF support Ram Tummala
2024-07-10 0:13 ` Matthew Wilcox
2024-07-10 1:02 ` Alistair Popple
2024-07-10 1:08 ` Yin, Fengwei [this message]
2024-07-10 4:07 ` David Hildenbrand
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=d1ea4228-9ee0-41de-9119-e9a8a577ca51@intel.com \
--to=fengwei.yin@intel.com \
--cc=akpm@linux-foundation.org \
--cc=apopple@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rtummala@nvidia.com \
--cc=stable@vger.kernel.org \
--cc=willy@infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.