summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2019-11-14 00:18:31 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-21 12:35:43 +0300
commit2dd67de005c93f3465de34cd88f52b416622e07a (patch)
tree9886b077609b034fb2d932318eafba79107cc075 /fs
parentdc5892afec153c298d9d0dc98f7d4ec9ff70fa3b (diff)
downloadlinux-2dd67de005c93f3465de34cd88f52b416622e07a.tar.xz
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: a99e07ee5e88 ("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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions