diff options
| author | Yao Zi <[email protected]> | 2025-03-26 05:14:46 +0000 |
|---|---|---|
| committer | Alexandre Ghiti <[email protected]> | 2025-04-01 07:07:12 +0000 |
| commit | 28093cfef5dd62f4cbd537f2bdf6f0bf85309c45 (patch) | |
| tree | 04c4176652f61101a362df6953d943496a2bf322 /drivers/net/xen-netback/interface.c | |
| parent | Merge patch series "Add some validation for vector, vector crypto and fp stuff" (diff) | |
| download | kernel-28093cfef5dd62f4cbd537f2bdf6f0bf85309c45.tar.gz kernel-28093cfef5dd62f4cbd537f2bdf6f0bf85309c45.zip | |
riscv/kexec_file: Handle R_RISCV_64 in purgatory relocator
Commit 58ff537109ac ("riscv: Omit optimized string routines when
using KASAN") introduced calls to EXPORT_SYMBOL() in assembly string
routines, which result in R_RISCV_64 relocations against
.export_symbol section. As these rountines are reused by RISC-V
purgatory and our relocator doesn't recognize these relocations, this
fails kexec-file-load with dmesg like
[ 11.344251] kexec_image: Unknown rela relocation: 2
[ 11.345972] kexec_image: Error loading purgatory ret=-8
Let's support R_RISCV_64 relocation to fix kexec on 64-bit RISC-V.
32-bit variant isn't covered since KEXEC_FILE and KEXEC_PURGATORY isn't
available.
Fixes: 58ff537109ac ("riscv: Omit optimized string routines when using KASAN")
Signed-off-by: Yao Zi <[email protected]>
Tested-by: Björn Töpel <[email protected]>
Reviewed-by: Björn Töpel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Ghiti <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
