Re: [PATCH v3 0/2] kexec: fix probe error codes and error propagation

From: Mike Rapoport

Date: Wed Sep 02 2026 - 01:35:22 EST


On Fri, 21 Aug 2026 19:19:56 +0530, Mukesh Pilaniya wrote:
> kexec: fix probe error codes and error propagation
>
> While debugging a misleading error on s390x where kexec -s reported
> "syscall kexec_file_load not available" instead of the actual EINVAL
> from a kernel command line that exceeded the architecture limit, we
> found that some kexec image probe functions return -EINVAL instead of
> -ENOEXEC for format mismatches, and kexec_image_probe_default() has a
> bug where it returns whatever the last loader returned rather than
> always returning -ENOEXEC when no loader matches.
>
> [...]

Applied to kexec-fixes branch of liveupdate/linux.git tree, thanks!

[1/2] kexec: return -ENOEXEC from image probe functions on mismatch
commit: 2792b4b15f148b142a4302706410e520c8049c00
[2/2] kexec: fix error propagation in kexec_image_probe_default()
commit: b7c94f4d0961e3ea8ce0463b6eda1bb2cf9f2694

tree: https://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux
branch: kexec-fixes

--
Sincerely yours,
Mike.