From: Yeoreum Yun <yeoreum.yun@arm.com>
To: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Yeoreum Yun <yeoreum.yun@arm.com>,
linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com,
will@kernel.org, mark.rutland@arm.com, akpm@linux-foundation.org,
david@kernel.org, pasha.tatashin@soleen.com,
ryan.roberts@arm.com, rmclure@linux.ibm.com,
baolin.wang@linux.alibaba.com, kevin.brodsky@arm.com,
kas@kernel.org
Subject: Re: [PATCH] arm64: mm: clarify necessity of isb() in emit_pte_barriers()'s comments
Date: Thu, 26 Nov 2026 09:19:18 +0000 [thread overview]
Message-ID: <awf5lpDczOUak7eO@e129823.arm.com> (raw)
In-Reply-To: <pzq4vyyvychgi5rvnunyxaotl6oo3afwuedza5epnfiqbfxces@lyw7ffhmp2dr>
Hi Anshuman,
> On Wed, Nov 25, 2026 at 06:38:05PM +0000, Yeoreum Yun wrote:
> > The dsb() in emit_pte_barriers() makes the pte store visible to the
> > table walker. However, without FEAT_ETS2, address translation for a
> > subsequent data access may occur speculatively before the dsb() completes,
> > potentially observing the old invalid PTE according to
> > Arm ARM DDI0487 M.d:
> >
> > B2.6.9 Data Synchronization Barrier
> > ...
> > In addition, no instruction that appears in program order after the DSB
> > instruction can alter any state of the system or perform any part of
> > its functionality until the DSB completes other than:
> > ...
> > - If FEAT_ETS2 is not implemented, translating any virtual addresses of
> > instructions that generate Explicit Memory Effects.
> > ...
>
> Above wording checks out in the ARM ARM.
>
> >
> > Document this behavior and reference Arm ARM DDI0487 M.d, B2.6.9 to
> > clarify why the dsb() alone is insufficient to prevent a spurious fault.
>
> Documenting FEAT_ETS2 dependence nuance in the comment does make sense.
> FEAT_ETS2 is mandatory from Armv8.8 onwards. Hence this might not be a
> real issue on the field ?
Right, the intention is to clarify the existing barriers.
[...]
--
Sincerely,
Yeoreum Yun
prev parent reply other threads:[~2026-11-26 9:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 18:38 [PATCH] arm64: mm: clarify necessity of isb() in emit_pte_barriers()'s comments Yeoreum Yun
2026-11-26 7:13 ` Anshuman Khandual
2026-11-26 9:19 ` Yeoreum Yun [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=awf5lpDczOUak7eO@e129823.arm.com \
--to=yeoreum.yun@arm.com \
--cc=akpm@linux-foundation.org \
--cc=anshuman.khandual@arm.com \
--cc=baolin.wang@linux.alibaba.com \
--cc=catalin.marinas@arm.com \
--cc=david@kernel.org \
--cc=kas@kernel.org \
--cc=kevin.brodsky@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=pasha.tatashin@soleen.com \
--cc=rmclure@linux.ibm.com \
--cc=ryan.roberts@arm.com \
--cc=will@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