binfmt and binary execution!
I'm just an IT student, I'm working on a project and I need a little bit more knowledge about how files get executed in the kernel,
I found something about the binfmt but mostly on wrapper rather than real binary loaders (like a.out and elf).
I'm trying (unsuccessfully) to figure out exactly in which file the binary is loaded in to the memory, the only kzalloc I found is located in the do_exec() from exec.c but it should refer at the initialization of the struct linux_binprm, so it loads the file references on the memory, but not the file itself.
I'm sorry if my question isn't clear, summarizing, I would like to have more accurate information about how binary are loaded and executed by exec.c.