]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: 9430/1: entry: Do a dummy read from VMAP shadow
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 23 Oct 2024 12:04:44 +0000 (13:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2024 09:41:03 +0000 (10:41 +0100)
commitc86d26b4b089ca294b3b7d915a7da61edb77935f
tree8b29adcc9a2f08bcd277f202f0972d1c54ceeb5c
parent473ffae3030188f1c6b80e1b3631a26b4adf7b32
ARM: 9430/1: entry: Do a dummy read from VMAP shadow

commit 44e9a3bb76e5f2eecd374c8176b2c5163c8bb2e2 upstream.

When switching task, in addition to a dummy read from the new
VMAP stack, also do a dummy read from the VMAP stack's
corresponding KASAN shadow memory to sync things up in
the new MM context.

Cc: stable@vger.kernel.org
Fixes: a1c510d0adc6 ("ARM: implement support for vmap'ed stacks")
Link: https://lore.kernel.org/linux-arm-kernel/a1a1d062-f3a2-4d05-9836-3b098de9db6d@foss.st.com/
Reported-by: Clement LE GOFFIC <clement.legoffic@foss.st.com>
Suggested-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kernel/entry-armv.S