Thread (14 messages) 14 messages, 3 authors, 2025-08-21

Re: [PATCH v3 8/8] x86/ftrace: enable EXECMEM_ROX_CACHE for ftrace allocations

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2025-08-21 19:25:12
Also in: linux-mm, linux-modules, lkml

On Thu, 21 Aug 2025 09:11:46 +0300
Mike Rapoport [off-list ref] wrote:
quoted hunk ↗ jump to hunk
maple tree is initialized after ftrace, so the patch below should fix it:
diff --git a/init/main.c b/init/main.c
index 0ee0ee7b7c2c..5753e9539ae6 100644
--- a/init/main.c
+++ b/init/main.c
@@ -956,6 +956,7 @@ void start_kernel(void)
 	sort_main_extable();
 	trap_init();
 	mm_core_init();
+	maple_tree_init();
 	poking_init();
 	ftrace_init();
 
@@ -973,7 +974,6 @@ void start_kernel(void)
 		 "Interrupts were enabled *very* early, fixing it\n"))
 		local_irq_disable();
 	radix_tree_init();
-	maple_tree_init();
 
 	/*
 	 * Set up housekeeping before setting up workqueues to allow the unbound
 
Tested-by: Steven Rostedt (Google) <rostedt@goodmis.org>

Thanks,

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help