[PW_SID:1091951] [v2] riscv: misaligned: Restore epc in error path#1894
[PW_SID:1091951] [v2] riscv: misaligned: Restore epc in error path#1894linux-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: "[v2] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v2] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v2] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v2] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v2] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v2] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v2] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v2] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v2] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v2] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v2] riscv: misaligned: Restore epc in error path" |
|
Patch 1: "[v2] riscv: misaligned: Restore epc in error path" |
2c3b264 to
2d4fcdd
Compare
PR for series 1091951 applied to workflow__riscv__fixes
Name: [v2] riscv: misaligned: Restore epc in error path
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1091951
Version: 2