]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xtensa: define update_mmu_tlb function
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 3 Jan 2022 20:08:31 +0000 (12:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:30 +0000 (13:57 +0200)
commit7365a928625c8029db3467c7674dfc188878d411
treeadde68f788804c813af01c622c87c404061991a0
parent64e75c4e0794830c9fca3ab22d1aef1498da5fda
xtensa: define update_mmu_tlb function

commit 1c4664faa38923330d478f046dc743a00c1e2dec upstream.

Before the commit f9ce0be71d1f ("mm: Cleanup faultaround and finish_fault()
codepaths") there was a call to update_mmu_cache in alloc_set_pte that
used to invalidate TLB entry caching invalid PTE that caused a page
fault. That commit removed that call so now invalid TLB entry survives
causing repetitive page faults on the CPU that took the initial fault
until that TLB entry is occasionally evicted. This issue is spotted by
the xtensa TLB sanity checker.

Fix this issue by defining update_mmu_tlb function that flushes TLB entry
for the faulting address.

Cc: stable@vger.kernel.org # 5.12+
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/include/asm/pgtable.h
arch/xtensa/mm/tlb.c