Re: [PATCH v2] arm64: contpte: fix set_access_flags() no-op check for SMMU/ATS faults

From: Will Deacon

Date: Fri Mar 06 2026 - 07:29:44 EST


On Thu, 05 Mar 2026 15:26:29 -0800, Piotr Jaroszynski wrote:
> contpte_ptep_set_access_flags() compared the gathered ptep_get() value
> against the requested entry to detect no-ops. ptep_get() ORs AF/dirty
> from all sub-PTEs in the CONT block, so a dirty sibling can make the
> target appear already-dirty. When the gathered value matches entry, the
> function returns 0 even though the target sub-PTE still has PTE_RDONLY
> set in hardware.
>
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: contpte: fix set_access_flags() no-op check for SMMU/ATS faults
https://git.kernel.org/arm64/c/97c5550b7631

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev