diff options
| author | Nir Lichtman <[email protected]> | 2024-11-16 23:13:23 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2024-11-30 03:35:58 +0000 |
| commit | fa1bdca98d74472dcdb79cb948b54f63b5886c04 (patch) | |
| tree | 428332de6c40883aadf88df9012ffcb696a4738c /arch/powerpc/lib/code-patching.c | |
| parent | exec: move warning of null argv to be next to the relevant code (diff) | |
| download | kernel-fa1bdca98d74472dcdb79cb948b54f63b5886c04.tar.gz kernel-fa1bdca98d74472dcdb79cb948b54f63b5886c04.zip | |
exec: remove legacy custom binfmt modules autoloading
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.
Note: Anyone who might find future uses for this legacy code
would be better off using binfmt_misc to trigger whatever
module loading they might need - would be more flexible that way.
Suggested-by: Alexander Viro <[email protected]>
Signed-off-by: Nir Lichtman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions
