aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index d896e9ca38b0..47911e49c2b1 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>
@@ -1880,6 +1881,8 @@ static __latent_entropy struct task_struct *copy_process(
1880 if (retval) 1881 if (retval)
1881 goto bad_fork_cleanup_io; 1882 goto bad_fork_cleanup_io;
1882 1883
1884 stackleak_task_init(p);
1885
1883 if (pid != &init_struct_pid) { 1886 if (pid != &init_struct_pid) {
1884 pid = alloc_pid(p->nsproxy->pid_ns_for_children); 1887 pid = alloc_pid(p->nsproxy->pid_ns_for_children);
1885 if (IS_ERR(pid)) { 1888 if (IS_ERR(pid)) {