exec: kill task_struct->did_exec
authorOleg Nesterov <oleg@redhat.com>
Thu, 23 Jan 2014 23:55:52 +0000 (15:55 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:37:02 +0000 (16:37 -0800)
commit98611e4e6a2b4a03fd2d4750cce8e4455a995c8d
tree5979f4761ba67616eaeb3c5fd6fd19dbd265f9f2
parent63e46b95e9eae1161832bf45cb40bbad37bfb182
exec: kill task_struct->did_exec

We can kill either task->did_exec or PF_FORKNOEXEC, they are mutually
exclusive.  The patch kills ->did_exec because it has a single user.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c
include/linux/sched.h
kernel/fork.c
kernel/sys.c