just like vmlinux embeds the vDSO, i think there should be a way to compile linux such that it embeds a copy of busybox, and all of the ELF loading code is bypassed in favor of mapping the executable into the new address space and transferring control to its entry point
> Since Linux v4.18, a more advanced API called user mode driver is available to run a user mode helper. The basic idea behind this API is that instead of specifying a path to a file on the root file system, an arbitrary buffer can be provided. The content of this buffer will be executed in user space just like a regular program.
upsettingly, kernel.org and the vendors is ahead of me here
@whitequark ah yes the vdso section is just a VMA with a custom page fault handler that inserts PTEs pointing to an in-kernel buffer on demand (and vvar is basically like that, too). but ELF loading in the kernel isn't really all that complicated either, you basically go through an array of "please map this range to this location"...
@whitequark what would bypassing ELF loading mean? pretty much the only elf loading the kernel does for a static binary is to map its memory ranges into an address space and then run it starting at the entry point...