[PATCH 2/3] exec: Introduce finalize_exec() before start_thread()

2018-02-14 Thread Kees Cook
Provide a final call back into fs/exec.c before start_thread() takes over, to handle any last-minute changes, like the coming restoration of the stack limit. Signed-off-by: Kees Cook --- As an alternative, fs/exec.c could provide a wrapper for start_thread()... --- fs/binfmt_aout.c| 1 +

[PATCH 2/3] exec: Introduce finalize_exec() before start_thread()

2018-01-09 Thread Kees Cook
Provide a final call back into fs/exec.c before start_thread() takes over, to handle any last-minute changes, like the coming restoration of the stack limit. Signed-off-by: Kees Cook --- fs/binfmt_aout.c| 1 + fs/binfmt_elf.c | 1 + fs/binfmt_elf_fdpic.c | 1 + fs/binfmt_flat.c