diff options
author | Yonatan Goldschmidt <yon.goldschmidt@gmail.com> | 2025-02-24 00:32:34 +0200 |
---|---|---|
committer | Kees Cook <kees@kernel.org> | 2025-02-24 11:30:16 -0800 |
commit | cc9554e662a3b5a13f514cfcced54ac263c07094 (patch) | |
tree | c59c69f9138dca52ec9b30d959d74a2654dc9b19 /fs/exec.c | |
parent | 7e620b56d958a5efcb0158c366581e0637fd9a50 (diff) |
binfmt: Remove loader from linux_binprm struct
Commit 987f20a9dcce ("a.out: Remove the a.out implementation") removed
the last in-tree user of the loader field, and as far as I can tell, it
was the only one historically.
Signed-off-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
Link: https://lore.kernel.org/r/20250223223234.13764-1-yon.goldschmidt@gmail.com
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/exec.c b/fs/exec.c index 506cd411f4ac..f45859ad13ac 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -755,8 +755,6 @@ int setup_arg_pages(struct linux_binprm *bprm, mm->arg_start = bprm->p; #endif - if (bprm->loader) - bprm->loader -= stack_shift; bprm->exec -= stack_shift; if (mmap_write_lock_killable(mm)) |