Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Yonatan Goldschmidt and committed by
Kees Cook
cc9554e6 7e620b56

+1 -3
-2
fs/exec.c
··· 755 755 mm->arg_start = bprm->p; 756 756 #endif 757 757 758 - if (bprm->loader) 759 - bprm->loader -= stack_shift; 760 758 bprm->exec -= stack_shift; 761 759 762 760 if (mmap_write_lock_killable(mm))
+1 -1
include/linux/binfmts.h
··· 64 64 const char *fdpath; /* generated filename for execveat */ 65 65 unsigned interp_flags; 66 66 int execfd; /* File descriptor of the executable */ 67 - unsigned long loader, exec; 67 + unsigned long exec; 68 68 69 69 struct rlimit rlim_stack; /* Saved RLIMIT_STACK used during exec. */ 70 70