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: <20240601133224.674784-1-mjguzik@gmail.com>
Date: Sat,  1 Jun 2024 15:32:23 +0200
From: Mateusz Guzik <mjguzik@...il.com>
To: ast@...nel.org
Cc: linux-kernel@...r.kernel.org,
	bpf@...r.kernel.org,
	Mateusz Guzik <mjguzik@...il.com>
Subject: [PATCH] bpf: plug a warn about bpf_session_cookie without CONFIG_FPROBE

Building a kernel without said option results in:
WARN: resolve_btfids: unresolved symbol bpf_session_cookie

This is a bare-minimum patch to sort it out.

There are other uses of the bpf_session_cookie thing spread out
thorought the file, they don't seem to break anything though.

Signed-off-by: Mateusz Guzik <mjguzik@...il.com>
---

I don't care how this gets addressed, I just want the warning gone.
So I am not going to fight any ideas how to do it, as long as it gets
done.

 kernel/bpf/verifier.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index 48f3a9acdef3..b081bdd6f477 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -11128,7 +11128,9 @@ BTF_ID(func, bpf_iter_css_task_new)
 #else
 BTF_ID_UNUSED
 #endif
+#ifdef CONFIG_FPROBES
 BTF_ID(func, bpf_session_cookie)
+#endif
 
 static bool is_kfunc_ret_null(struct bpf_kfunc_call_arg_meta *meta)
 {
-- 
2.39.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ