[PW_SID:1071108] riscv: misaligned: Restore epc in error path#1662
[PW_SID:1071108] riscv: misaligned: Restore epc in error path#1662linux-riscv-bot wants to merge 1 commit into
Conversation
In handle_scalar_misaligned_{store, load}, regs->epc is temporarily set
to 0. While it is properly restored in the instruction decoding error
path, it is not restored in the subsequent error paths. This causes the
epc to be corrupted.
Fix this by restoring regs->epc in the unsupported fp and
copy_{from,to}_user error paths.
Fixes: 7c586a5 ("riscv: add floating point insn support to misaligned access emulation")
Fixes: 4413815 ("riscv: misaligned: remove CONFIG_RISCV_M_MODE specific code")
Signed-off-by: Zishun Yi <vulab@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "riscv: misaligned: Restore epc in error path" |
|
Patch 1: "riscv: misaligned: Restore epc in error path" |
|
Patch 1: "riscv: misaligned: Restore epc in error path" |
|
Patch 1: "riscv: misaligned: Restore epc in error path" |
|
Patch 1: "riscv: misaligned: Restore epc in error path" |
|
Patch 1: "riscv: misaligned: Restore epc in error path" |
|
Patch 1: "riscv: misaligned: Restore epc in error path" |
|
Patch 1: "riscv: misaligned: Restore epc in error path" |
|
Patch 1: "riscv: misaligned: Restore epc in error path" |
|
Patch 1: "riscv: misaligned: Restore epc in error path" |
|
Patch 1: "riscv: misaligned: Restore epc in error path" |
|
Patch 1: "riscv: misaligned: Restore epc in error path" |
PR for series 1071108 applied to workflow__riscv__fixes
Name: riscv: misaligned: Restore epc in error path
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1071108
Version: 1