]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: don't leave invalid TLB entry in fast_store_prohibited
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 23 Apr 2022 10:52:23 +0000 (03:52 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 2 May 2022 02:58:12 +0000 (19:58 -0700)
commit318e7c53213dcbd69eed1ca6739a17a0892a8446
treebb376e8e804d44c7768f9f68fa2f8ed94f7d8325
parented44624237adaea84bd4a2dfef3bc7f096f08bd1
xtensa: don't leave invalid TLB entry in fast_store_prohibited

When fast_store_prohibited needs to go to the C-level exception handler
it leaves TLB entry that caused page fault in the TLB. If the faulting
task gets switched to a different CPU and completes page table update
there the TLB entry will get out of sync with the page table which may
cause a livelock on access to that page.
Invalidate faulting TLB entry on a slow path exit from the
fast_store_prohibited.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/entry.S