[PW_SID:1070304] riscv: Check the return value of reloc handlers#1654
[PW_SID:1070304] riscv: Check the return value of reloc handlers#1654linux-riscv-bot wants to merge 1 commit intoworkflow__riscv__fixesfrom
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") Signed-off-by: Zishun Yi <vulab@iscas.ac.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "riscv: Check the return value of reloc handlers" |
|
Patch 1: "riscv: Check the return value of reloc handlers" |
|
Patch 1: "riscv: Check the return value of reloc handlers" |
|
Patch 1: "riscv: Check the return value of reloc handlers" |
|
Patch 1: "riscv: Check the return value of reloc handlers" |
|
Patch 1: "riscv: Check the return value of reloc handlers" |
|
Patch 1: "riscv: Check the return value of reloc handlers" |
|
Patch 1: "riscv: Check the return value of reloc handlers" |
|
Patch 1: "riscv: Check the return value of reloc handlers" |
|
Patch 1: "riscv: Check the return value of reloc handlers" |
|
Patch 1: "riscv: Check the return value of reloc handlers" |
|
Patch 1: "riscv: Check the return value of reloc handlers" |
PR for series 1070304 applied to workflow__riscv__fixes
Name: riscv: Check the return value of reloc handlers
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1070304
Version: 1