[PATCH] kexec: return -ENOEXEC from image probe functions on mismatch
patchwork-bot+linux-riscv at kernel.org
patchwork-bot+linux-riscv at kernel.org
Sun Nov 1 14:15:53 PST 2026
Hello:
This patch was applied to riscv/linux.git (fixes)
by Mike Rapoport (Microsoft) <rppt at kernel.org>:
On Thu, 13 Aug 2026 12:36:29 +0530 you wrote:
> Several kexec_file_load() image probe functions return -EINVAL when
> they do not recognize the image format. A probe function that rejects
> an image should return -ENOEXEC to indicate that the image is not a
> recognized executable format. -EINVAL implies a problem with the
> syscall parameters, not with image recognition.
>
> kexec_image_probe_default() iterates through registered loaders and
> returns the last probe's error code to the caller. That error
> propagates as the kexec_file_load() return value to userspace.
> Returning -EINVAL from a probe when no loader matches is semantically
> incorrect and misleads userspace about the nature of the failure.
>
> [...]
Here is the summary with links:
- kexec: return -ENOEXEC from image probe functions on mismatch
https://git.kernel.org/riscv/c/2792b4b15f14
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-arm-kernel
mailing list