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:27:25 +0000 (13:27 +0100)
commit7d2f4b758a04748f86786d2a99fe43bbbda2c22f
tree7a5c340073f43157241b9439bd3c136ae2a9c1cc
parent47a15b5c7ad24d854e4399a855ff2117ce31e73d
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