public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] kernel/kallsyms: Prevent bypassing of kprobes blacklist
@ 2026-02-18 14:48 Elly I. Esparza
  2026-02-19  1:29 ` Masami Hiramatsu
  0 siblings, 1 reply; 3+ messages in thread
From: Elly I. Esparza @ 2026-02-18 14:48 UTC (permalink / raw)
  To: linux-kernel, will, akpm, ast, yangfeng, gregkh, hch, mhiramat,
	qperret
  Cc: Elly I . Esparza

Kprobes can be used to get the adress of kallsyms_lookup_name() providing
access to blacklisted symbols.

Add kallsyms_lookup_name() to kprobes blacklist.

Signed-off-by: Elly I. Esparza <ellyesparza8@gmail.com>
---
 kernel/kallsyms.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c
index 1e7635864124..13a7c0fdb5da 100644
--- a/kernel/kallsyms.c
+++ b/kernel/kallsyms.c
@@ -234,6 +234,7 @@ unsigned long kallsyms_lookup_name(const char *name)
 
 	return module_kallsyms_lookup_name(name);
 }
+NOKPROBE_SYMBOL(kallsyms_lookup_name)
 
 /*
  * Iterate over all symbols in vmlinux.  For symbols from modules use
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-19  7:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-18 14:48 [PATCH 2/2] kernel/kallsyms: Prevent bypassing of kprobes blacklist Elly I. Esparza
2026-02-19  1:29 ` Masami Hiramatsu
2026-02-19  7:20   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox