[PW_SID:1091950] [v2] riscv: Check the return value of reloc handlers#1893
[PW_SID:1091950] [v2] riscv: Check the return value of reloc handlers#1893linux-riscv-bot wants to merge 2 commits into
Conversation
Currently, process_accumulated_relocations() ignores the return values from both reloc_handler() and accumulate_handler(). As a result, the kernel will proceed to load the module with corrupted or incomplete sections, which can lead to unpredictable behavior or kernel panics. So we need to check the return values of the handlers to propagate the error, and fall back to the cleanup mode. Fixes: 8fd6c51 ("riscv: Add remaining module relocations") 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: Check the return value of reloc handlers" |
|
Patch 1: "[v2] riscv: Check the return value of reloc handlers" |
|
Patch 1: "[v2] riscv: Check the return value of reloc handlers" |
|
Patch 1: "[v2] riscv: Check the return value of reloc handlers" |
|
Patch 1: "[v2] riscv: Check the return value of reloc handlers" |
|
Patch 1: "[v2] riscv: Check the return value of reloc handlers" |
|
Patch 1: "[v2] riscv: Check the return value of reloc handlers" |
|
Patch 1: "[v2] riscv: Check the return value of reloc handlers" |
|
Patch 1: "[v2] riscv: Check the return value of reloc handlers" |
|
Patch 1: "[v2] riscv: Check the return value of reloc handlers" |
|
Patch 1: "[v2] riscv: Check the return value of reloc handlers" |
|
Patch 1: "[v2] riscv: Check the return value of reloc handlers" |
2d4fcdd to
cd9d421
Compare
PR for series 1091950 applied to workflow__riscv__fixes
Name: [v2] riscv: Check the return value of reloc handlers
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1091950
Version: 2