author: Masami Hiramatsu <mhiramat@kernel.org> 2020-09-10 17:55:05 +0900
committer: Steven Rostedt (VMware) <rostedt@goodmis.org> 2020-09-18 14:27:24 -0400
commit: 82d083ab60c3693201c6f5c7a5f23a6ed422098d
parent: 46bbe5c671e06f070428b9be142cc4ee5cedebac
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index ae78fb68d231..038128b2a755 100644
--- a/init/main.c
+++ b/init/main.c
@@ -33,6 +33,7 @@
#include <linux/nmi.h>
#include <linux/percpu.h>
#include <linux/kmod.h>
+#include <linux/kprobes.h>
#include <linux/vmalloc.h>
#include <linux/kernel_stat.h>
#include <linux/start_kernel.h>
@@ -1402,6 +1403,7 @@ static int __ref kernel_init(void *unused)
kernel_init_freeable();
/* need to finish all async __init code before freeing the memory */
async_synchronize_full();
+ kprobe_free_init_mem();
ftrace_free_init_mem();
free_initmem();
mark_readonly();