[PATCH 1/5] riscv: kexec: Disable the MMU before walking the entry list
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Fri Oct 23 00:39:38 PDT 2026
> From: Han Gao <gaohan at iscas.ac.cn>
>
> riscv_kexec_relocate() only switches satp to Bare when it meets an
> IND_INDIRECTION entry. Since segments may be allocated from CMA at their
> destination, an image can have no indirection pages, and its list then
> holds only IND_DONE. The relocation code jumps to the physical entry
> point with the MMU still enabled and loops on instruction page faults.
>
> Switch to Bare mode before reading the first entry, converting the list
> pointer from its linear-map address.
>
> Fixes: 07d24902977e ("kexec: enable CMA based contiguous allocation")
> Signed-off-by: Han Gao <gaohan at iscas.ac.cn>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261023-riscv-kexec-cma-fixes-v1-0-825b90ea23c4@iscas.ac.cn?part=1
More information about the kexec
mailing list