lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID:  <175939434403.3665022.13030530757238556332.stgit@mhiramat.tok.corp.google.com>
Date: Thu,  2 Oct 2025 17:39:04 +0900
From: "Masami Hiramatsu (Google)" <mhiramat@...nel.org>
To: Steven Rostedt <rostedt@...dmis.org>,
	Menglong Dong <menglong8.dong@...il.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
	Masami Hiramatsu <mhiramat@...nel.org>,
	Menglong Dong <dongml2@...natelecom.cn>,
	linux-kernel@...r.kernel.org,
	linux-trace-kernel@...r.kernel.org,
	oliver.sang@...el.com
Subject: [PATCH] tracing: fprobe: Fix to init fprobe_ip_table earlier

From: Masami Hiramatsu (Google) <mhiramat@...nel.org>

Since the fprobe_ip_table is used from module unloading in
the failure path of load_module(), it must be initialized in
the earlier timing than late_initcall(). Unless that, the
fprobe_module_callback() will use an uninitialized spinlock of
fprobe_ip_table.

Initialize fprobe_ip_table in core_initcall which is the same
timing as ftrace.

Reported-by: kernel test robot <oliver.sang@...el.com>
Closes: https://lore.kernel.org/oe-lkp/202509301440.be4b3631-lkp@intel.com
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@...nel.org>
---
 kernel/trace/fprobe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/fprobe.c b/kernel/trace/fprobe.c
index 95e43814b85b..99d83c08b9e2 100644
--- a/kernel/trace/fprobe.c
+++ b/kernel/trace/fprobe.c
@@ -847,4 +847,4 @@ static int __init fprobe_initcall(void)
 	rhltable_init(&fprobe_ip_table, &fprobe_rht_params);
 	return 0;
 }
-late_initcall(fprobe_initcall);
+core_initcall(fprobe_initcall);


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ