[PW_SID:1092775] [v3] riscv: misaligned: Restore epc in error path#1908
[PW_SID:1092775] [v3] riscv: misaligned: Restore epc in error path#1908linux-riscv-bot wants to merge 2 commits into
Conversation
In handle_scalar_misaligned_store/load, regs->epc is temporarily set to 0. And be restored in the first error path. But it not restore for the rest of the error path. This cause the epc corrupted. Fix this by restore epc in fp error and copy_from_user error. Fixes: 7c586a5 ("riscv: add floating point insn support to misaligned access emulation") Fixes: 4413815 ("riscv: misaligned: remove CONFIG_RISCV_M_MODE specific code") Assisted-by: Gemini:gemini-3.1-pro Signed-off-by: Zishun Yi <vulab@iscas.ac.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v3] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v3] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v3] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v3] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v3] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v3] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v3] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v3] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v3] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v3] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v3] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v3] riscv: misaligned: Restore epc in error path" |
2d4fcdd to
cd9d421
Compare
PR for series 1092775 applied to workflow__riscv__fixes
Name: [v3] riscv: misaligned: Restore epc in error path
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1092775
Version: 3