xtensa: disable preemption around cache alias management calls
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 16 Nov 2020 09:38:59 +0000 (01:38 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:05:56 +0000 (13:05 +0100)
commit85bbd80380ca0f876b0a4853e0dfbd80ecb9bdea
tree7dfa2f1c4ad8a3791a08bd1f37afe27508352fc8
parent52ad1338d3b6c3adf03f1c1930b0e973f500f92d
xtensa: disable preemption around cache alias management calls

commit 3a860d165eb5f4d7cf0bf81ef6a5b5c5e1754422 upstream.

Although cache alias management calls set up and tear down TLB entries
and fast_second_level_miss is able to restore TLB entry should it be
evicted they absolutely cannot preempt each other because they use the
same TLBTEMP area for different purposes.
Disable preemption around all cache alias management calls to enforce
that.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/mm/cache.c