diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 8f82a3bdcb8f..07cddff89c7b 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -91,6 +91,7 @@ | |||
91 | #include <linux/kcov.h> | 91 | #include <linux/kcov.h> |
92 | #include <linux/livepatch.h> | 92 | #include <linux/livepatch.h> |
93 | #include <linux/thread_info.h> | 93 | #include <linux/thread_info.h> |
94 | #include <linux/stackleak.h> | ||
94 | 95 | ||
95 | #include <asm/pgtable.h> | 96 | #include <asm/pgtable.h> |
96 | #include <asm/pgalloc.h> | 97 | #include <asm/pgalloc.h> |
@@ -1926,6 +1927,8 @@ static __latent_entropy struct task_struct *copy_process( | |||
1926 | if (retval) | 1927 | if (retval) |
1927 | goto bad_fork_cleanup_io; | 1928 | goto bad_fork_cleanup_io; |
1928 | 1929 | ||
1930 | stackleak_task_init(p); | ||
1931 | |||
1929 | if (pid != &init_struct_pid) { | 1932 | if (pid != &init_struct_pid) { |
1930 | pid = alloc_pid(p->nsproxy->pid_ns_for_children); | 1933 | pid = alloc_pid(p->nsproxy->pid_ns_for_children); |
1931 | if (IS_ERR(pid)) { | 1934 | if (IS_ERR(pid)) { |