Commit eb775f81 authored by Ananth N Mavinakayanahalli's avatar Ananth N Mavinakayanahalli Committed by Zheng Zengkai
Browse files

powerpc/sstep: Check instruction validity against ISA version before emulation



stable inclusion
from stable-5.10.21
commit 20d323c8cf5730eb1693ef3fcf0919b35a20e6ad
bugzilla: 50609

--------------------------------

commit 8813ff49 upstream.

We currently unconditionally try to emulate newer instructions on older
Power versions that could cause issues. Gate it.

Fixes: 350779a2 ("powerpc: Handle most loads and stores in instruction emulation code")
Signed-off-by: default avatarAnanth N Mavinakayanahalli <ananth@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/161157995977.64773.13794501093457185080.stgit@thinktux.local


[Dropped a few missing hunks for the backport to v5.10]
Signed-off-by: default avatarNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent db155f74
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment