[PATCH] arm64: hugetlb: Restore TLB invalidation for BBM on contiguous ptes
Catalin Marinas
catalin.marinas at arm.com
Fri Jul 1 10:30:17 PDT 2022
On Wed, 29 Jun 2022 10:53:49 +0100, Will Deacon wrote:
> Commit fb396bb459c1 ("arm64/hugetlb: Drop TLB flush from get_clear_flush()")
> removed TLB invalidation from get_clear_flush() [now get_clear_contig()]
> on the basis that the core TLB invalidation code is aware of hugetlb
> mappings backed by contiguous page-table entries and will cover the
> correct virtual address range.
>
> However, this change also resulted in the TLB invalidation being removed
> from the "break" step in the break-before-make (BBM) sequence used
> internally by huge_ptep_set_{access_flags,wrprotect}(), therefore
> making the BBM sequence unsafe irrespective of later invalidation.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: hugetlb: Restore TLB invalidation for BBM on contiguous ptes
https://git.kernel.org/arm64/c/410982303772
--
Catalin
More information about the linux-arm-kernel
mailing list