kernel-fxtec-pro1x/arch/xtensa
Max Filippov 2f5d27ddbf xtensa: fix TLB sanity checker
commit 36de10c4788efc6efe6ff9aa10d38cb7eea4c818 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 10:57:25 +01:00
..
boot xtensa: xtfpga.dtsi: fix dtc warnings about SPI 2019-02-12 19:47:05 +01:00
configs xtensa: smp_lx200_defconfig: fix vectors clash 2019-03-13 14:02:28 -07:00
include xtensa: make sure bFLT stack is 16 byte aligned 2018-11-21 09:19:16 +01:00
kernel xtensa: drop EXPORT_SYMBOL for outs*/ins* 2019-10-29 09:20:00 +01:00
lib xtensa: add support for KASAN 2017-12-16 22:37:12 -08:00
mm xtensa: fix TLB sanity checker 2019-12-21 10:57:25 +01:00
oprofile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
platforms xtensa: ISS: don't allocate memory in platform_setup 2018-09-06 11:29:31 -07:00
variants xtensa: add test_kc705_be variant 2018-08-20 12:34:45 -07:00
Kconfig xtensa: enable SG chaining in Kconfig 2018-09-11 22:12:59 -07:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Makefile xtensa: remove unnecessary KBUILD_SRC ifeq conditional 2018-09-11 22:09:48 -07:00