1
0
Fork 0
alistair23-linux/arch/xtensa/mm
Max Filippov 147128e775 xtensa: fix TLB sanity checker
commit 36de10c478 upstream.

Virtual and translated addresses retrieved by the xtensa TLB sanity
checker must be consistent, i.e. correspond to the same state of the
checked TLB entry. KASAN shadow memory is mapped dynamically using
auto-refill TLB entries and thus may change TLB state between the
virtual and translated address retrieval, resulting in false TLB
insanity report.
Move read_xtlb_translation close to read_xtlb_virtual to make sure that
read values are consistent.

Cc: stable@vger.kernel.org
Fixes: a99e07ee5e ("xtensa: check TLB sanity on return to userspace")
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-21 11:04:34 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
cache.c mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
fault.c signal: Remove the task parameter from force_sig_fault 2019-05-29 09:31:43 -05:00
highmem.c sched/preempt, mm/kmap: Explicitly disable/enable preemption in kmap_atomic_* 2015-05-19 08:39:14 +02:00
init.c xtensa: remove free_initrd_mem 2019-08-26 18:19:04 -07:00
ioremap.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
kasan_init.c xtensa: use MEMBLOCK_ALLOC_ANYWHERE for KASAN shadow map 2019-12-21 11:04:33 +01:00
misc.S xtensa: abstract 'entry' and 'retw' in assembly code 2019-07-08 10:04:48 -07:00
mmu.c xtensa: fix format string warning in init_pmd 2019-04-04 18:45:55 -07:00
tlb.c xtensa: fix TLB sanity checker 2019-12-21 11:04:34 +01:00