signals: move cred_guard_mutex from task_struct to signal_struct
Oleg Nesterov pointed out we have to prevent multiple-threads-inside-exec itself and we can reuse ->cred_guard_mutex for it. Yes, concurrent execve() has no worth. Let's move ->cred_guard_mutex from task_struct to signal_struct. It naturally prevent multiple-threads-inside-exec. Signed-off-by:KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Reviewed-by:
Oleg Nesterov <oleg@redhat.com> Acked-by:
Roland McGrath <roland@redhat.com> Acked-by:
David Howells <dhowells@redhat.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- fs/exec.c 5 additions, 5 deletionsfs/exec.c
- fs/proc/base.c 4 additions, 4 deletionsfs/proc/base.c
- include/linux/init_task.h 2 additions, 2 deletionsinclude/linux/init_task.h
- include/linux/sched.h 4 additions, 3 deletionsinclude/linux/sched.h
- include/linux/tracehook.h 1 addition, 1 deletioninclude/linux/tracehook.h
- kernel/cred.c 1 addition, 3 deletionskernel/cred.c
- kernel/fork.c 2 additions, 0 deletionskernel/fork.c
- kernel/ptrace.c 2 additions, 2 deletionskernel/ptrace.c
Loading