forked from torvalds/linux
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue for kexec on LoongArch #1963
Labels
[ARCH] loongarch
This bug impacts ARCH=loongarch
[PATCH] Accepted
A submitted patch has been accepted upstream
Comments
horms
pushed a commit
to horms/kexec-tools
that referenced
this issue
Nov 27, 2023
Normally vmlinux for LoongArch is of ET_EXEC type, while if built with CONFIG_RELOCATABLE (this is PIE) and Clang, it will be of ET_DYN type. Meanwhile, physical address field of segments in vmlinux has actually the same value as virtual address field. Similar to arm64, this patch allows to unconditionally skip the check on LoongArch. Link: ClangBuiltLinux/linux#1963 Signed-off-by: WANG Rui <wangrui@loongson.cn> Reviewed-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Simon Horman <horms@kernel.org>
nickdesaulniers
added
[PATCH] Submitted
A patch has been submitted for review
[ARCH] loongarch
This bug impacts ARCH=loongarch
labels
Nov 27, 2023
If I understand correctly, this should be resolved by https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/commit/?id=eaa717e912eef22706a3ccfb579a544ac1ee0904, so I am closing this because it lives outside of the kernel tree. Thanks a lot for testing and fixing this! |
nathanchance
added
[PATCH] Accepted
A submitted patch has been accepted upstream
and removed
[PATCH] Submitted
A patch has been submitted for review
labels
Nov 28, 2023
horms
pushed a commit
to horms/kexec-tools
that referenced
this issue
Dec 2, 2023
Normally vmlinux for LoongArch is of ET_EXEC type, while if built with CONFIG_RELOCATABLE (this is PIE) and Clang, it will be of ET_DYN type. Meanwhile, physical address field of segments in vmlinux has actually the same value as virtual address field. Similar to arm64, this patch allows to unconditionally skip the check on LoongArch. Link: ClangBuiltLinux/linux#1963 Signed-off-by: WANG Rui <wangrui@loongson.cn> Reviewed-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Simon Horman <horms@kernel.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[ARCH] loongarch
This bug impacts ARCH=loongarch
[PATCH] Accepted
A submitted patch has been accepted upstream
Currently, the vmlinux built from Clang cannot be loaded via kexec.
The text was updated successfully, but these errors were encountered: