From: "Elly I. Esparza" <ellyesparza8@gmail.com>
To: linux-kernel@vger.kernel.org, will@kernel.org,
akpm@linux-foundation.org, ast@kernel.org, yangfeng@kylinos.cn,
gregkh@linuxfoundation.org, hch@lst.de, mhiramat@kernel.org,
qperret@google.com
Cc: "Elly I . Esparza" <ellyesparza8@gmail.com>
Subject: [PATCH 2/2] kernel/kallsyms: Prevent bypassing of kprobes blacklist
Date: Wed, 18 Feb 2026 11:48:19 -0300 [thread overview]
Message-ID: <20260218144819.24326-1-ellyesparza8@gmail.com> (raw)
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
next reply other threads:[~2026-02-18 14:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-18 14:48 Elly I. Esparza [this message]
2026-02-19 1:29 ` Masami Hiramatsu
2026-02-19 7:20 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260218144819.24326-1-ellyesparza8@gmail.com \
--to=ellyesparza8@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=ast@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=qperret@google.com \
--cc=will@kernel.org \
--cc=yangfeng@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®