[PATCH] arm64: mm: clarify necessity of isb() in emit_pte_barriers()'s comments
Yeoreum Yun
yeoreum.yun at arm.com
Thu Nov 26 01:19:18 PST 2026
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
More information about the linux-arm-kernel
mailing list