exec: introduce finalize_exec() before start_thread()
Provide a final callback into fs/exec.c before start_thread() takes over, to handle any last-minute changes, like the coming restoration of the stack limit. Link: http://lkml.kernel.org/r/1518638796-20819-3-git-send-email-keescook@chromium.org Signed-off-by:Kees Cook <keescook@chromium.org> Cc: Andy Lutomirski <luto@kernel.org> Cc: Ben Hutchings <ben@decadent.org.uk> Cc: Ben Hutchings <ben.hutchings@codethink.co.uk> Cc: Brad Spengler <spender@grsecurity.net> Cc: Greg KH <greg@kroah.com> Cc: Hugh Dickins <hughd@google.com> Cc: "Jason A. Donenfeld" <Jason@zx2c4.com> Cc: Laura Abbott <labbott@redhat.com> Cc: Michal Hocko <mhocko@kernel.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Rik van Riel <riel@redhat.com> Cc: Willy Tarreau <w@1wt.eu> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- fs/binfmt_aout.c 1 addition, 0 deletionsfs/binfmt_aout.c
- fs/binfmt_elf.c 1 addition, 0 deletionsfs/binfmt_elf.c
- fs/binfmt_elf_fdpic.c 1 addition, 0 deletionsfs/binfmt_elf_fdpic.c
- fs/binfmt_flat.c 1 addition, 0 deletionsfs/binfmt_flat.c
- fs/exec.c 6 additions, 0 deletionsfs/exec.c
- include/linux/binfmts.h 1 addition, 0 deletionsinclude/linux/binfmts.h
Loading
Please register or sign in to comment