[PATCH v1 0/3] RISC-V: Fix a few kexec_file_load(2) failures

Petr Tesařík petr at tesarici.cz
Tue Jul 25 03:06:27 PDT 2023


Hi,

oops. I wanted to _add_ the kexec ML to all other recipients, but I
somehow screwed up, so this version is sent _only_ to the kexec ML. If
you reply here, the other recipients will not see your reply. The real
thread is here:

https://lore.kernel.org/lkml/cover.1690274483.git.petr.tesarik.ext@huawei.com/

I'm sorry
Petr T

On Tue, 25 Jul 2023 12:01:07 +0200
Petr Tesarik <petrtesarik at huaweicloud.com> wrote:

> From: Petr Tesarik <petr.tesarik.ext at huawei.com>
> 
> The kexec_file_load(2) syscall does not work at least in some kernel
> builds. For details see the relevant section in this blog post:
> 
> https://sigillatum.tesarici.cz/2023-07-21-state-of-riscv64-kdump.html
> 
> This patch series handles additional relocation types and removes the need
> to implement a Global Offset Table (GOT) for the purgatory.
> 
> Petr Tesarik (2):
>   riscv/kexec: handle R_RISCV_ADD16 and R_RISCV_SUB16 relocation types
>   riscv/purgatory: do not link with string.o
> 
> Torsten Duwe (1):
>   riscv/kexec: handle R_RISCV_CALL_PLT relocation type
> 
>  arch/riscv/kernel/elf_kexec.c | 7 +++++++
>  arch/riscv/purgatory/Makefile | 9 +--------
>  2 files changed, 8 insertions(+), 8 deletions(-)
> 




More information about the kexec mailing list