Re: [PATCH] exec: remove legacy custom binfmt modules autoloading
From: Kees Cook
Date: Sat Nov 16 2024 - 23:56:32 EST
On Sat, 16 Nov 2024 23:13:23 +0000, Nir Lichtman wrote:
> Problem: The search binary handler logic contains legacy code
> to handle automatically loading kernel modules of unsupported
> binary formats.
> This logic is a leftover from a.out-to-ELF transition.
> After removal of a.out support, this code has no use anymore.
>
> Solution: Clean up this code from the search binary handler,
> also remove the line initialising retval to -ENOENT and instead
> just return -ENOEXEC if the flow has reached the end of the func.
>
> [...]
And it removes a goto. :)
Applied to for-next/execve, thanks!
[1/1] exec: remove legacy custom binfmt modules autoloading
https://git.kernel.org/kees/c/8c9870077aac
Take care,
--
Kees Cook