aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index e2cd3e2a5ae8..eb7b63334009 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -67,6 +67,7 @@
67#include <linux/oom.h> 67#include <linux/oom.h>
68#include <linux/khugepaged.h> 68#include <linux/khugepaged.h>
69#include <linux/signalfd.h> 69#include <linux/signalfd.h>
70#include <linux/uprobes.h>
70 71
71#include <asm/pgtable.h> 72#include <asm/pgtable.h>
72#include <asm/pgalloc.h> 73#include <asm/pgalloc.h>
@@ -701,6 +702,8 @@ void mm_release(struct task_struct *tsk, struct mm_struct *mm)
701 exit_pi_state_list(tsk); 702 exit_pi_state_list(tsk);
702#endif 703#endif
703 704
705 uprobe_free_utask(tsk);
706
704 /* Get rid of any cached register state */ 707 /* Get rid of any cached register state */
705 deactivate_mm(tsk, mm); 708 deactivate_mm(tsk, mm);
706 709
@@ -1295,6 +1298,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1295 INIT_LIST_HEAD(&p->pi_state_list); 1298 INIT_LIST_HEAD(&p->pi_state_list);
1296 p->pi_state_cache = NULL; 1299 p->pi_state_cache = NULL;
1297#endif 1300#endif
1301 uprobe_copy_process(p);
1298 /* 1302 /*
1299 * sigaltstack should be cleared when sharing the same VM 1303 * sigaltstack should be cleared when sharing the same VM
1300 */ 1304 */