Re: [RESEND] [PATCH v2] arm64/mm: Elide TLB flush in certain pte protection transitions

From: Catalin Marinas

Date: Thu Nov 13 2025 - 13:59:00 EST


From: Catalin Marinas <catalin.marinas@xxxxxxx>

On Fri, 17 Oct 2025 21:32:51 +0530, Dev Jain wrote:
> Currently arm64 does an unconditional TLB flush in mprotect(). This is not
> required for some cases, for example, when changing from PROT_NONE to
> PROT_READ | PROT_WRITE (a real usecase - glibc malloc does this to emulate
> growing into the non-main heaps), and unsetting uffd-wp in a range.
>
> Therefore, implement pte_needs_flush() for arm64, which is already
> implemented by some other arches as well.
>
> [...]

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

[1/1] arm64/mm: Elide TLB flush in certain pte protection transitions
https://git.kernel.org/arm64/c/c320dbb7c80d

--
Catalin