summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorMukesh Pilaniya <mpilaniy@redhat.com>2026-08-21 19:19:57 +0530
committerMike Rapoport (Microsoft) <rppt@kernel.org>2026-09-02 07:41:28 +0300
commit2792b4b15f148b142a4302706410e520c8049c00 (patch)
tree7e93be20ce685f4c58f4025bbb8770188017fa8a /scripts/Makefile.thinlto
parent818bebeb63dd6bf5f4e07e145f6cdbace520a34c (diff)
downloadlinux-next-2792b4b15f148b142a4302706410e520c8049c00.tar.gz
linux-next-2792b4b15f148b142a4302706410e520c8049c00.zip
kexec: return -ENOEXEC from image probe functions on mismatch
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. Return -ENOEXEC from all probe functions and their helpers when the image format is not recognized. Signed-off-by: Mukesh Pilaniya <mpilaniy@redhat.com> Reviewed-by: Philipp Rudo <prudo@redhat.com> Reviewed-by: Pratyush Yadav <pratyush@kernel.org> Reviewed-by: Bradley Morgan <include@grrlz.net> Link: https://patch.msgid.link/20260821-mpilaniy-v3-1-76b355399d2e@redhat.com Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions