diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 19908b26cf80..adefc1131f27 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/sem.h> | 23 | #include <linux/sem.h> |
24 | #include <linux/file.h> | 24 | #include <linux/file.h> |
25 | #include <linux/fdtable.h> | 25 | #include <linux/fdtable.h> |
26 | #include <linux/iocontext.h> | ||
26 | #include <linux/key.h> | 27 | #include <linux/key.h> |
27 | #include <linux/binfmts.h> | 28 | #include <linux/binfmts.h> |
28 | #include <linux/mman.h> | 29 | #include <linux/mman.h> |
@@ -909,7 +910,7 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
909 | 910 | ||
910 | rt_mutex_init_task(p); | 911 | rt_mutex_init_task(p); |
911 | 912 | ||
912 | #ifdef CONFIG_TRACE_IRQFLAGS | 913 | #ifdef CONFIG_PROVE_LOCKING |
913 | DEBUG_LOCKS_WARN_ON(!p->hardirqs_enabled); | 914 | DEBUG_LOCKS_WARN_ON(!p->hardirqs_enabled); |
914 | DEBUG_LOCKS_WARN_ON(!p->softirqs_enabled); | 915 | DEBUG_LOCKS_WARN_ON(!p->softirqs_enabled); |
915 | #endif | 916 | #endif |
@@ -1124,8 +1125,8 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1124 | */ | 1125 | */ |
1125 | p->group_leader = p; | 1126 | p->group_leader = p; |
1126 | INIT_LIST_HEAD(&p->thread_group); | 1127 | INIT_LIST_HEAD(&p->thread_group); |
1127 | INIT_LIST_HEAD(&p->ptrace_children); | 1128 | INIT_LIST_HEAD(&p->ptrace_entry); |
1128 | INIT_LIST_HEAD(&p->ptrace_list); | 1129 | INIT_LIST_HEAD(&p->ptraced); |
1129 | 1130 | ||
1130 | /* Now that the task is set up, run cgroup callbacks if | 1131 | /* Now that the task is set up, run cgroup callbacks if |
1131 | * necessary. We need to run them before the task is visible | 1132 | * necessary. We need to run them before the task is visible |
@@ -1197,7 +1198,7 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1197 | } | 1198 | } |
1198 | 1199 | ||
1199 | if (likely(p->pid)) { | 1200 | if (likely(p->pid)) { |
1200 | add_parent(p); | 1201 | list_add_tail(&p->sibling, &p->real_parent->children); |
1201 | if (unlikely(p->ptrace & PT_PTRACED)) | 1202 | if (unlikely(p->ptrace & PT_PTRACED)) |
1202 | __ptrace_link(p, current->parent); | 1203 | __ptrace_link(p, current->parent); |
1203 | 1204 | ||