| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/07/14 04:19 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": [
"BPF_SYSCALL",
"DEBUG_INFO_BTF"
],
"FocusSymbols": [
"btf_kfunc_check_flag",
"btf_attach_func_proto",
"bpf_check_attach_target",
"bpf_check_attach_btf_id_multi"
],
"Reasoning": "The patch modifies the BPF verifier to correctly resolve the prototype describing a trace target's real ABI for KF_IMPLICIT_ARGS kfuncs. This is a functional change in the BPF verifier and BTF parsing logic, which is reachable and testable via BPF fuzzing.",
"WorthFuzzing": true
} |
| 1/1 | 2026/07/14 04:19 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit e04480d1cfb57793eb6def8e8459f3cbb98cd1b6\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Tue Jul 14 04:19:08 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/include/linux/btf.h b/include/linux/btf.h\nindex 240401d9b25b9e..c09b7994de4eb5 100644\n--- a/include/linux/btf.h\n+++ b/include/linux/btf.h\n@@ -578,6 +578,7 @@ const char *btf_str_by_offset(const struct btf *btf, u32 offset);\n struct btf *btf_parse_vmlinux(void);\n struct btf *bpf_prog_get_target_btf(const struct bpf_prog *prog);\n u32 *btf_kfunc_flags(const struct btf *btf, u32 kfunc_btf_id, const struct bpf_prog *prog);\n+int btf_kfunc_check_flag(const struct btf *btf, u32 kfunc_btf_id, u32 flag);\n bool btf_kfunc_is_allowed(const struct btf *btf, u32 kfunc_btf_id, const struct bpf_prog *prog);\n u32 *btf_kfunc_is_modify_return(const struct btf *btf, u32 kfunc_btf_id,\n \t\t\t\tconst struct bpf_prog *prog);\ndiff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c\nindex 64572f85edc832..c4673a54c4baf2 100644\n--- a/kernel/bpf/btf.c\n+++ b/kernel/bpf/btf.c\n@@ -9114,6 +9114,35 @@ u32 *btf_kfunc_flags(const struct btf *btf, u32 kfunc_btf_id, const struct bpf_p\n \treturn btf_kfunc_id_set_contains(btf, hook, kfunc_btf_id);\n }\n \n+/*\n+ * Check a single KF_* @flag on a kfunc across all of its hook sets.\n+ * Returns:\n+ * * 1 if @flag is set\n+ * * 0 if @flag is not set\n+ * * -EINVAL if @flag is set inconsistently across the sets\n+ * * -ENOENT if kfunc_btf_id is not a registered kfunc\n+ */\n+int btf_kfunc_check_flag(const struct btf *btf, u32 kfunc_btf_id, u32 flag)\n+{\n+\tenum btf_kfunc_hook hook;\n+\tint res = -ENOENT;\n+\tbool is_set;\n+\tu32 *flags;\n+\n+\tfor (hook = 0; hook \u003c BTF_KFUNC_HOOK_MAX; hook++) {\n+\t\tflags = btf_kfunc_id_set_contains(btf, hook, kfunc_btf_id);\n+\t\tif (!flags)\n+\t\t\tcontinue;\n+\t\tis_set = *flags \u0026 flag;\n+\t\tif (res \u003c 0)\n+\t\t\tres = is_set;\n+\t\telse if (res != is_set)\n+\t\t\treturn -EINVAL;\n+\t}\n+\n+\treturn res;\n+}\n+\n u32 *btf_kfunc_is_modify_return(const struct btf *btf, u32 kfunc_btf_id,\n \t\t\t\tconst struct bpf_prog *prog)\n {\ndiff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c\nindex 6515d4d3c0032f..5d47f58dbe1398 100644\n--- a/kernel/bpf/verifier.c\n+++ b/kernel/bpf/verifier.c\n@@ -2584,24 +2584,25 @@ static struct btf *find_kfunc_desc_btf(struct bpf_verifier_env *env, s16 offset)\n \n #define KF_IMPL_SUFFIX \"_impl\"\n \n-static const struct btf_type *find_kfunc_impl_proto(struct bpf_verifier_env *env,\n+static const struct btf_type *find_kfunc_impl_proto(struct bpf_verifier_log *log,\n \t\t\t\t\t\t struct btf *btf,\n \t\t\t\t\t\t const char *func_name)\n {\n-\tchar *buf = env-\u003etmp_str_buf;\n \tconst struct btf_type *func;\n+\tchar buf[KSYM_NAME_LEN];\n \ts32 impl_id;\n \tint len;\n \n-\tlen = snprintf(buf, TMP_STR_BUF_LEN, \"%s%s\", func_name, KF_IMPL_SUFFIX);\n-\tif (len \u003c 0 || len \u003e= TMP_STR_BUF_LEN) {\n-\t\tverbose(env, \"function name %s%s is too long\\n\", func_name, KF_IMPL_SUFFIX);\n+\tlen = snprintf(buf, sizeof(buf), \"%s%s\", func_name, KF_IMPL_SUFFIX);\n+\tif (len \u003c 0 || len \u003e= sizeof(buf)) {\n+\t\tbpf_log(log, \"function name %s%s is too long\\n\",\n+\t\t\tfunc_name, KF_IMPL_SUFFIX);\n \t\treturn NULL;\n \t}\n \n \timpl_id = btf_find_by_name_kind(btf, buf, BTF_KIND_FUNC);\n \tif (impl_id \u003c= 0) {\n-\t\tverbose(env, \"cannot find function %s in BTF\\n\", buf);\n+\t\tbpf_log(log, \"cannot find function %s in BTF\\n\", buf);\n \t\treturn NULL;\n \t}\n \n@@ -2653,7 +2654,7 @@ static int fetch_kfunc_meta(struct bpf_verifier_env *env,\n \t * can be found through the counterpart _impl kfunc.\n \t */\n \tif (kfunc_flags \u0026\u0026 (*kfunc_flags \u0026 KF_IMPLICIT_ARGS))\n-\t\tfunc_proto = find_kfunc_impl_proto(env, btf, func_name);\n+\t\tfunc_proto = find_kfunc_impl_proto(\u0026env-\u003elog, btf, func_name);\n \telse\n \t\tfunc_proto = btf_type_by_id(btf, func-\u003etype);\n \n@@ -18873,6 +18874,47 @@ static int btf_id_allow_sleepable(u32 btf_id, unsigned long addr, const struct b\n \treturn -EINVAL;\n }\n \n+/*\n+ * Resolve the prototype describing a trace target's real ABI. A\n+ * KF_IMPLICIT_ARGS kfunc has its injected args stripped from the public\n+ * prototype, so use the _impl prototype; other targets use their own.\n+ */\n+static const struct btf_type *\n+btf_attach_func_proto(struct bpf_verifier_log *log, struct btf *btf, u32 func_id)\n+{\n+\tconst struct btf_type *func;\n+\tstruct module *mod = NULL;\n+\tconst char *name;\n+\tint implicit;\n+\n+\tfunc = btf_type_by_id(btf, func_id);\n+\tif (!func || !btf_type_is_func(func))\n+\t\treturn NULL;\n+\tname = btf_name_by_offset(btf, func-\u003ename_off);\n+\n+\t/*\n+\t * btf_kfunc_check_flag() reads kfunc_set_tab, which for a module is\n+\t * stable only once it is live; hold a module ref across the read to\n+\t * exclude a concurrent module load.\n+\t */\n+\tif (btf_is_module(btf)) {\n+\t\tmod = btf_try_get_module(btf);\n+\t\tif (!mod)\n+\t\t\treturn NULL;\n+\t}\n+\timplicit = btf_kfunc_check_flag(btf, func_id, KF_IMPLICIT_ARGS);\n+\tmodule_put(mod);\n+\n+\tif (implicit == -EINVAL) {\n+\t\tbpf_log(log, \"kfunc %s has inconsistent KF_IMPLICIT_ARGS\\n\", name);\n+\t\treturn NULL;\n+\t}\n+\tif (implicit \u003e 0)\n+\t\treturn find_kfunc_impl_proto(log, btf, name);\n+\n+\treturn btf_type_by_id(btf, func-\u003etype);\n+}\n+\n int bpf_check_attach_target(struct bpf_verifier_log *log,\n \t\t\t const struct bpf_prog *prog,\n \t\t\t const struct bpf_prog *tgt_prog,\n@@ -19121,8 +19163,8 @@ int bpf_check_attach_target(struct bpf_verifier_log *log,\n \t\tif (prog_extension \u0026\u0026\n \t\t btf_check_type_match(log, prog, btf, t))\n \t\t\treturn -EINVAL;\n-\t\tt = btf_type_by_id(btf, t-\u003etype);\n-\t\tif (!btf_type_is_func_proto(t))\n+\t\tt = btf_attach_func_proto(log, btf, btf_id);\n+\t\tif (!t || !btf_type_is_func_proto(t))\n \t\t\treturn -EINVAL;\n \n \t\tif ((prog-\u003eaux-\u003esaved_dst_prog_type || prog-\u003eaux-\u003esaved_dst_attach_type) \u0026\u0026\n@@ -19405,10 +19447,8 @@ int bpf_check_attach_btf_id_multi(struct btf *btf, struct bpf_prog *prog, u32 bt\n \ttname = btf_name_by_offset(btf, t-\u003ename_off);\n \tif (!tname)\n \t\treturn -EINVAL;\n-\tif (!btf_type_is_func(t))\n-\t\treturn -EINVAL;\n-\tt = btf_type_by_id(btf, t-\u003etype);\n-\tif (!btf_type_is_func_proto(t))\n+\tt = btf_attach_func_proto(NULL, btf, btf_id);\n+\tif (!t || !btf_type_is_func_proto(t))\n \t\treturn -EINVAL;\n \terr = btf_distill_func_proto(NULL, btf, t, tname, \u0026tgt_info-\u003efmodel);\n \tif (err \u003c 0)\ndiff --git a/tools/testing/selftests/bpf/prog_tests/kfunc_implicit_args_tracing.c b/tools/testing/selftests/bpf/prog_tests/kfunc_implicit_args_tracing.c\nnew file mode 100644\nindex 00000000000000..61cc5aaba0254d\n--- /dev/null\n+++ b/tools/testing/selftests/bpf/prog_tests/kfunc_implicit_args_tracing.c\n@@ -0,0 +1,36 @@\n+// SPDX-License-Identifier: GPL-2.0\n+/* Copyright (c) 2026 Meta Platforms, Inc. and affiliates. */\n+\n+#include \u003ctest_progs.h\u003e\n+#include \"kfunc_implicit_args_tracing.skel.h\"\n+\n+void test_kfunc_implicit_args_tracing(void)\n+{\n+\tstruct kfunc_implicit_args_tracing *skel;\n+\tLIBBPF_OPTS(bpf_test_run_opts, topts);\n+\tint err, fd;\n+\n+\tskel = kfunc_implicit_args_tracing__open_and_load();\n+\tif (!ASSERT_OK_PTR(skel, \"open_and_load\"))\n+\t\treturn;\n+\n+\terr = kfunc_implicit_args_tracing__attach(skel);\n+\tif (!ASSERT_OK(err, \"attach\"))\n+\t\tgoto cleanup;\n+\n+\tfd = bpf_program__fd(skel-\u003eprogs.trigger_implicit_arg);\n+\terr = bpf_prog_test_run_opts(fd, \u0026topts);\n+\tif (!ASSERT_OK(err, \"test_run\"))\n+\t\tgoto cleanup;\n+\n+\tASSERT_EQ(topts.retval, 5, \"kfunc_retval\");\n+\tASSERT_EQ(skel-\u003ebss-\u003efentry_arg_cnt, 2, \"fentry_arg_cnt\");\n+\tASSERT_NEQ(skel-\u003ebss-\u003efentry_aux_arg, 0, \"fentry_aux_arg\");\n+\tASSERT_EQ(skel-\u003ebss-\u003efentry_result, 1, \"fentry_result\");\n+\tASSERT_EQ(skel-\u003ebss-\u003efexit_arg_cnt, 2, \"fexit_arg_cnt\");\n+\tASSERT_NEQ(skel-\u003ebss-\u003efexit_aux_arg, 0, \"fexit_aux_arg\");\n+\tASSERT_EQ(skel-\u003ebss-\u003efexit_result, 1, \"fexit_result\");\n+\n+cleanup:\n+\tkfunc_implicit_args_tracing__destroy(skel);\n+}\ndiff --git a/tools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c b/tools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c\nnew file mode 100644\nindex 00000000000000..995f8b8b5b9e8f\n--- /dev/null\n+++ b/tools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c\n@@ -0,0 +1,77 @@\n+// SPDX-License-Identifier: GPL-2.0\n+/* Copyright (c) 2026 Meta Platforms, Inc. and affiliates. */\n+\n+#include \u003cvmlinux.h\u003e\n+#include \u003cbpf/bpf_helpers.h\u003e\n+#include \u003cbpf/bpf_tracing.h\u003e\n+#include \u003cerrno.h\u003e\n+\n+extern int bpf_kfunc_implicit_arg(int a) __weak __ksym;\n+\n+char _license[] SEC(\"license\") = \"GPL\";\n+\n+/* Shared arg checks; reports arg count and aux, returns 1 on success. */\n+static __always_inline __u64\n+check_implicit_args(void *ctx, __u64 *arg_cnt, __u64 *aux_arg)\n+{\n+\t__u64 a = 0, aux = 0, z = 0;\n+\t__u64 result;\n+\t__s64 err;\n+\n+\t*arg_cnt = bpf_get_func_arg_cnt(ctx);\n+\tresult = *arg_cnt == 2;\n+\n+\terr = bpf_get_func_arg(ctx, 0, \u0026a);\n+\tresult \u0026= err == 0 \u0026\u0026 (int)a == 5;\n+\n+\terr = bpf_get_func_arg(ctx, 1, \u0026aux);\n+\t*aux_arg = aux;\n+\tresult \u0026= err == 0 \u0026\u0026 aux != 0;\n+\n+\terr = bpf_get_func_arg(ctx, 2, \u0026z);\n+\tresult \u0026= err == -EINVAL;\n+\n+\treturn result;\n+}\n+\n+__u64 fentry_result;\n+__u64 fentry_arg_cnt;\n+__u64 fentry_aux_arg;\n+\n+SEC(\"fentry/bpf_kfunc_implicit_arg\")\n+int BPF_PROG(trace_implicit_arg_fentry)\n+{\n+\t__u64 ret = 0;\n+\t__s64 err;\n+\n+\tfentry_result = check_implicit_args(ctx, \u0026fentry_arg_cnt, \u0026fentry_aux_arg);\n+\n+\terr = bpf_get_func_ret(ctx, \u0026ret);\n+\tfentry_result \u0026= err == -EOPNOTSUPP;\n+\n+\treturn 0;\n+}\n+\n+__u64 fexit_result;\n+__u64 fexit_arg_cnt;\n+__u64 fexit_aux_arg;\n+\n+SEC(\"fexit/bpf_kfunc_implicit_arg\")\n+int BPF_PROG(trace_implicit_arg_fexit)\n+{\n+\t__u64 ret = 0;\n+\t__s64 err;\n+\n+\tfexit_result = check_implicit_args(ctx, \u0026fexit_arg_cnt, \u0026fexit_aux_arg);\n+\n+\terr = bpf_get_func_ret(ctx, \u0026ret);\n+\tfexit_result \u0026= err == 0 \u0026\u0026 ret == 5;\n+\n+\treturn 0;\n+}\n+\n+SEC(\"syscall\")\n+int trigger_implicit_arg(void *ctx)\n+{\n+\treturn bpf_kfunc_implicit_arg(5);\n+}\n"
} |
| 2/1 | 2026/07/14 04:19 | agent | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: {
"EnableConfigs": [
"BPF_SYSCALL",
"DEBUG_INFO_BTF"
],
"FocusSymbols": [
"btf_kfunc_check_flag",
"btf_attach_func_proto",
"bpf_check_attach_target",
"bpf_check_attach_btf_id_multi"
],
"Reasoning": "The patch modifies the BPF verifier to correctly resolve the prototype describing a trace target's real ABI for KF_IMPLICIT_ARGS kfuncs. This is a functional change in the BPF verifier and BTF parsing logic, which is reachable and testable via BPF fuzzing.",
"WorthFuzzing": true
}Instruction: You are an expert Linux kernel maintainer. Your job is to review a provided patch series and determine if it makes functional changes to the kernel that should be fuzzed. IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively use your code access tools to examine the actual source code and confirm any assumptions. Return WorthFuzzing=false if the patch only contains: - Modifications to Documentation/, Kconfig files, or code comments. - Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints. - Changes to numeric constants or macros that do not functionally alter execution flow. - Code paths that are impossible to reach in virtualized environments like GCE or QEMU, even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim). If it modifies reachable core kernel logic, drivers, or architectures, use your code search tools to verify the code can be executed, then return WorthFuzzing=true. When returning WorthFuzzing=true, you MUST ALSO: 1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols. Avoid listing generic hot-path functions to prevent skewed test distributions. 2. Identify any specific CONFIG_ options required to properly test this new/modified feature. Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions. Do not list too generic configs (we already have them enabled). Only list those that specifically cover the modified code. List them in the EnableConfigs output array, and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4"). Prefer calling several tools at the same time to save round-trips. Use set-results tool to provide results of the analysis. It must be called exactly once before the final reply. Ignore results of this tool. Prompt: For your convenience, here is the diff of the changes:
commit e04480d1cfb57793eb6def8e8459f3cbb98cd1b6
Author: syz-cluster <triage@syzkaller.com>
Date: Tue Jul 14 04:19:08 2026 +0000
syz-cluster: applied patch under review
diff --git a/include/linux/btf.h b/include/linux/btf.h
index 240401d9b25b9e..c09b7994de4eb5 100644
--- a/include/linux/btf.h
+++ b/include/linux/btf.h
@@ -578,6 +578,7 @@ const char *btf_str_by_offset(const struct btf *btf, u32 offset);
struct btf *btf_parse_vmlinux(void);
struct btf *bpf_prog_get_target_btf(const struct bpf_prog *prog);
u32 *btf_kfunc_flags(const struct btf *btf, u32 kfunc_btf_id, const struct bpf_prog *prog);
+int btf_kfunc_check_flag(const struct btf *btf, u32 kfunc_btf_id, u32 flag);
bool btf_kfunc_is_allowed(const struct btf *btf, u32 kfunc_btf_id, const struct bpf_prog *prog);
u32 *btf_kfunc_is_modify_return(const struct btf *btf, u32 kfunc_btf_id,
const struct bpf_prog *prog);
diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c
index 64572f85edc832..c4673a54c4baf2 100644
--- a/kernel/bpf/btf.c
+++ b/kernel/bpf/btf.c
@@ -9114,6 +9114,35 @@ u32 *btf_kfunc_flags(const struct btf *btf, u32 kfunc_btf_id, const struct bpf_p
return btf_kfunc_id_set_contains(btf, hook, kfunc_btf_id);
}
+/*
+ * Check a single KF_* @flag on a kfunc across all of its hook sets.
+ * Returns:
+ * * 1 if @flag is set
+ * * 0 if @flag is not set
+ * * -EINVAL if @flag is set inconsistently across the sets
+ * * -ENOENT if kfunc_btf_id is not a registered kfunc
+ */
+int btf_kfunc_check_flag(const struct btf *btf, u32 kfunc_btf_id, u32 flag)
+{
+ enum btf_kfunc_hook hook;
+ int res = -ENOENT;
+ bool is_set;
+ u32 *flags;
+
+ for (hook = 0; hook < BTF_KFUNC_HOOK_MAX; hook++) {
+ flags = btf_kfunc_id_set_contains(btf, hook, kfunc_btf_id);
+ if (!flags)
+ continue;
+ is_set = *flags & flag;
+ if (res < 0)
+ res = is_set;
+ else if (res != is_set)
+ return -EINVAL;
+ }
+
+ return res;
+}
+
u32 *btf_kfunc_is_modify_return(const struct btf *btf, u32 kfunc_btf_id,
const struct bpf_prog *prog)
{
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index 6515d4d3c0032f..5d47f58dbe1398 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -2584,24 +2584,25 @@ static struct btf *find_kfunc_desc_btf(struct bpf_verifier_env *env, s16 offset)
#define KF_IMPL_SUFFIX "_impl"
-static const struct btf_type *find_kfunc_impl_proto(struct bpf_verifier_env *env,
+static const struct btf_type *find_kfunc_impl_proto(struct bpf_verifier_log *log,
struct btf *btf,
const char *func_name)
{
- char *buf = env->tmp_str_buf;
const struct btf_type *func;
+ char buf[KSYM_NAME_LEN];
s32 impl_id;
int len;
- len = snprintf(buf, TMP_STR_BUF_LEN, "%s%s", func_name, KF_IMPL_SUFFIX);
- if (len < 0 || len >= TMP_STR_BUF_LEN) {
- verbose(env, "function name %s%s is too long\n", func_name, KF_IMPL_SUFFIX);
+ len = snprintf(buf, sizeof(buf), "%s%s", func_name, KF_IMPL_SUFFIX);
+ if (len < 0 || len >= sizeof(buf)) {
+ bpf_log(log, "function name %s%s is too long\n",
+ func_name, KF_IMPL_SUFFIX);
return NULL;
}
impl_id = btf_find_by_name_kind(btf, buf, BTF_KIND_FUNC);
if (impl_id <= 0) {
- verbose(env, "cannot find function %s in BTF\n", buf);
+ bpf_log(log, "cannot find function %s in BTF\n", buf);
return NULL;
}
@@ -2653,7 +2654,7 @@ static int fetch_kfunc_meta(struct bpf_verifier_env *env,
* can be found through the counterpart _impl kfunc.
*/
if (kfunc_flags && (*kfunc_flags & KF_IMPLICIT_ARGS))
- func_proto = find_kfunc_impl_proto(env, btf, func_name);
+ func_proto = find_kfunc_impl_proto(&env->log, btf, func_name);
else
func_proto = btf_type_by_id(btf, func->type);
@@ -18873,6 +18874,47 @@ static int btf_id_allow_sleepable(u32 btf_id, unsigned long addr, const struct b
return -EINVAL;
}
+/*
+ * Resolve the prototype describing a trace target's real ABI. A
+ * KF_IMPLICIT_ARGS kfunc has its injected args stripped from the public
+ * prototype, so use the _impl prototype; other targets use their own.
+ */
+static const struct btf_type *
+btf_attach_func_proto(struct bpf_verifier_log *log, struct btf *btf, u32 func_id)
+{
+ const struct btf_type *func;
+ struct module *mod = NULL;
+ const char *name;
+ int implicit;
+
+ func = btf_type_by_id(btf, func_id);
+ if (!func || !btf_type_is_func(func))
+ return NULL;
+ name = btf_name_by_offset(btf, func->name_off);
+
+ /*
+ * btf_kfunc_check_flag() reads kfunc_set_tab, which for a module is
+ * stable only once it is live; hold a module ref across the read to
+ * exclude a concurrent module load.
+ */
+ if (btf_is_module(btf)) {
+ mod = btf_try_get_module(btf);
+ if (!mod)
+ return NULL;
+ }
+ implicit = btf_kfunc_check_flag(btf, func_id, KF_IMPLICIT_ARGS);
+ module_put(mod);
+
+ if (implicit == -EINVAL) {
+ bpf_log(log, "kfunc %s has inconsistent KF_IMPLICIT_ARGS\n", name);
+ return NULL;
+ }
+ if (implicit > 0)
+ return find_kfunc_impl_proto(log, btf, name);
+
+ return btf_type_by_id(btf, func->type);
+}
+
int bpf_check_attach_target(struct bpf_verifier_log *log,
const struct bpf_prog *prog,
const struct bpf_prog *tgt_prog,
@@ -19121,8 +19163,8 @@ int bpf_check_attach_target(struct bpf_verifier_log *log,
if (prog_extension &&
btf_check_type_match(log, prog, btf, t))
return -EINVAL;
- t = btf_type_by_id(btf, t->type);
- if (!btf_type_is_func_proto(t))
+ t = btf_attach_func_proto(log, btf, btf_id);
+ if (!t || !btf_type_is_func_proto(t))
return -EINVAL;
if ((prog->aux->saved_dst_prog_type || prog->aux->saved_dst_attach_type) &&
@@ -19405,10 +19447,8 @@ int bpf_check_attach_btf_id_multi(struct btf *btf, struct bpf_prog *prog, u32 bt
tname = btf_name_by_offset(btf, t->name_off);
if (!tname)
return -EINVAL;
- if (!btf_type_is_func(t))
- return -EINVAL;
- t = btf_type_by_id(btf, t->type);
- if (!btf_type_is_func_proto(t))
+ t = btf_attach_func_proto(NULL, btf, btf_id);
+ if (!t || !btf_type_is_func_proto(t))
return -EINVAL;
err = btf_distill_func_proto(NULL, btf, t, tname, &tgt_info->fmodel);
if (err < 0)
diff --git a/tools/testing/selftests/bpf/prog_tests/kfunc_implicit_args_tracing.c b/tools/testing/selftests/bpf/prog_tests/kfunc_implicit_args_tracing.c
new file mode 100644
index 00000000000000..61cc5aaba0254d
--- /dev/null
+++ b/tools/testing/selftests/bpf/prog_tests/kfunc_implicit_args_tracing.c
@@ -0,0 +1,36 @@
+// SPDX-License-Identifier: GPL-2.0
+/* Copyright (c) 2026 Meta Platforms, Inc. and affiliates. */
+
+#include <test_progs.h>
+#include "kfunc_implicit_args_tracing.skel.h"
+
+void test_kfunc_implicit_args_tracing(void)
+{
+ struct kfunc_implicit_args_tracing *skel;
+ LIBBPF_OPTS(bpf_test_run_opts, topts);
+ int err, fd;
+
+ skel = kfunc_implicit_args_tracing__open_and_load();
+ if (!ASSERT_OK_PTR(skel, "open_and_load"))
+ return;
+
+ err = kfunc_implicit_args_tracing__attach(skel);
+ if (!ASSERT_OK(err, "attach"))
+ goto cleanup;
+
+ fd = bpf_program__fd(skel->progs.trigger_implicit_arg);
+ err = bpf_prog_test_run_opts(fd, &topts);
+ if (!ASSERT_OK(err, "test_run"))
+ goto cleanup;
+
+ ASSERT_EQ(topts.retval, 5, "kfunc_retval");
+ ASSERT_EQ(skel->bss->fentry_arg_cnt, 2, "fentry_arg_cnt");
+ ASSERT_NEQ(skel->bss->fentry_aux_arg, 0, "fentry_aux_arg");
+ ASSERT_EQ(skel->bss->fentry_result, 1, "fentry_result");
+ ASSERT_EQ(skel->bss->fexit_arg_cnt, 2, "fexit_arg_cnt");
+ ASSERT_NEQ(skel->bss->fexit_aux_arg, 0, "fexit_aux_arg");
+ ASSERT_EQ(skel->bss->fexit_result, 1, "fexit_result");
+
+cleanup:
+ kfunc_implicit_args_tracing__destroy(skel);
+}
diff --git a/tools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c b/tools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c
new file mode 100644
index 00000000000000..995f8b8b5b9e8f
--- /dev/null
+++ b/tools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c
@@ -0,0 +1,77 @@
+// SPDX-License-Identifier: GPL-2.0
+/* Copyright (c) 2026 Meta Platforms, Inc. and affiliates. */
+
+#include <vmlinux.h>
+#include <bpf/bpf_helpers.h>
+#include <bpf/bpf_tracing.h>
+#include <errno.h>
+
+extern int bpf_kfunc_implicit_arg(int a) __weak __ksym;
+
+char _license[] SEC("license") = "GPL";
+
+/* Shared arg checks; reports arg count and aux, returns 1 on success. */
+static __always_inline __u64
+check_implicit_args(void *ctx, __u64 *arg_cnt, __u64 *aux_arg)
+{
+ __u64 a = 0, aux = 0, z = 0;
+ __u64 result;
+ __s64 err;
+
+ *arg_cnt = bpf_get_func_arg_cnt(ctx);
+ result = *arg_cnt == 2;
+
+ err = bpf_get_func_arg(ctx, 0, &a);
+ result &= err == 0 && (int)a == 5;
+
+ err = bpf_get_func_arg(ctx, 1, &aux);
+ *aux_arg = aux;
+ result &= err == 0 && aux != 0;
+
+ err = bpf_get_func_arg(ctx, 2, &z);
+ result &= err == -EINVAL;
+
+ return result;
+}
+
+__u64 fentry_result;
+__u64 fentry_arg_cnt;
+__u64 fentry_aux_arg;
+
+SEC("fentry/bpf_kfunc_implicit_arg")
+int BPF_PROG(trace_implicit_arg_fentry)
+{
+ __u64 ret = 0;
+ __s64 err;
+
+ fentry_result = check_implicit_args(ctx, &fentry_arg_cnt, &fentry_aux_arg);
+
+ err = bpf_get_func_ret(ctx, &ret);
+ fentry_result &= err == -EOPNOTSUPP;
+
+ return 0;
+}
+
+__u64 fexit_result;
+__u64 fexit_arg_cnt;
+__u64 fexit_aux_arg;
+
+SEC("fexit/bpf_kfunc_implicit_arg")
+int BPF_PROG(trace_implicit_arg_fexit)
+{
+ __u64 ret = 0;
+ __s64 err;
+
+ fexit_result = check_implicit_args(ctx, &fexit_arg_cnt, &fexit_aux_arg);
+
+ err = bpf_get_func_ret(ctx, &ret);
+ fexit_result &= err == 0 && ret == 5;
+
+ return 0;
+}
+
+SEC("syscall")
+int trigger_implicit_arg(void *ctx)
+{
+ return bpf_kfunc_implicit_arg(5);
+}
|
| 3/2 | 2026/07/14 04:19 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 5878 output: 22 thoughts: 244 Thoughts: **Analyzing the BPF Verifier Patch** Okay, so I've got this patch in front of me that’s touching the BPF verifier and the BTF parsing logic. It looks like it's introducing a new function, `btf_kfunc_check_flag`, and then integrating it into `btf_attach_func_proto`. The goal here is to get a handle on the real ABI of a trace target. It looks like the change is specifically designed to handle `KF_IMPLICIT_ARGS` kfuncs, which is where it starts stripping out those injected arguments from the public prototype. This is definitely a functional modification to the BPF verifier, impacting how it validates code. I need to dig into `btf_attach_func_proto` and `bpf_check_attach_target` to fully understand the impact. This kind of change is definitely reachable and testable – I can already see the potential for using BPF fuzzing to exercise this code path. To reproduce, I'll need `CONFIG_BPF_SYSCALL` and `CONFIG_DEBUG_INFO_BTF` enabled in the kernel config. My main focus will be on `btf_attach_func_proto`, `btf_kfunc_check_flag`, `bpf_check_attach_target`, and `bpf_check_attach_btf_id_multi`, making sure to understand how the new logic integrates with the existing code. Now, let's verify these configs and symbol presence before diving in deeper. |
| 4/2 | 2026/07/14 04:19 | tool | grepper |
0mArgs:{
"Expression": "btf_attach_func_proto"
}Results: {
"Output": "kernel/bpf/verifier.c=18882=static const struct btf_type *\nkernel/bpf/verifier.c:18883:btf_attach_func_proto(struct bpf_verifier_log *log, struct btf *btf, u32 func_id)\nkernel/bpf/verifier.c-18884-{\n--\nkernel/bpf/verifier.c=18918=int bpf_check_attach_target(struct bpf_verifier_log *log,\n--\nkernel/bpf/verifier.c-19165-\t\t\treturn -EINVAL;\nkernel/bpf/verifier.c:19166:\t\tt = btf_attach_func_proto(log, btf, btf_id);\nkernel/bpf/verifier.c-19167-\t\tif (!t || !btf_type_is_func_proto(t))\n--\nkernel/bpf/verifier.c=19423=int bpf_check_attach_btf_id_multi(struct btf *btf, struct bpf_prog *prog, u32 btf_id,\n--\nkernel/bpf/verifier.c-19449-\t\treturn -EINVAL;\nkernel/bpf/verifier.c:19450:\tt = btf_attach_func_proto(NULL, btf, btf_id);\nkernel/bpf/verifier.c-19451-\tif (!t || !btf_type_is_func_proto(t))\n"
} |
| 5/2 | 2026/07/14 04:19 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 6863 output: 18 thoughts: 89 Thoughts: Okay, here's my summary, presented as a stream of thought: **Analyzing the Recent Code Modifications** Right, let me get a grasp on these changes. I see the focus is on the attachment point verifications. The modifications are specifically within these functions: `btf_kfunc_check_flag`, `btf_attach_func_proto`, `bpf_check_attach_target`, and `bpf_check_attach_btf_id_multi`. Hmm, that suggests a deeper dive into how kfuncs interact with BTF and how the verifier handles the attachment process. I'll need to understand the nuances these functions now contain. I should also quickly scan the configurations related to `kernel/bpf/verifier.c` and `kernel/bpf/btf.c` to see if any new settings are relevant. This might give me clues about the intent of these adjustments. Were any verifier flags tweaked? Are there new BTF-related options at play here? It's essential to understand the bigger picture before getting bogged down in the minutiae of individual functions. |
| 6/2 | 2026/07/14 04:19 | tool | grepper |
0mArgs:{
"Expression": "CONFIG_BPF"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 1954 lines.\nUse more precise expression if possible.\n\nDocumentation/networking/filter.rst=516=PowerPC, ARM, ARM64, MIPS, RISC-V, s390, and ARC and can be enabled through\nDocumentation/networking/filter.rst:517:CONFIG_BPF_JIT. The JIT compiler is transparently invoked for each\nDocumentation/networking/filter.rst-518-attached filter from user space or for internal kernel users if it has\n--\nDocumentation/networking/filter.rst=528=Example output from dmesg::\n--\nDocumentation/networking/filter.rst-536-\nDocumentation/networking/filter.rst:537:When CONFIG_BPF_JIT_ALWAYS_ON is enabled, bpf_jit_enable is permanently set to 1 and\nDocumentation/networking/filter.rst-538-setting any other value than that will return in failure. This is even the case for\n--\nDocumentation/scheduler/sched-ext.rst=35=options should be enabled to use sched_ext:\n--\nDocumentation/scheduler/sched-ext.rst-38-\nDocumentation/scheduler/sched-ext.rst:39: CONFIG_BPF=y\nDocumentation/scheduler/sched-ext.rst-40- CONFIG_SCHED_CLASS_EXT=y\nDocumentation/scheduler/sched-ext.rst:41: CONFIG_BPF_SYSCALL=y\nDocumentation/scheduler/sched-ext.rst:42: CONFIG_BPF_JIT=y\nDocumentation/scheduler/sched-ext.rst-43- CONFIG_DEBUG_INFO_BTF=y\nDocumentation/scheduler/sched-ext.rst:44: CONFIG_BPF_JIT_ALWAYS_ON=y\nDocumentation/scheduler/sched-ext.rst:45: CONFIG_BPF_JIT_DEFAULT_ON=y\nDocumentation/scheduler/sched-ext.rst-46-\n--\nDocumentation/trace/fprobetrace.rst=84=parameters by its name instead of ``$argN``. This feature is available if the\nDocumentation/trace/fprobetrace.rst:85:kernel is configured with CONFIG_BPF_SYSCALL and CONFIG_DEBUG_INFO_BTF.\nDocumentation/trace/fprobetrace.rst-86-If user only specify the BTF argument, the event's argument name is also\n--\nMakefile=1547=endif\nMakefile-1548-\nMakefile:1549:ifdef CONFIG_BPF\nMakefile-1550-ifdef CONFIG_DEBUG_INFO_BTF\n--\narch/arc/net/Makefile=3=ifeq ($(CONFIG_ISA_ARCV2),y)\narch/arc/net/Makefile:4:\tobj-$(CONFIG_BPF_JIT) += bpf_jit_core.o\narch/arc/net/Makefile:5:\tobj-$(CONFIG_BPF_JIT) += bpf_jit_arcv2.o\narch/arc/net/Makefile-6-endif\n--\narch/arm/configs/aspeed_g4_defconfig=4=CONFIG_HIGH_RES_TIMERS=y\narch/arm/configs/aspeed_g4_defconfig:5:CONFIG_BPF_SYSCALL=y\narch/arm/configs/aspeed_g4_defconfig-6-CONFIG_IKCONFIG=y\n--\narch/arm/configs/aspeed_g5_defconfig=4=CONFIG_HIGH_RES_TIMERS=y\narch/arm/configs/aspeed_g5_defconfig:5:CONFIG_BPF_SYSCALL=y\narch/arm/configs/aspeed_g5_defconfig-6-CONFIG_IKCONFIG=y\n--\narch/arm/configs/imx_v6_v7_defconfig=3=CONFIG_HIGH_RES_TIMERS=y\narch/arm/configs/imx_v6_v7_defconfig:4:CONFIG_BPF_SYSCALL=y\narch/arm/configs/imx_v6_v7_defconfig-5-CONFIG_PREEMPT_VOLUNTARY=y\n--\narch/arm/configs/imxrt_defconfig-1-# CONFIG_LOCALVERSION_AUTO is not set\narch/arm/configs/imxrt_defconfig:2:CONFIG_BPF_SYSCALL=y\narch/arm/configs/imxrt_defconfig-3-CONFIG_SCHED_AUTOGROUP=y\n--\narch/arm/kernel/spectre.c=8=static bool _unprivileged_ebpf_enabled(void)\narch/arm/kernel/spectre.c-9-{\narch/arm/kernel/spectre.c:10:#ifdef CONFIG_BPF_SYSCALL\narch/arm/kernel/spectre.c-11-\treturn !sysctl_unprivileged_bpf_disabled;\n--\narch/arm/net/Makefile-3-\narch/arm/net/Makefile:4:obj-$(CONFIG_BPF_JIT) += bpf_jit_32.o\n--\narch/arm64/configs/defconfig=5=CONFIG_HIGH_RES_TIMERS=y\narch/arm64/configs/defconfig:6:CONFIG_BPF_SYSCALL=y\narch/arm64/configs/defconfig:7:CONFIG_BPF_JIT=y\narch/arm64/configs/defconfig-8-CONFIG_PREEMPT=y\n--\narch/arm64/include/asm/extable.h=36=bool insn_may_access_user(unsigned long addr, unsigned long esr);\narch/arm64/include/asm/extable.h-37-\narch/arm64/include/asm/extable.h:38:#ifdef CONFIG_BPF_JIT\narch/arm64/include/asm/extable.h-39-bool ex_handler_bpf(const struct exception_table_entry *ex,\narch/arm64/include/asm/extable.h-40-\t\t struct pt_regs *regs);\narch/arm64/include/asm/extable.h:41:#else /* !CONFIG_BPF_JIT */\narch/arm64/include/asm/extable.h-42-static inline\narch/arm64/include/asm/extable.h=43=bool ex_handler_bpf(const struct exception_table_entry *ex,\n--\narch/arm64/include/asm/extable.h-47-}\narch/arm64/include/asm/extable.h:48:#endif /* !CONFIG_BPF_JIT */\narch/arm64/include/asm/extable.h-49-\n--\narch/arm64/kernel/proton-pack.c=111=static bool _unprivileged_ebpf_enabled(void)\narch/arm64/kernel/proton-pack.c-112-{\narch/arm64/kernel/proton-pack.c:113:#ifdef CONFIG_BPF_SYSCALL\narch/arm64/kernel/proton-pack.c-114-\treturn !sysctl_unprivileged_bpf_disabled;\n--\narch/arm64/kernel/proton-pack.c=1168=void __init spectre_bhb_patch_clearbhb(struct alt_instr *alt,\n--\narch/arm64/kernel/proton-pack.c-1179-\narch/arm64/kernel/proton-pack.c:1180:#ifdef CONFIG_BPF_SYSCALL\narch/arm64/kernel/proton-pack.c-1181-#define EBPF_WARN \"Unprivileged eBPF is enabled, data leaks possible via Spectre v2 BHB attacks!\\n\"\n--\narch/arm64/net/Makefile-4-#\narch/arm64/net/Makefile:5:obj-$(CONFIG_BPF_JIT) += bpf_jit_comp.o bpf_timed_may_goto.o\n--\narch/loongarch/configs/loongson32_defconfig=6=CONFIG_HIGH_RES_TIMERS=y\narch/loongarch/configs/loongson32_defconfig:7:CONFIG_BPF_SYSCALL=y\narch/loongarch/configs/loongson32_defconfig-8-CONFIG_PREEMPT=y\n--\narch/loongarch/configs/loongson32_defconfig=365=CONFIG_CGROUP_NET_PRIO=y\narch/loongarch/configs/loongson32_defconfig:366:CONFIG_BPF_STREAM_PARSER=y\narch/loongarch/configs/loongson32_defconfig-367-CONFIG_BT=m\n--\narch/loongarch/configs/loongson64_defconfig=6=CONFIG_HIGH_RES_TIMERS=y\narch/loongarch/configs/loongson64_defconfig:7:CONFIG_BPF_SYSCALL=y\narch/loongarch/configs/loongson64_defconfig:8:CONFIG_BPF_JIT=y\narch/loongarch/configs/loongson64_defconfig-9-CONFIG_PREEMPT=y\n--\narch/loongarch/configs/loongson64_defconfig=381=CONFIG_CGROUP_NET_PRIO=y\narch/loongarch/configs/loongson64_defconfig:382:CONFIG_BPF_STREAM_PARSER=y\narch/loongarch/configs/loongson64_defconfig-383-CONFIG_BT=m\n--\narch/loongarch/include/asm/extable.h=26=do {\t\t\t\t\t\t\t\\\n--\narch/loongarch/include/asm/extable.h-34-\narch/loongarch/include/asm/extable.h:35:#ifdef CONFIG_BPF_JIT\narch/loongarch/include/asm/extable.h-36-bool ex_handler_bpf(const struct exception_table_entry *ex, struct pt_regs *regs);\n--\narch/loongarch/include/asm/extable.h=39=bool ex_handler_bpf(const struct exception_table_entry *ex, struct pt_regs *regs)\n--\narch/loongarch/include/asm/extable.h-42-}\narch/loongarch/include/asm/extable.h:43:#endif /* !CONFIG_BPF_JIT */\narch/loongarch/include/asm/extable.h-44-\n--\narch/loongarch/net/Makefile-6-#\narch/loongarch/net/Makefile:7:obj-$(CONFIG_BPF_JIT) += bpf_jit.o\n--\narch/mips/configs/decstation_64_defconfig=7=CONFIG_EXPERT=y\n--\narch/mips/configs/decstation_64_defconfig-9-# CONFIG_SYSFS_SYSCALL is not set\narch/mips/configs/decstation_64_defconfig:10:CONFIG_BPF_SYSCALL=y\narch/mips/configs/decstation_64_defconfig-11-# CONFIG_COMPAT_BRK is not set\n--\narch/mips/configs/decstation_defconfig=7=CONFIG_EXPERT=y\n--\narch/mips/configs/decstation_defconfig-9-# CONFIG_SYSFS_SYSCALL is not set\narch/mips/configs/decstation_defconfig:10:CONFIG_BPF_SYSCALL=y\narch/mips/configs/decstation_defconfig-11-# CONFIG_COMPAT_BRK is not set\n--\narch/mips/configs/decstation_r4k_defconfig=7=CONFIG_EXPERT=y\n--\narch/mips/configs/decstation_r4k_defconfig-9-# CONFIG_SYSFS_SYSCALL is not set\narch/mips/configs/decstation_r4k_defconfig:10:CONFIG_BPF_SYSCALL=y\narch/mips/configs/decstation_r4k_defconfig-11-# CONFIG_COMPAT_BRK is not set\n--\narch/mips/configs/eyeq5_defconfig=3=CONFIG_HIGH_RES_TIMERS=y\narch/mips/configs/eyeq5_defconfig:4:CONFIG_BPF_SYSCALL=y\narch/mips/configs/eyeq5_defconfig-5-CONFIG_TASKSTATS=y\n--\narch/mips/configs/eyeq6_defconfig=3=CONFIG_HIGH_RES_TIMERS=y\narch/mips/configs/eyeq6_defconfig:4:CONFIG_BPF_SYSCALL=y\narch/mips/configs/eyeq6_defconfig-5-CONFIG_TASKSTATS=y\n--\narch/mips/configs/eyeq6lplus_defconfig=3=CONFIG_HIGH_RES_TIMERS=y\narch/mips/configs/eyeq6lplus_defconfig:4:CONFIG_BPF_SYSCALL=y\narch/mips/configs/eyeq6lplus_defconfig-5-CONFIG_TASKSTATS=y\n--\narch/mips/configs/generic_defconfig=16=CONFIG_BLK_DEV_INITRD=y\narch/mips/configs/generic_defconfig:17:CONFIG_BPF_SYSCALL=y\narch/mips/configs/generic_defconfig-18-CONFIG_USERFAULTFD=y\n--\narch/mips/configs/loongson3_defconfig=7=CONFIG_HIGH_RES_TIMERS=y\narch/mips/configs/loongson3_defconfig:8:CONFIG_BPF_SYSCALL=y\narch/mips/configs/loongson3_defconfig:9:CONFIG_BPF_JIT=y\narch/mips/configs/loongson3_defconfig-10-CONFIG_PREEMPT=y\n--\narch/mips/net/Makefile-3-\narch/mips/net/Makefile:4:obj-$(CONFIG_BPF_JIT) += bpf_jit_comp.o\narch/mips/net/Makefile-5-\narch/mips/net/Makefile=6=ifeq ($(CONFIG_32BIT),y)\narch/mips/net/Makefile:7: obj-$(CONFIG_BPF_JIT) += bpf_jit_comp32.o\narch/mips/net/Makefile-8-else\narch/mips/net/Makefile:9: obj-$(CONFIG_BPF_JIT) += bpf_jit_comp64.o\narch/mips/net/Makefile-10-endif\n--\narch/parisc/net/Makefile-2-\narch/parisc/net/Makefile:3:obj-$(CONFIG_BPF_JIT) += bpf_jit_core.o\narch/parisc/net/Makefile-4-\narch/parisc/net/Makefile=5=ifeq ($(CONFIG_64BIT),y)\narch/parisc/net/Makefile:6:\tobj-$(CONFIG_BPF_JIT) += bpf_jit_comp64.o\narch/parisc/net/Makefile-7-else\narch/parisc/net/Makefile:8:\tobj-$(CONFIG_BPF_JIT) += bpf_jit_comp32.o\narch/parisc/net/Makefile-9-endif\n--\narch/powerpc/configs/44x/fsp2_defconfig=16=CONFIG_KALLSYMS_ALL=y\narch/powerpc/configs/44x/fsp2_defconfig:17:CONFIG_BPF_SYSCALL=y\narch/powerpc/configs/44x/fsp2_defconfig-18-CONFIG_EXPERT=y\n--\narch/powerpc/configs/mpc885_ads_defconfig=4=CONFIG_HIGH_RES_TIMERS=y\narch/powerpc/configs/mpc885_ads_defconfig:5:CONFIG_BPF_JIT=y\narch/powerpc/configs/mpc885_ads_defconfig-6-CONFIG_VIRT_CPU_ACCOUNTING_NATIVE=y\n--\narch/powerpc/configs/powernv_defconfig=28=CONFIG_BLK_DEV_INITRD=y\narch/powerpc/configs/powernv_defconfig:29:CONFIG_BPF_SYSCALL=y\narch/powerpc/configs/powernv_defconfig-30-# CONFIG_COMPAT_BRK is not set\n--\narch/powerpc/configs/powernv_defconfig=94=CONFIG_DNS_RESOLVER=y\narch/powerpc/configs/powernv_defconfig:95:CONFIG_BPF_JIT=y\narch/powerpc/configs/powernv_defconfig-96-# CONFIG_WIRELESS is not set\n--\narch/powerpc/configs/ppc64_defconfig=6=CONFIG_HIGH_RES_TIMERS=y\narch/powerpc/configs/ppc64_defconfig:7:CONFIG_BPF_SYSCALL=y\narch/powerpc/configs/ppc64_defconfig:8:CONFIG_BPF_JIT=y\narch/powerpc/configs/ppc64_defconfig:9:CONFIG_BPF_LSM=y\narch/powerpc/configs/ppc64_defconfig-10-CONFIG_PREEMPT_VOLUNTARY=y\n--\narch/powerpc/net/Makefile-4-#\narch/powerpc/net/Makefile:5:obj-$(CONFIG_BPF_JIT) += bpf_jit_comp.o bpf_jit_comp$(BITS).o\narch/powerpc/net/Makefile-6-\narch/powerpc/net/Makefile=7=ifdef CONFIG_PPC64\narch/powerpc/net/Makefile:8:obj-$(CONFIG_BPF_JIT) += bpf_timed_may_goto.o\narch/powerpc/net/Makefile-9-endif\n--\narch/riscv/configs/defconfig=4=CONFIG_HIGH_RES_TIMERS=y\narch/riscv/configs/defconfig:5:CONFIG_BPF_SYSCALL=y\narch/riscv/configs/defconfig-6-CONFIG_IKCONFIG=y\n--\narch/riscv/include/asm/extable.h=38=static inline bool fixup_exception(struct pt_regs *regs) { return false; }\n--\narch/riscv/include/asm/extable.h-40-\narch/riscv/include/asm/extable.h:41:#if defined(CONFIG_BPF_JIT) \u0026\u0026 defined(CONFIG_ARCH_RV64I)\narch/riscv/include/asm/extable.h-42-bool ex_handler_bpf(const struct exception_table_entry *ex, struct pt_regs *regs);\n--\narch/riscv/net/Makefile-2-\narch/riscv/net/Makefile:3:obj-$(CONFIG_BPF_JIT) += bpf_jit_core.o\narch/riscv/net/Makefile-4-\narch/riscv/net/Makefile=5=ifeq ($(CONFIG_ARCH_RV64I),y)\narch/riscv/net/Makefile:6:\tobj-$(CONFIG_BPF_JIT) += bpf_jit_comp64.o\narch/riscv/net/Makefile-7-else\narch/riscv/net/Makefile:8:\tobj-$(CONFIG_BPF_JIT) += bpf_jit_comp32.o\narch/riscv/net/Makefile-9-endif\n--\narch/s390/configs/debug_defconfig=8=CONFIG_POSIX_AUX_CLOCKS=y\narch/s390/configs/debug_defconfig:9:CONFIG_BPF_SYSCALL=y\narch/s390/configs/debug_defconfig:10:CONFIG_BPF_JIT=y\narch/s390/configs/debug_defconfig:11:CONFIG_BPF_JIT_ALWAYS_ON=y\narch/s390/configs/debug_defconfig:12:CONFIG_BPF_LSM=y\narch/s390/configs/debug_defconfig-13-CONFIG_PREEMPT=y\n--\narch/s390/configs/defconfig=7=CONFIG_POSIX_AUX_CLOCKS=y\narch/s390/configs/defconfig:8:CONFIG_BPF_SYSCALL=y\narch/s390/configs/defconfig:9:CONFIG_BPF_JIT=y\narch/s390/configs/defconfig:10:CONFIG_BPF_JIT_ALWAYS_ON=y\narch/s390/configs/defconfig:11:CONFIG_BPF_LSM=y\narch/s390/configs/defconfig-12-CONFIG_SCHED_CORE=y\n--\narch/s390/configs/zfcpdump_defconfig=3=CONFIG_POSIX_AUX_CLOCKS=y\narch/s390/configs/zfcpdump_defconfig:4:CONFIG_BPF_SYSCALL=y\narch/s390/configs/zfcpdump_defconfig-5-# CONFIG_CPU_ISOLATION is not set\n--\narch/s390/include/asm/extable.h=43=static inline void swap_ex_entry_fixup(struct exception_table_entry *a,\n--\narch/s390/include/asm/extable.h-56-\narch/s390/include/asm/extable.h:57:#ifdef CONFIG_BPF_JIT\narch/s390/include/asm/extable.h-58-\narch/s390/include/asm/extable.h=59=bool ex_handler_bpf(const struct exception_table_entry *ex, struct pt_regs *regs);\narch/s390/include/asm/extable.h-60-\narch/s390/include/asm/extable.h:61:#else /* !CONFIG_BPF_JIT */\narch/s390/include/asm/extable.h-62-\narch/s390/include/asm/extable.h=63=static inline bool ex_handler_bpf(const struct exception_table_entry *ex, struct pt_regs *regs)\n--\narch/s390/include/asm/extable.h-67-\narch/s390/include/asm/extable.h:68:#endif /* CONFIG_BPF_JIT */\narch/s390/include/asm/extable.h-69-\n--\narch/s390/kernel/Makefile=81=obj-$(CONFIG_TRACEPOINTS)\t+= trace.o\narch/s390/kernel/Makefile-82-\narch/s390/kernel/Makefile:83:obj-$(CONFIG_BPF_SYSCALL)\t+= bpf.o\narch/s390/kernel/Makefile-84-\n--\narch/s390/net/Makefile-4-#\narch/s390/net/Makefile:5:obj-$(CONFIG_BPF_JIT) += bpf_jit_comp.o bpf_timed_may_goto.o\narch/s390/net/Makefile-6-obj-$(CONFIG_HAVE_PNETID) += pnet.o\n--\narch/sparc/net/Makefile-4-#\narch/sparc/net/Makefile:5:obj-$(CONFIG_BPF_JIT) += bpf_jit_comp_$(BITS).o\narch/sparc/net/Makefile-6-ifeq ($(BITS),32)\narch/sparc/net/Makefile:7:obj-$(CONFIG_BPF_JIT) += bpf_jit_asm_32.o\narch/sparc/net/Makefile-8-endif\n--\narch/x86/include/asm/extable.h=46=static inline void __noreturn ex_handler_msr_mce(struct pt_regs *regs, bool wrmsr)\n--\narch/x86/include/asm/extable.h-52-\narch/x86/include/asm/extable.h:53:#if defined(CONFIG_BPF_JIT) \u0026\u0026 defined(CONFIG_X86_64)\narch/x86/include/asm/extable.h-54-bool ex_handler_bpf(const struct exception_table_entry *x, struct pt_regs *regs);\n--\narch/x86/include/asm/nospec-branch.h=389=extern void write_ibpb(void);\narch/x86/include/asm/nospec-branch.h-390-\narch/x86/include/asm/nospec-branch.h:391:#ifdef CONFIG_BPF_JIT\narch/x86/include/asm/nospec-branch.h-392-extern void bpf_arch_ibpb(void);\n--\narch/x86/kernel/callthunks.c=265=void *callthunks_translate_call_dest(void *dest)\n--\narch/x86/kernel/callthunks.c-280-\narch/x86/kernel/callthunks.c:281:#ifdef CONFIG_BPF_JIT\narch/x86/kernel/callthunks.c-282-static bool is_callthunk(void *addr)\n--\narch/x86/kernel/cpu/bugs.c=1669=static inline bool retpoline_seq_enabled(void) { return false; }\n--\narch/x86/kernel/cpu/bugs.c-1676-\narch/x86/kernel/cpu/bugs.c:1677:#ifdef CONFIG_BPF_SYSCALL\narch/x86/kernel/cpu/bugs.c-1678-void unpriv_ebpf_notify(int new_state)\n--\narch/x86/kernel/cpu/bugs.c=2236=static void __init spectre_v2_update_mitigation(void)\n--\narch/x86/kernel/cpu/bugs.c-2253-\narch/x86/kernel/cpu/bugs.c:2254:#ifdef CONFIG_BPF_JIT\narch/x86/kernel/cpu/bugs.c-2255-static void __bpf_arch_ibpb(void *unused)\n--\narch/x86/kernel/cpu/bugs.c=2275=static void __init spectre_v2_apply_mitigation(void)\n--\narch/x86/kernel/cpu/bugs.c-2351-\narch/x86/kernel/cpu/bugs.c:2352:#ifdef CONFIG_BPF_JIT\narch/x86/kernel/cpu/bugs.c-2353-\tif (cpu_wants_ibpb_bpf()) {\n--\narch/x86/kernel/unwind_orc.c=185=static struct orc_entry *orc_bpf_find(unsigned long ip)\narch/x86/kernel/unwind_orc.c-186-{\narch/x86/kernel/unwind_orc.c:187:#ifdef CONFIG_BPF_JIT\narch/x86/kernel/unwind_orc.c-188-\tif (bpf_has_frame_pointer(ip))\n--\narch/x86/net/Makefile=6=ifeq ($(CONFIG_X86_32),y)\narch/x86/net/Makefile:7: obj-$(CONFIG_BPF_JIT) += bpf_jit_comp32.o\narch/x86/net/Makefile-8-else\narch/x86/net/Makefile:9: obj-$(CONFIG_BPF_JIT) += bpf_jit_comp.o bpf_timed_may_goto.o\narch/x86/net/Makefile-10-endif\n--\ncrypto/Makefile=24=obj-$(CONFIG_CRYPTO_SKCIPHER2) += crypto_skcipher.o\ncrypto/Makefile:25:ifeq ($(CONFIG_BPF_SYSCALL),y)\ncrypto/Makefile-26-obj-$(CONFIG_CRYPTO_SKCIPHER2) += bpf_crypto_skcipher.o\n--\ndrivers/base/power/power.h=165=static inline void device_pm_init(struct device *dev)\n--\ndrivers/base/power/power.h-171-\ndrivers/base/power/power.h:172:#ifdef CONFIG_BPF_SYSCALL\ndrivers/base/power/power.h-173-struct bpf_ws_lock { };\n--\ndrivers/base/power/wakeup.c=1163=static const struct file_operations wakeup_sources_stats_fops = {\n--\ndrivers/base/power/wakeup.c-1170-\ndrivers/base/power/wakeup.c:1171:#ifdef CONFIG_BPF_SYSCALL\ndrivers/base/power/wakeup.c-1172-#include \u003clinux/btf.h\u003e\n--\ndrivers/base/power/wakeup.c=1233=static inline void wakeup_sources_bpf_init(void) {}\ndrivers/base/power/wakeup.c:1234:#endif /* CONFIG_BPF_SYSCALL */\ndrivers/base/power/wakeup.c-1235-\n--\ndrivers/media/rc/Makefile=7=rc-core-$(CONFIG_MEDIA_CEC_RC) += keymaps/rc-cec.o\ndrivers/media/rc/Makefile:8:rc-core-$(CONFIG_BPF_LIRC_MODE2) += bpf-lirc.o\ndrivers/media/rc/Makefile-9-\n--\ndrivers/media/rc/rc-core-priv.h=48=struct ir_raw_event_ctrl {\n--\ndrivers/media/rc/rc-core-priv.h-62-\ndrivers/media/rc/rc-core-priv.h:63:#ifdef CONFIG_BPF_LIRC_MODE2\ndrivers/media/rc/rc-core-priv.h-64-\tu32\t\t\t\tbpf_sample;\n--\ndrivers/media/rc/rc-core-priv.h=337=static inline void lirc_unregister(struct rc_dev *dev) { }\n--\ndrivers/media/rc/rc-core-priv.h-342- */\ndrivers/media/rc/rc-core-priv.h:343:#ifdef CONFIG_BPF_LIRC_MODE2\ndrivers/media/rc/rc-core-priv.h-344-void lirc_bpf_free(struct rc_dev *dev);\n--\ndrivers/net/ethernet/netronome/nfp/Makefile=64=endif\ndrivers/net/ethernet/netronome/nfp/Makefile-65-\ndrivers/net/ethernet/netronome/nfp/Makefile:66:ifeq ($(CONFIG_BPF_SYSCALL),y)\ndrivers/net/ethernet/netronome/nfp/Makefile-67-nfp-objs += \\\n--\ndrivers/net/ethernet/netronome/nfp/nfp_app.c=18=static const struct nfp_app_type *apps[] = {\ndrivers/net/ethernet/netronome/nfp/nfp_app.c-19-\t[NFP_APP_CORE_NIC]\t= \u0026app_nic,\ndrivers/net/ethernet/netronome/nfp/nfp_app.c:20:#ifdef CONFIG_BPF_SYSCALL\ndrivers/net/ethernet/netronome/nfp/nfp_app.c-21-\t[NFP_APP_BPF_NIC]\t= \u0026app_bpf,\n--\ndrivers/net/netdevsim/Makefile=5=netdevsim-objs := \\\n--\ndrivers/net/netdevsim/Makefile-7-\ndrivers/net/netdevsim/Makefile:8:ifeq ($(CONFIG_BPF_SYSCALL),y)\ndrivers/net/netdevsim/Makefile-9-netdevsim-objs += \\\n--\ndrivers/net/netdevsim/netdevsim.h=178=void nsim_udp_tunnels_info_destroy(struct net_device *dev);\ndrivers/net/netdevsim/netdevsim.h-179-\ndrivers/net/netdevsim/netdevsim.h:180:#ifdef CONFIG_BPF_SYSCALL\ndrivers/net/netdevsim/netdevsim.h-181-int nsim_bpf_dev_init(struct nsim_dev *nsim_dev);\n--\nfs/Makefile=129=obj-$(CONFIG_ZONEFS_FS)\t\t+= zonefs/\nfs/Makefile:130:obj-$(CONFIG_BPF_LSM)\t\t+= bpf_fs_kfuncs.o\nfs/Makefile-131-obj-$(CONFIG_RESCTRL_FS)\t+= resctrl/\n--\nfs/verity/fsverity_private.h=106=fsverity_msg(const struct inode *inode, const char *level,\n--\nfs/verity/fsverity_private.h-115-\nfs/verity/fsverity_private.h:116:#ifdef CONFIG_BPF_SYSCALL\nfs/verity/fsverity_private.h-117-void __init fsverity_init_bpf(void);\n--\nfs/verity/measure.c=105=EXPORT_SYMBOL_GPL(fsverity_get_digest);\nfs/verity/measure.c-106-\nfs/verity/measure.c:107:#ifdef CONFIG_BPF_SYSCALL\nfs/verity/measure.c-108-\n--\nfs/verity/measure.c=183=void __init fsverity_init_bpf(void)\n--\nfs/verity/measure.c-187-\nfs/verity/measure.c:188:#endif /* CONFIG_BPF_SYSCALL */\n--\ninclude/asm-generic/vmlinux.lds.h-298-\ninclude/asm-generic/vmlinux.lds.h:299:#ifdef CONFIG_BPF_EVENTS\ninclude/asm-generic/vmlinux.lds.h-300-#define BPF_RAW_TP() STRUCT_ALIGN();\t\t\t\t\\\n--\ninclude/linux/bpf-cgroup-defs.h=11=struct bpf_prog_array;\ninclude/linux/bpf-cgroup-defs.h-12-\ninclude/linux/bpf-cgroup-defs.h:13:#ifdef CONFIG_BPF_LSM\ninclude/linux/bpf-cgroup-defs.h-14-/* Maximum number of concurrently attachable per-cgroup LSM hooks. */\n--\ninclude/linux/bpf.h=1509=struct bpf_tracing_multi_link;\ninclude/linux/bpf.h-1510-\ninclude/linux/bpf.h:1511:#ifdef CONFIG_BPF_JIT\ninclude/linux/bpf.h-1512-int bpf_trampoline_link_prog(struct bpf_tramp_node *node,\n--\ninclude/linux/bpf.h=2193=static inline bool is_tracing_multi(enum bpf_attach_type type)\n--\ninclude/linux/bpf.h-2198-\ninclude/linux/bpf.h:2199:#if defined(CONFIG_BPF_JIT) \u0026\u0026 defined(CONFIG_BPF_SYSCALL)\ninclude/linux/bpf.h-2200-/* This macro helps developer to register a struct_ops type and generate\n--\ninclude/linux/bpf.h=2348=int bpf_prog_ctx_arg_info_init(struct bpf_prog *prog,\n--\ninclude/linux/bpf.h-2350-\ninclude/linux/bpf.h:2351:#if defined(CONFIG_CGROUP_BPF) \u0026\u0026 defined(CONFIG_BPF_LSM)\ninclude/linux/bpf.h-2352-int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog,\n--\ninclude/linux/bpf.h=2550=static inline struct bpf_run_ctx *bpf_set_run_ctx(struct bpf_run_ctx *new_ctx)\n--\ninclude/linux/bpf.h-2553-\ninclude/linux/bpf.h:2554:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/bpf.h-2555-\told_ctx = current-\u003ebpf_ctx;\n--\ninclude/linux/bpf.h=2561=static inline void bpf_reset_run_ctx(struct bpf_run_ctx *old_ctx)\ninclude/linux/bpf.h-2562-{\ninclude/linux/bpf.h:2563:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/bpf.h-2564-\tcurrent-\u003ebpf_ctx = old_ctx;\n--\ninclude/linux/bpf.h=2654=bool bpf_jit_bypass_spec_v4(void);\n--\ninclude/linux/bpf.h-2658-\ninclude/linux/bpf.h:2659:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/bpf.h-2660-DECLARE_PER_CPU(int, bpf_prog_active);\n--\ninclude/linux/bpf.h=3047=int bpf_check(struct bpf_prog **fp, union bpf_attr *attr, bpfptr_t uattr,\n--\ninclude/linux/bpf.h-3049-\ninclude/linux/bpf.h:3050:#ifndef CONFIG_BPF_JIT_ALWAYS_ON\ninclude/linux/bpf.h-3051-int bpf_patch_call_args(struct bpf_insn *insn, u32 stack_depth);\n--\ninclude/linux/bpf.h=3220=bpf_prog_run_array_sleepable(const struct bpf_prog_array *array,\n--\ninclude/linux/bpf.h-3268-\ninclude/linux/bpf.h:3269:#else /* !CONFIG_BPF_SYSCALL */\ninclude/linux/bpf.h-3270-static inline struct bpf_prog *bpf_prog_get(u32 ufd)\n--\ninclude/linux/bpf.h=3562=static inline void bpf_prog_report_arena_violation(bool write, unsigned long addr,\n--\ninclude/linux/bpf.h-3565-}\ninclude/linux/bpf.h:3566:#endif /* CONFIG_BPF_SYSCALL */\ninclude/linux/bpf.h-3567-\n--\ninclude/linux/bpf.h=3574=bpf_probe_read_kernel_common(void *dst, u32 size, const void *unsafe_ptr)\n--\ninclude/linux/bpf.h-3577-\ninclude/linux/bpf.h:3578:\tif (IS_ENABLED(CONFIG_BPF_EVENTS))\ninclude/linux/bpf.h-3579-\t\tret = copy_from_kernel_nofault(dst, unsafe_ptr, size);\n--\ninclude/linux/bpf.h=3624=void unpriv_ebpf_notify(int new_state);\ninclude/linux/bpf.h-3625-\ninclude/linux/bpf.h:3626:#if defined(CONFIG_NET) \u0026\u0026 defined(CONFIG_BPF_SYSCALL)\ninclude/linux/bpf.h-3627-int bpf_dev_bound_kfunc_check(struct bpf_verifier_log *log,\n--\ninclude/linux/bpf.h=3731=static inline int bpf_prog_test_run_syscall(struct bpf_prog *prog,\n--\ninclude/linux/bpf.h-3737-\ninclude/linux/bpf.h:3738:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/bpf.h-3739-static inline int sock_map_get_from_fd(const union bpf_attr *attr,\n--\ninclude/linux/bpf.h=3763=static inline int sock_map_link_create(const union bpf_attr *attr, struct bpf_prog *prog)\n--\ninclude/linux/bpf.h-3766-}\ninclude/linux/bpf.h:3767:#endif /* CONFIG_BPF_SYSCALL */\ninclude/linux/bpf.h:3768:#endif /* CONFIG_NET \u0026\u0026 CONFIG_BPF_SYSCALL */\ninclude/linux/bpf.h-3769-\n--\ninclude/linux/bpf.h=3771=bpf_prog_inc_misses_counters(const struct bpf_prog_array *array)\n--\ninclude/linux/bpf.h-3785-\ninclude/linux/bpf.h:3786:#if defined(CONFIG_INET) \u0026\u0026 defined(CONFIG_BPF_SYSCALL)\ninclude/linux/bpf.h-3787-void bpf_sk_reuseport_detach(struct sock *sk);\n--\ninclude/linux/bpf.h=3793=static inline void bpf_sk_reuseport_detach(struct sock *sk)\n--\ninclude/linux/bpf.h-3796-\ninclude/linux/bpf.h:3797:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/bpf.h-3798-static inline int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map,\n--\ninclude/linux/bpf.h=3804=static inline int bpf_fd_reuseport_array_update_elem(struct bpf_map *map,\n--\ninclude/linux/bpf.h-3809-}\n\n"
} |
| 7/2 | 2026/07/14 04:19 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 17534 output: 22 thoughts: 58 Thoughts: Okay, let's see what's on my mind regarding these configurations. **Analyzing BPF Verification and BTF Configurations** Right, so I'm focusing on these kernel configurations: `CONFIG_BPF_SYSCALL` and `CONFIG_DEBUG_INFO_BTF`. My initial thought is to quickly see if there are *any* other kernel configurations in the related areas, specifically concerning the code in `kernel/bpf/verifier.c` and `kernel/bpf/btf.c`. I need to ensure I'm getting the full picture here regarding dependencies and related features. Perhaps some subtle, interrelated knobs could be set or unset somewhere else. It's just good practice to review the related code. |
| 8/2 | 2026/07/14 04:19 | tool | grepper |
0mArgs:{
"Expression": "CONFIG_BPF_SYSCALL"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 1130 lines.\nUse more precise expression if possible.\n\nDocumentation/scheduler/sched-ext.rst=35=options should be enabled to use sched_ext:\n--\nDocumentation/scheduler/sched-ext.rst-40- CONFIG_SCHED_CLASS_EXT=y\nDocumentation/scheduler/sched-ext.rst:41: CONFIG_BPF_SYSCALL=y\nDocumentation/scheduler/sched-ext.rst-42- CONFIG_BPF_JIT=y\n--\nDocumentation/trace/fprobetrace.rst=84=parameters by its name instead of ``$argN``. This feature is available if the\nDocumentation/trace/fprobetrace.rst:85:kernel is configured with CONFIG_BPF_SYSCALL and CONFIG_DEBUG_INFO_BTF.\nDocumentation/trace/fprobetrace.rst-86-If user only specify the BTF argument, the event's argument name is also\n--\narch/arm/configs/aspeed_g4_defconfig=4=CONFIG_HIGH_RES_TIMERS=y\narch/arm/configs/aspeed_g4_defconfig:5:CONFIG_BPF_SYSCALL=y\narch/arm/configs/aspeed_g4_defconfig-6-CONFIG_IKCONFIG=y\n--\narch/arm/configs/aspeed_g5_defconfig=4=CONFIG_HIGH_RES_TIMERS=y\narch/arm/configs/aspeed_g5_defconfig:5:CONFIG_BPF_SYSCALL=y\narch/arm/configs/aspeed_g5_defconfig-6-CONFIG_IKCONFIG=y\n--\narch/arm/configs/imx_v6_v7_defconfig=3=CONFIG_HIGH_RES_TIMERS=y\narch/arm/configs/imx_v6_v7_defconfig:4:CONFIG_BPF_SYSCALL=y\narch/arm/configs/imx_v6_v7_defconfig-5-CONFIG_PREEMPT_VOLUNTARY=y\n--\narch/arm/configs/imxrt_defconfig-1-# CONFIG_LOCALVERSION_AUTO is not set\narch/arm/configs/imxrt_defconfig:2:CONFIG_BPF_SYSCALL=y\narch/arm/configs/imxrt_defconfig-3-CONFIG_SCHED_AUTOGROUP=y\n--\narch/arm/kernel/spectre.c=8=static bool _unprivileged_ebpf_enabled(void)\narch/arm/kernel/spectre.c-9-{\narch/arm/kernel/spectre.c:10:#ifdef CONFIG_BPF_SYSCALL\narch/arm/kernel/spectre.c-11-\treturn !sysctl_unprivileged_bpf_disabled;\n--\narch/arm64/configs/defconfig=5=CONFIG_HIGH_RES_TIMERS=y\narch/arm64/configs/defconfig:6:CONFIG_BPF_SYSCALL=y\narch/arm64/configs/defconfig-7-CONFIG_BPF_JIT=y\n--\narch/arm64/kernel/proton-pack.c=111=static bool _unprivileged_ebpf_enabled(void)\narch/arm64/kernel/proton-pack.c-112-{\narch/arm64/kernel/proton-pack.c:113:#ifdef CONFIG_BPF_SYSCALL\narch/arm64/kernel/proton-pack.c-114-\treturn !sysctl_unprivileged_bpf_disabled;\n--\narch/arm64/kernel/proton-pack.c=1168=void __init spectre_bhb_patch_clearbhb(struct alt_instr *alt,\n--\narch/arm64/kernel/proton-pack.c-1179-\narch/arm64/kernel/proton-pack.c:1180:#ifdef CONFIG_BPF_SYSCALL\narch/arm64/kernel/proton-pack.c-1181-#define EBPF_WARN \"Unprivileged eBPF is enabled, data leaks possible via Spectre v2 BHB attacks!\\n\"\n--\narch/loongarch/configs/loongson32_defconfig=6=CONFIG_HIGH_RES_TIMERS=y\narch/loongarch/configs/loongson32_defconfig:7:CONFIG_BPF_SYSCALL=y\narch/loongarch/configs/loongson32_defconfig-8-CONFIG_PREEMPT=y\n--\narch/loongarch/configs/loongson64_defconfig=6=CONFIG_HIGH_RES_TIMERS=y\narch/loongarch/configs/loongson64_defconfig:7:CONFIG_BPF_SYSCALL=y\narch/loongarch/configs/loongson64_defconfig-8-CONFIG_BPF_JIT=y\n--\narch/mips/configs/decstation_64_defconfig=7=CONFIG_EXPERT=y\n--\narch/mips/configs/decstation_64_defconfig-9-# CONFIG_SYSFS_SYSCALL is not set\narch/mips/configs/decstation_64_defconfig:10:CONFIG_BPF_SYSCALL=y\narch/mips/configs/decstation_64_defconfig-11-# CONFIG_COMPAT_BRK is not set\n--\narch/mips/configs/decstation_defconfig=7=CONFIG_EXPERT=y\n--\narch/mips/configs/decstation_defconfig-9-# CONFIG_SYSFS_SYSCALL is not set\narch/mips/configs/decstation_defconfig:10:CONFIG_BPF_SYSCALL=y\narch/mips/configs/decstation_defconfig-11-# CONFIG_COMPAT_BRK is not set\n--\narch/mips/configs/decstation_r4k_defconfig=7=CONFIG_EXPERT=y\n--\narch/mips/configs/decstation_r4k_defconfig-9-# CONFIG_SYSFS_SYSCALL is not set\narch/mips/configs/decstation_r4k_defconfig:10:CONFIG_BPF_SYSCALL=y\narch/mips/configs/decstation_r4k_defconfig-11-# CONFIG_COMPAT_BRK is not set\n--\narch/mips/configs/eyeq5_defconfig=3=CONFIG_HIGH_RES_TIMERS=y\narch/mips/configs/eyeq5_defconfig:4:CONFIG_BPF_SYSCALL=y\narch/mips/configs/eyeq5_defconfig-5-CONFIG_TASKSTATS=y\n--\narch/mips/configs/eyeq6_defconfig=3=CONFIG_HIGH_RES_TIMERS=y\narch/mips/configs/eyeq6_defconfig:4:CONFIG_BPF_SYSCALL=y\narch/mips/configs/eyeq6_defconfig-5-CONFIG_TASKSTATS=y\n--\narch/mips/configs/eyeq6lplus_defconfig=3=CONFIG_HIGH_RES_TIMERS=y\narch/mips/configs/eyeq6lplus_defconfig:4:CONFIG_BPF_SYSCALL=y\narch/mips/configs/eyeq6lplus_defconfig-5-CONFIG_TASKSTATS=y\n--\narch/mips/configs/generic_defconfig=16=CONFIG_BLK_DEV_INITRD=y\narch/mips/configs/generic_defconfig:17:CONFIG_BPF_SYSCALL=y\narch/mips/configs/generic_defconfig-18-CONFIG_USERFAULTFD=y\n--\narch/mips/configs/loongson3_defconfig=7=CONFIG_HIGH_RES_TIMERS=y\narch/mips/configs/loongson3_defconfig:8:CONFIG_BPF_SYSCALL=y\narch/mips/configs/loongson3_defconfig-9-CONFIG_BPF_JIT=y\n--\narch/powerpc/configs/44x/fsp2_defconfig=16=CONFIG_KALLSYMS_ALL=y\narch/powerpc/configs/44x/fsp2_defconfig:17:CONFIG_BPF_SYSCALL=y\narch/powerpc/configs/44x/fsp2_defconfig-18-CONFIG_EXPERT=y\n--\narch/powerpc/configs/powernv_defconfig=28=CONFIG_BLK_DEV_INITRD=y\narch/powerpc/configs/powernv_defconfig:29:CONFIG_BPF_SYSCALL=y\narch/powerpc/configs/powernv_defconfig-30-# CONFIG_COMPAT_BRK is not set\n--\narch/powerpc/configs/ppc64_defconfig=6=CONFIG_HIGH_RES_TIMERS=y\narch/powerpc/configs/ppc64_defconfig:7:CONFIG_BPF_SYSCALL=y\narch/powerpc/configs/ppc64_defconfig-8-CONFIG_BPF_JIT=y\n--\narch/riscv/configs/defconfig=4=CONFIG_HIGH_RES_TIMERS=y\narch/riscv/configs/defconfig:5:CONFIG_BPF_SYSCALL=y\narch/riscv/configs/defconfig-6-CONFIG_IKCONFIG=y\n--\narch/s390/configs/debug_defconfig=8=CONFIG_POSIX_AUX_CLOCKS=y\narch/s390/configs/debug_defconfig:9:CONFIG_BPF_SYSCALL=y\narch/s390/configs/debug_defconfig-10-CONFIG_BPF_JIT=y\n--\narch/s390/configs/defconfig=7=CONFIG_POSIX_AUX_CLOCKS=y\narch/s390/configs/defconfig:8:CONFIG_BPF_SYSCALL=y\narch/s390/configs/defconfig-9-CONFIG_BPF_JIT=y\n--\narch/s390/configs/zfcpdump_defconfig=3=CONFIG_POSIX_AUX_CLOCKS=y\narch/s390/configs/zfcpdump_defconfig:4:CONFIG_BPF_SYSCALL=y\narch/s390/configs/zfcpdump_defconfig-5-# CONFIG_CPU_ISOLATION is not set\n--\narch/s390/kernel/Makefile=81=obj-$(CONFIG_TRACEPOINTS)\t+= trace.o\narch/s390/kernel/Makefile-82-\narch/s390/kernel/Makefile:83:obj-$(CONFIG_BPF_SYSCALL)\t+= bpf.o\narch/s390/kernel/Makefile-84-\n--\narch/x86/kernel/cpu/bugs.c=1669=static inline bool retpoline_seq_enabled(void) { return false; }\n--\narch/x86/kernel/cpu/bugs.c-1676-\narch/x86/kernel/cpu/bugs.c:1677:#ifdef CONFIG_BPF_SYSCALL\narch/x86/kernel/cpu/bugs.c-1678-void unpriv_ebpf_notify(int new_state)\n--\ncrypto/Makefile=24=obj-$(CONFIG_CRYPTO_SKCIPHER2) += crypto_skcipher.o\ncrypto/Makefile:25:ifeq ($(CONFIG_BPF_SYSCALL),y)\ncrypto/Makefile-26-obj-$(CONFIG_CRYPTO_SKCIPHER2) += bpf_crypto_skcipher.o\n--\ndrivers/base/power/power.h=165=static inline void device_pm_init(struct device *dev)\n--\ndrivers/base/power/power.h-171-\ndrivers/base/power/power.h:172:#ifdef CONFIG_BPF_SYSCALL\ndrivers/base/power/power.h-173-struct bpf_ws_lock { };\n--\ndrivers/base/power/wakeup.c=1163=static const struct file_operations wakeup_sources_stats_fops = {\n--\ndrivers/base/power/wakeup.c-1170-\ndrivers/base/power/wakeup.c:1171:#ifdef CONFIG_BPF_SYSCALL\ndrivers/base/power/wakeup.c-1172-#include \u003clinux/btf.h\u003e\n--\ndrivers/base/power/wakeup.c=1233=static inline void wakeup_sources_bpf_init(void) {}\ndrivers/base/power/wakeup.c:1234:#endif /* CONFIG_BPF_SYSCALL */\ndrivers/base/power/wakeup.c-1235-\n--\ndrivers/net/ethernet/netronome/nfp/Makefile=64=endif\ndrivers/net/ethernet/netronome/nfp/Makefile-65-\ndrivers/net/ethernet/netronome/nfp/Makefile:66:ifeq ($(CONFIG_BPF_SYSCALL),y)\ndrivers/net/ethernet/netronome/nfp/Makefile-67-nfp-objs += \\\n--\ndrivers/net/ethernet/netronome/nfp/nfp_app.c=18=static const struct nfp_app_type *apps[] = {\ndrivers/net/ethernet/netronome/nfp/nfp_app.c-19-\t[NFP_APP_CORE_NIC]\t= \u0026app_nic,\ndrivers/net/ethernet/netronome/nfp/nfp_app.c:20:#ifdef CONFIG_BPF_SYSCALL\ndrivers/net/ethernet/netronome/nfp/nfp_app.c-21-\t[NFP_APP_BPF_NIC]\t= \u0026app_bpf,\n--\ndrivers/net/netdevsim/Makefile=5=netdevsim-objs := \\\n--\ndrivers/net/netdevsim/Makefile-7-\ndrivers/net/netdevsim/Makefile:8:ifeq ($(CONFIG_BPF_SYSCALL),y)\ndrivers/net/netdevsim/Makefile-9-netdevsim-objs += \\\n--\ndrivers/net/netdevsim/netdevsim.h=178=void nsim_udp_tunnels_info_destroy(struct net_device *dev);\ndrivers/net/netdevsim/netdevsim.h-179-\ndrivers/net/netdevsim/netdevsim.h:180:#ifdef CONFIG_BPF_SYSCALL\ndrivers/net/netdevsim/netdevsim.h-181-int nsim_bpf_dev_init(struct nsim_dev *nsim_dev);\n--\nfs/verity/fsverity_private.h=106=fsverity_msg(const struct inode *inode, const char *level,\n--\nfs/verity/fsverity_private.h-115-\nfs/verity/fsverity_private.h:116:#ifdef CONFIG_BPF_SYSCALL\nfs/verity/fsverity_private.h-117-void __init fsverity_init_bpf(void);\n--\nfs/verity/measure.c=105=EXPORT_SYMBOL_GPL(fsverity_get_digest);\nfs/verity/measure.c-106-\nfs/verity/measure.c:107:#ifdef CONFIG_BPF_SYSCALL\nfs/verity/measure.c-108-\n--\nfs/verity/measure.c=183=void __init fsverity_init_bpf(void)\n--\nfs/verity/measure.c-187-\nfs/verity/measure.c:188:#endif /* CONFIG_BPF_SYSCALL */\n--\ninclude/linux/bpf.h=2193=static inline bool is_tracing_multi(enum bpf_attach_type type)\n--\ninclude/linux/bpf.h-2198-\ninclude/linux/bpf.h:2199:#if defined(CONFIG_BPF_JIT) \u0026\u0026 defined(CONFIG_BPF_SYSCALL)\ninclude/linux/bpf.h-2200-/* This macro helps developer to register a struct_ops type and generate\n--\ninclude/linux/bpf.h=2550=static inline struct bpf_run_ctx *bpf_set_run_ctx(struct bpf_run_ctx *new_ctx)\n--\ninclude/linux/bpf.h-2553-\ninclude/linux/bpf.h:2554:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/bpf.h-2555-\told_ctx = current-\u003ebpf_ctx;\n--\ninclude/linux/bpf.h=2561=static inline void bpf_reset_run_ctx(struct bpf_run_ctx *old_ctx)\ninclude/linux/bpf.h-2562-{\ninclude/linux/bpf.h:2563:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/bpf.h-2564-\tcurrent-\u003ebpf_ctx = old_ctx;\n--\ninclude/linux/bpf.h=2654=bool bpf_jit_bypass_spec_v4(void);\n--\ninclude/linux/bpf.h-2658-\ninclude/linux/bpf.h:2659:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/bpf.h-2660-DECLARE_PER_CPU(int, bpf_prog_active);\n--\ninclude/linux/bpf.h=3220=bpf_prog_run_array_sleepable(const struct bpf_prog_array *array,\n--\ninclude/linux/bpf.h-3268-\ninclude/linux/bpf.h:3269:#else /* !CONFIG_BPF_SYSCALL */\ninclude/linux/bpf.h-3270-static inline struct bpf_prog *bpf_prog_get(u32 ufd)\n--\ninclude/linux/bpf.h=3562=static inline void bpf_prog_report_arena_violation(bool write, unsigned long addr,\n--\ninclude/linux/bpf.h-3565-}\ninclude/linux/bpf.h:3566:#endif /* CONFIG_BPF_SYSCALL */\ninclude/linux/bpf.h-3567-\n--\ninclude/linux/bpf.h=3624=void unpriv_ebpf_notify(int new_state);\ninclude/linux/bpf.h-3625-\ninclude/linux/bpf.h:3626:#if defined(CONFIG_NET) \u0026\u0026 defined(CONFIG_BPF_SYSCALL)\ninclude/linux/bpf.h-3627-int bpf_dev_bound_kfunc_check(struct bpf_verifier_log *log,\n--\ninclude/linux/bpf.h=3731=static inline int bpf_prog_test_run_syscall(struct bpf_prog *prog,\n--\ninclude/linux/bpf.h-3737-\ninclude/linux/bpf.h:3738:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/bpf.h-3739-static inline int sock_map_get_from_fd(const union bpf_attr *attr,\n--\ninclude/linux/bpf.h=3763=static inline int sock_map_link_create(const union bpf_attr *attr, struct bpf_prog *prog)\n--\ninclude/linux/bpf.h-3766-}\ninclude/linux/bpf.h:3767:#endif /* CONFIG_BPF_SYSCALL */\ninclude/linux/bpf.h:3768:#endif /* CONFIG_NET \u0026\u0026 CONFIG_BPF_SYSCALL */\ninclude/linux/bpf.h-3769-\n--\ninclude/linux/bpf.h=3771=bpf_prog_inc_misses_counters(const struct bpf_prog_array *array)\n--\ninclude/linux/bpf.h-3785-\ninclude/linux/bpf.h:3786:#if defined(CONFIG_INET) \u0026\u0026 defined(CONFIG_BPF_SYSCALL)\ninclude/linux/bpf.h-3787-void bpf_sk_reuseport_detach(struct sock *sk);\n--\ninclude/linux/bpf.h=3793=static inline void bpf_sk_reuseport_detach(struct sock *sk)\n--\ninclude/linux/bpf.h-3796-\ninclude/linux/bpf.h:3797:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/bpf.h-3798-static inline int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map,\n--\ninclude/linux/bpf.h=3804=static inline int bpf_fd_reuseport_array_update_elem(struct bpf_map *map,\n--\ninclude/linux/bpf.h-3809-}\ninclude/linux/bpf.h:3810:#endif /* CONFIG_BPF_SYSCALL */\ninclude/linux/bpf.h:3811:#endif /* defined(CONFIG_INET) \u0026\u0026 defined(CONFIG_BPF_SYSCALL) */\ninclude/linux/bpf.h-3812-\n--\ninclude/linux/bpf.h=3814=struct bpf_key {\n--\ninclude/linux/bpf.h-3819-\ninclude/linux/bpf.h:3820:#if defined(CONFIG_KEYS) \u0026\u0026 defined(CONFIG_BPF_SYSCALL)\ninclude/linux/bpf.h-3821-struct bpf_key *bpf_lookup_user_key(s32 serial, u64 flags);\n--\ninclude/linux/bpf.h=3854=static inline s32 bpf_key_serial(const struct bpf_key *key)\n--\ninclude/linux/bpf.h-3857-}\ninclude/linux/bpf.h:3858:#endif /* defined(CONFIG_KEYS) \u0026\u0026 defined(CONFIG_BPF_SYSCALL) */\ninclude/linux/bpf.h-3859-\n--\ninclude/linux/bpf.h=4161=void bpf_insn_array_adjust_after_remove(struct bpf_map *map, u32 off, u32 len);\ninclude/linux/bpf.h-4162-\ninclude/linux/bpf.h:4163:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/bpf.h-4164-void bpf_prog_update_insn_ptrs(struct bpf_prog *prog, u32 *offsets, void *image);\n--\ninclude/linux/bpf_defs.h-8-\ninclude/linux/bpf_defs.h:9:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/bpf_defs.h-10-bool bpf_arena_handle_page_fault(unsigned long addr, bool is_write, unsigned long fault_ip);\n--\ninclude/linux/btf.h=532=struct bpf_verifier_log;\ninclude/linux/btf.h-533-\ninclude/linux/btf.h:534:#if defined(CONFIG_BPF_JIT) \u0026\u0026 defined(CONFIG_BPF_SYSCALL)\ninclude/linux/btf.h-535-struct bpf_struct_ops;\n--\ninclude/linux/btf.h=560=struct btf_field_iter {\n--\ninclude/linux/btf.h-567-\ninclude/linux/btf.h:568:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/btf.h-569-const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id);\n--\ninclude/linux/cgroup-defs.h=486=struct cgroup {\n--\ninclude/linux/cgroup-defs.h-632-\ninclude/linux/cgroup-defs.h:633:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/cgroup-defs.h-634-\tstruct bpf_local_storage __rcu *bpf_cgrp_storage;\n--\ninclude/linux/filter.h=886=static inline void bpf_net_ctx_get_all_used_flush_lists(struct list_head **lh_map,\n--\ninclude/linux/filter.h-895-\ninclude/linux/filter.h:896:\tif (!IS_ENABLED(CONFIG_BPF_SYSCALL))\ninclude/linux/filter.h-897-\t\treturn;\n--\ninclude/linux/filter.h=1208=struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off,\n--\ninclude/linux/filter.h-1210-\ninclude/linux/filter.h:1211:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/filter.h-1212-struct bpf_prog *bpf_patch_insn_data(struct bpf_verifier_env *env, u32 off,\n--\ninclude/linux/filter.h=1229=static inline void bpf_restore_insn_aux_data(struct bpf_verifier_env *env,\n--\ninclude/linux/filter.h-1232-}\ninclude/linux/filter.h:1233:#endif /* CONFIG_BPF_SYSCALL */\ninclude/linux/filter.h-1234-\n--\ninclude/linux/lsm_hook_defs.h=437=LSM_HOOK(void, LSM_RET_VOID, audit_rule_free, void *lsmrule)\n--\ninclude/linux/lsm_hook_defs.h-439-\ninclude/linux/lsm_hook_defs.h:440:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/lsm_hook_defs.h-441-LSM_HOOK(int, 0, bpf, int cmd, union bpf_attr *attr, unsigned int size, bool kernel)\n--\ninclude/linux/lsm_hook_defs.h=454=LSM_HOOK(int, 0, bpf_token_capable, const struct bpf_token *token, int cap)\ninclude/linux/lsm_hook_defs.h:455:#endif /* CONFIG_BPF_SYSCALL */\ninclude/linux/lsm_hook_defs.h-456-\n--\ninclude/linux/mm.h=3221=extern int access_remote_vm(struct mm_struct *mm, unsigned long addr,\n--\ninclude/linux/mm.h-3223-\ninclude/linux/mm.h:3224:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/mm.h-3225-extern int copy_remote_vm_str(struct task_struct *tsk, unsigned long addr,\n--\ninclude/linux/sched.h=826=struct task_struct {\n--\ninclude/linux/sched.h-1601-#endif\ninclude/linux/sched.h:1602:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/sched.h-1603-\t/* Used by BPF task local storage */\n--\ninclude/linux/sched/user.h=14=struct user_struct {\n--\ninclude/linux/sched/user.h-25-\ninclude/linux/sched/user.h:26:#if defined(CONFIG_PERF_EVENTS) || defined(CONFIG_BPF_SYSCALL) || \\\ninclude/linux/sched/user.h-27-\tdefined(CONFIG_NET) || defined(CONFIG_IO_URING) || \\\n--\ninclude/linux/security.h=2290=static inline void securityfs_remove(struct dentry *dentry)\n--\ninclude/linux/security.h-2294-\ninclude/linux/security.h:2295:#ifdef CONFIG_BPF_SYSCALL\ninclude/linux/security.h-2296-union bpf_attr;\n--\ninclude/linux/security.h=2364=static inline int security_bpf_token_capable(const struct bpf_token *token, int cap)\n--\ninclude/linux/security.h-2368-#endif /* CONFIG_SECURITY */\ninclude/linux/security.h:2369:#endif /* CONFIG_BPF_SYSCALL */\ninclude/linux/security.h-2370-\n--\ninclude/net/af_vsock.h=262=extern struct proto vsock_proto;\ninclude/net/af_vsock.h:263:#ifdef CONFIG_BPF_SYSCALL\ninclude/net/af_vsock.h-264-int vsock_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);\n--\ninclude/net/bpf_sk_storage.h=29=struct nlattr;\ninclude/net/bpf_sk_storage.h-30-\ninclude/net/bpf_sk_storage.h:31:#ifdef CONFIG_BPF_SYSCALL\ninclude/net/bpf_sk_storage.h-32-int bpf_sk_storage_clone(const struct sock *sk, struct sock *newsk);\n--\ninclude/net/flow_dissector.h=476=flow_dissector_init_keys(struct flow_dissector_key_control *key_control,\n--\ninclude/net/flow_dissector.h-482-\ninclude/net/flow_dissector.h:483:#ifdef CONFIG_BPF_SYSCALL\ninclude/net/flow_dissector.h-484-int flow_dissector_bpf_prog_attach_check(struct net *net,\ninclude/net/flow_dissector.h-485-\t\t\t\t\t struct bpf_prog *prog);\ninclude/net/flow_dissector.h:486:#endif /* CONFIG_BPF_SYSCALL */\ninclude/net/flow_dissector.h-487-\n--\ninclude/net/ip6_fib.h=630=void fib6_info_hw_flags_set(struct net *net, struct fib6_info *f6i,\n--\ninclude/net/ip6_fib.h-632-\ninclude/net/ip6_fib.h:633:#if IS_ENABLED(CONFIG_IPV6) \u0026\u0026 defined(CONFIG_BPF_SYSCALL)\ninclude/net/ip6_fib.h-634-struct bpf_iter__ipv6_route {\n--\ninclude/net/mptcp.h=322=static inline void mptcpv6_handle_mapped(struct sock *sk, bool mapped) { }\n--\ninclude/net/mptcp.h-324-\ninclude/net/mptcp.h:325:#if defined(CONFIG_MPTCP) \u0026\u0026 defined(CONFIG_BPF_SYSCALL)\ninclude/net/mptcp.h-326-struct mptcp_sock *bpf_mptcp_sock_from_subflow(struct sock *sk);\n--\ninclude/net/sock.h=365=struct sock {\n--\ninclude/net/sock.h-586-\tstruct sock_reuseport __rcu\t*sk_reuseport_cb;\ninclude/net/sock.h:587:#ifdef CONFIG_BPF_SYSCALL\ninclude/net/sock.h-588-\tstruct bpf_local_storage __rcu\t*sk_bpf_storage;\n--\ninclude/net/sock.h=1291=struct proto {\n--\ninclude/net/sock.h-1343-\tvoid\t\t\t(*put_port)(struct sock *sk);\ninclude/net/sock.h:1344:#ifdef CONFIG_BPF_SYSCALL\ninclude/net/sock.h-1345-\tint\t\t\t(*psock_update_sk_prot)(struct sock *sk,\n--\ninclude/net/tcp.h=2836=struct sk_psock;\ninclude/net/tcp.h-2837-\ninclude/net/tcp.h:2838:#ifdef CONFIG_BPF_SYSCALL\ninclude/net/tcp.h-2839-int tcp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);\n--\ninclude/net/tcp.h=2843=int tcp_bpf_strp_read_sock(struct strparser *strp, read_descriptor_t *desc,\n--\ninclude/net/tcp.h-2845-#endif /* CONFIG_BPF_STREAM_PARSER */\ninclude/net/tcp.h:2846:#endif /* CONFIG_BPF_SYSCALL */\ninclude/net/tcp.h-2847-\n--\ninclude/net/tcp.h=2856=int tcp_bpf_sendmsg_redir(struct sock *sk, bool ingress,\n--\ninclude/net/tcp.h-2859-\ninclude/net/tcp.h:2860:#if !defined(CONFIG_BPF_SYSCALL) || !defined(CONFIG_NET_SOCK_MSG)\ninclude/net/tcp.h-2861-static inline void tcp_bpf_clone(const struct sock *sk, struct sock *newsk)\n--\ninclude/net/tcx.h=145=static inline enum tcx_action_base tcx_action_code(struct sk_buff *skb,\n--\ninclude/net/tcx.h-161-\ninclude/net/tcx.h:162:#if defined(CONFIG_NET_XGRESS) \u0026\u0026 defined(CONFIG_BPF_SYSCALL)\ninclude/net/tcx.h-163-int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog);\n--\ninclude/net/tcx.h=202=static inline void dev_tcx_uninstall(struct net_device *dev)\n--\ninclude/net/tcx.h-204-}\ninclude/net/tcx.h:205:#endif /* CONFIG_NET_XGRESS \u0026\u0026 CONFIG_BPF_SYSCALL */\ninclude/net/tcx.h-206-#endif /* __NET_TCX_H */\n--\ninclude/net/udp.h=632=static inline void udp_post_segment_fix_csum(struct sk_buff *skb)\n--\ninclude/net/udp.h-650-\ninclude/net/udp.h:651:#ifdef CONFIG_BPF_SYSCALL\ninclude/net/udp.h-652-struct sk_psock;\n--\ninclude/trace/events/xdp.h=150=DEFINE_EVENT(xdp_redirect_template, xdp_redirect_err,\n--\ninclude/trace/events/xdp.h-170-\ninclude/trace/events/xdp.h:171:#ifdef CONFIG_BPF_SYSCALL\ninclude/trace/events/xdp.h-172-TRACE_EVENT(xdp_cpumap_kthread,\n--\ninclude/trace/events/xdp.h=250=TRACE_EVENT(xdp_devmap_xmit,\n--\ninclude/trace/events/xdp.h-284-);\ninclude/trace/events/xdp.h:285:#endif /* CONFIG_BPF_SYSCALL */\ninclude/trace/events/xdp.h-286-\n--\nkernel/bpf/Makefile=7=CFLAGS_core.o += -Wno-override-init $(cflags-nogcse-yy)\nkernel/bpf/Makefile-8-\nkernel/bpf/Makefile:9:obj-$(CONFIG_BPF_SYSCALL) += syscall.o verifier.o inode.o helpers.o tnum.o cnum.o log.o token.o liveness.o const_fold.o\nkernel/bpf/Makefile:10:obj-$(CONFIG_BPF_SYSCALL) += bpf_iter.o map_iter.o task_iter.o prog_iter.o link_iter.o\nkernel/bpf/Makefile:11:obj-$(CONFIG_BPF_SYSCALL) += hashtab.o arraymap.o percpu_freelist.o bpf_lru_list.o lpm_trie.o map_in_map.o bloom_filter.o\nkernel/bpf/Makefile:12:obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o bpf_insn_array.o\nkernel/bpf/Makefile:13:obj-$(CONFIG_BPF_SYSCALL) += bpf_local_storage.o bpf_task_storage.o\nkernel/bpf/Makefile:14:obj-$(CONFIG_BPF_SYSCALL) += fixups.o cfg.o states.o backtrack.o check_btf.o\nkernel/bpf/Makefile-15-obj-${CONFIG_BPF_LSM}\t += bpf_inode_storage.o\nkernel/bpf/Makefile:16:obj-$(CONFIG_BPF_SYSCALL) += disasm.o mprog.o\nkernel/bpf/Makefile-17-obj-$(CONFIG_BPF_JIT) += trampoline.o\nkernel/bpf/Makefile:18:obj-$(CONFIG_BPF_SYSCALL) += btf.o memalloc.o rqspinlock.o stream.o\nkernel/bpf/Makefile-19-ifeq ($(CONFIG_MMU)$(CONFIG_64BIT),yy)\nkernel/bpf/Makefile:20:obj-$(CONFIG_BPF_SYSCALL) += arena.o range_tree.o\nkernel/bpf/Makefile-21-endif\n--\nkernel/bpf/Makefile=23=ifeq ($(CONFIG_NET),y)\nkernel/bpf/Makefile:24:obj-$(CONFIG_BPF_SYSCALL) += devmap.o\nkernel/bpf/Makefile:25:obj-$(CONFIG_BPF_SYSCALL) += cpumap.o\nkernel/bpf/Makefile:26:obj-$(CONFIG_BPF_SYSCALL) += offload.o\nkernel/bpf/Makefile:27:obj-$(CONFIG_BPF_SYSCALL) += net_namespace.o\nkernel/bpf/Makefile:28:obj-$(CONFIG_BPF_SYSCALL) += tcx.o\nkernel/bpf/Makefile-29-endif\nkernel/bpf/Makefile=30=ifeq ($(CONFIG_PERF_EVENTS),y)\nkernel/bpf/Makefile:31:obj-$(CONFIG_BPF_SYSCALL) += stackmap.o\nkernel/bpf/Makefile-32-endif\nkernel/bpf/Makefile=33=ifeq ($(CONFIG_CGROUPS),y)\nkernel/bpf/Makefile:34:obj-$(CONFIG_BPF_SYSCALL) += cgroup_iter.o bpf_cgrp_storage.o\nkernel/bpf/Makefile-35-endif\n--\nkernel/bpf/Makefile=37=ifeq ($(CONFIG_INET),y)\nkernel/bpf/Makefile:38:obj-$(CONFIG_BPF_SYSCALL) += reuseport_array.o\nkernel/bpf/Makefile-39-endif\n--\nkernel/bpf/Makefile=43=ifeq ($(CONFIG_BPF_JIT),y)\nkernel/bpf/Makefile:44:obj-$(CONFIG_BPF_SYSCALL) += bpf_struct_ops.o\nkernel/bpf/Makefile:45:obj-$(CONFIG_BPF_SYSCALL) += cpumask.o\nkernel/bpf/Makefile-46-# bpf_lsm_proto.o must precede bpf_lsm.o. The current pahole logic\n--\nkernel/bpf/Makefile=58=ifneq ($(CONFIG_CRYPTO),)\nkernel/bpf/Makefile:59:obj-$(CONFIG_BPF_SYSCALL) += crypto.o\nkernel/bpf/Makefile-60-endif\nkernel/bpf/Makefile=61=obj-$(CONFIG_BPF_PRELOAD) += preload/\nkernel/bpf/Makefile-62-\nkernel/bpf/Makefile:63:obj-$(CONFIG_BPF_SYSCALL) += relo_core.o\nkernel/bpf/Makefile:64:obj-$(CONFIG_BPF_SYSCALL) += btf_iter.o\nkernel/bpf/Makefile:65:obj-$(CONFIG_BPF_SYSCALL) += btf_relocate.o\nkernel/bpf/Makefile:66:obj-$(CONFIG_BPF_SYSCALL) += kmem_cache_iter.o\nkernel/bpf/Makefile-67-ifeq ($(CONFIG_DMA_SHARED_BUFFER),y)\nkernel/bpf/Makefile:68:obj-$(CONFIG_BPF_SYSCALL) += dmabuf_iter.o\nkernel/bpf/Makefile-69-endif\n--\nkernel/bpf/core.c=100=struct bpf_prog *bpf_prog_alloc_no_stats(unsigned int size, gfp_t gfp_extra_flags)\n--\nkernel/bpf/core.c-142-\n\n"
} |
| 9/2 | 2026/07/14 04:19 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 27929 output: 22 thoughts: 43 Thoughts: Okay, here's my take on those thoughts, framed as my own: **Investigating BPF Syscall and BTF Dependencies** Alright, so I'm looking at these two kernel configs: `CONFIG_BPF_SYSCALL` and `CONFIG_DEBUG_INFO_BTF`. My immediate thought is, are they related? Specifically, does the BPF syscall functionality *require* BTF (the debugging information)? It's a question of dependencies and optimal configuration. I need to figure out if enabling `CONFIG_DEBUG_INFO_BTF` is strictly necessary when `CONFIG_BPF_SYSCALL` is enabled, or if they are independent or have a more complex relationship. Understanding this connection will allow for better kernel configurations, minimizing the image size and/or avoiding unnecessary overhead. Time to dig in! |
| 10/2 | 2026/07/14 04:19 | tool | grepper |
0mArgs:{
"Expression": "CONFIG_DEBUG_INFO_BTF"
}Results: {
"Output": "Documentation/bpf/bpf_devel_QA.rst=485=discussed in Documentation/bpf/btf.rst - pahole version 1.16\nDocumentation/bpf/bpf_devel_QA.rst:486:is required for kernels built with CONFIG_DEBUG_INFO_BTF=y.\nDocumentation/bpf/bpf_devel_QA.rst-487-pahole is delivered in the dwarves package or can be built\n--\nDocumentation/process/changes.rst=143=pahole\n--\nDocumentation/process/changes.rst-145-\nDocumentation/process/changes.rst:146:Since Linux 5.2, if CONFIG_DEBUG_INFO_BTF is selected, the build system\nDocumentation/process/changes.rst-147-generates BTF (BPF Type Format) from DWARF in vmlinux, a bit later from kernel\n--\nDocumentation/scheduler/sched-ext.rst=35=options should be enabled to use sched_ext:\n--\nDocumentation/scheduler/sched-ext.rst-42- CONFIG_BPF_JIT=y\nDocumentation/scheduler/sched-ext.rst:43: CONFIG_DEBUG_INFO_BTF=y\nDocumentation/scheduler/sched-ext.rst-44- CONFIG_BPF_JIT_ALWAYS_ON=y\n--\nDocumentation/trace/fprobetrace.rst=84=parameters by its name instead of ``$argN``. This feature is available if the\nDocumentation/trace/fprobetrace.rst:85:kernel is configured with CONFIG_BPF_SYSCALL and CONFIG_DEBUG_INFO_BTF.\nDocumentation/trace/fprobetrace.rst-86-If user only specify the BTF argument, the event's argument name is also\n--\nDocumentation/translations/it_IT/process/changes.rst=142=pahole\n--\nDocumentation/translations/it_IT/process/changes.rst-144-\nDocumentation/translations/it_IT/process/changes.rst:145:Dalla versione 5.2, quando viene impostato CONFIG_DEBUG_INFO_BTF, il sistema di\nDocumentation/translations/it_IT/process/changes.rst-146-compilazione genera BTF (BPF Type Format) a partire da DWARF per vmlinux. Più\n--\nDocumentation/translations/pt_BR/process/changes.rst=145=pahole\n--\nDocumentation/translations/pt_BR/process/changes.rst-147-\nDocumentation/translations/pt_BR/process/changes.rst:148:Desde o Linux 5.2, se CONFIG_DEBUG_INFO_BTF estiver selecionado, o sistema de\nDocumentation/translations/pt_BR/process/changes.rst-149-compilação gera BTF (BPF Type Format) a partir do DWARF no vmlinux, e um pouco\n--\nMakefile=1196=include-$(CONFIG_DEBUG_INFO)\t+= scripts/Makefile.debug\nMakefile:1197:include-$(CONFIG_DEBUG_INFO_BTF)+= scripts/Makefile.btf\nMakefile-1198-include-$(CONFIG_KASAN)\t\t+= scripts/Makefile.kasan\n--\nMakefile=1549=ifdef CONFIG_BPF\nMakefile:1550:ifdef CONFIG_DEBUG_INFO_BTF\nMakefile-1551-prepare: tools/bpf/resolve_btfids\n--\nMakefile=1696=endif\n--\nMakefile-1700-\nMakefile:1701:# *.ko are usually independent of vmlinux, but CONFIG_DEBUG_INFO_BTF_MODULES\nMakefile-1702-# is an exception.\nMakefile:1703:ifdef CONFIG_DEBUG_INFO_BTF_MODULES\nMakefile-1704-KBUILD_BUILTIN := y\n--\narch/s390/configs/btf.config-1-# Help: Enable BTF debug info\narch/s390/configs/btf.config:2:CONFIG_DEBUG_INFO_BTF=y\n--\ninclude/asm-generic/vmlinux.lds.h-677- */\ninclude/asm-generic/vmlinux.lds.h:678:#ifdef CONFIG_DEBUG_INFO_BTF\ninclude/asm-generic/vmlinux.lds.h-679-#define BTF\t\t\t\t\t\t\t\t\\\n--\ninclude/linux/btf_ids.h=16=struct btf_id_set8 {\n--\ninclude/linux/btf_ids.h-24-\ninclude/linux/btf_ids.h:25:#ifdef CONFIG_DEBUG_INFO_BTF\ninclude/linux/btf_ids.h-26-\n--\ninclude/linux/btf_ids.h=216=BTF_SET8_END(name)\n--\ninclude/linux/btf_ids.h-234-\ninclude/linux/btf_ids.h:235:#endif /* CONFIG_DEBUG_INFO_BTF */\ninclude/linux/btf_ids.h-236-\n--\ninclude/linux/compiler_types.h-36- */\ninclude/linux/compiler_types.h:37:#if defined(CONFIG_DEBUG_INFO_BTF) \u0026\u0026 defined(CONFIG_PAHOLE_HAS_BTF_TAG) \u0026\u0026 \\\ninclude/linux/compiler_types.h-38-\t__has_attribute(btf_type_tag) \u0026\u0026 !defined(__BINDGEN__)\n--\ninclude/linux/module.h=397=struct module {\n--\ninclude/linux/module.h-503-#endif\ninclude/linux/module.h:504:#ifdef CONFIG_DEBUG_INFO_BTF_MODULES\ninclude/linux/module.h-505-\tunsigned int btf_data_size;\n--\ninclude/net/netfilter/nf_conntrack_bpf.h=9=struct nf_conn___init {\n--\ninclude/net/netfilter/nf_conntrack_bpf.h-12-\ninclude/net/netfilter/nf_conntrack_bpf.h:13:#if (IS_BUILTIN(CONFIG_NF_CONNTRACK) \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF)) || \\\ninclude/net/netfilter/nf_conntrack_bpf.h:14: (IS_MODULE(CONFIG_NF_CONNTRACK) \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF_MODULES))\ninclude/net/netfilter/nf_conntrack_bpf.h-15-\n--\ninclude/net/netfilter/nf_conntrack_bpf.h=26=static inline void cleanup_nf_conntrack_bpf(void)\n--\ninclude/net/netfilter/nf_conntrack_bpf.h-31-\ninclude/net/netfilter/nf_conntrack_bpf.h:32:#if (IS_BUILTIN(CONFIG_NF_NAT) \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF)) || \\\ninclude/net/netfilter/nf_conntrack_bpf.h:33: (IS_MODULE(CONFIG_NF_NAT) \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF_MODULES))\ninclude/net/netfilter/nf_conntrack_bpf.h-34-\n--\ninclude/net/netfilter/nf_flow_table.h=343=unsigned int nf_flow_offload_ipv6_hook(void *priv, struct sk_buff *skb,\n--\ninclude/net/netfilter/nf_flow_table.h-345-\ninclude/net/netfilter/nf_flow_table.h:346:#if (IS_BUILTIN(CONFIG_NF_FLOW_TABLE) \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF)) || \\\ninclude/net/netfilter/nf_flow_table.h:347: (IS_MODULE(CONFIG_NF_FLOW_TABLE) \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF_MODULES))\ninclude/net/netfilter/nf_flow_table.h-348-extern int nf_flow_register_bpf(void);\n--\ninclude/net/xfrm.h=2329=static inline bool xfrm6_local_dontfrag(const struct sock *sk)\n--\ninclude/net/xfrm.h-2343-\ninclude/net/xfrm.h:2344:#if (IS_BUILTIN(CONFIG_XFRM_INTERFACE) \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF)) || \\\ninclude/net/xfrm.h:2345: (IS_MODULE(CONFIG_XFRM_INTERFACE) \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF_MODULES))\ninclude/net/xfrm.h-2346-\n--\ninclude/net/xfrm.h=2353=static inline int register_xfrm_interface_bpf(void)\n--\ninclude/net/xfrm.h-2359-\ninclude/net/xfrm.h:2360:#if IS_ENABLED(CONFIG_DEBUG_INFO_BTF)\ninclude/net/xfrm.h-2361-int register_xfrm_state_bpf(void);\n--\nkernel/bpf/Makefile=40=ifeq ($(CONFIG_SYSFS),y)\nkernel/bpf/Makefile:41:obj-$(CONFIG_DEBUG_INFO_BTF) += sysfs_btf.o\nkernel/bpf/Makefile-42-endif\n--\nkernel/bpf/btf.c=6384=static struct btf *btf_parse_base(struct btf_verifier_env *env, const char *name,\n--\nkernel/bpf/btf.c-6389-\nkernel/bpf/btf.c:6390:\tif (!IS_ENABLED(CONFIG_DEBUG_INFO_BTF))\nkernel/bpf/btf.c-6391-\t\treturn ERR_PTR(-ENOENT);\n--\nkernel/bpf/btf.c=6470=static __u32 btf_relocate_id(const struct btf *btf, __u32 id)\n--\nkernel/bpf/btf.c-6476-\nkernel/bpf/btf.c:6477:#ifdef CONFIG_DEBUG_INFO_BTF_MODULES\nkernel/bpf/btf.c-6478-\nkernel/bpf/btf.c=6479=static struct btf *btf_parse_module(const char *module_name, const void *data,\n--\nkernel/bpf/btf.c-6574-\nkernel/bpf/btf.c:6575:#endif /* CONFIG_DEBUG_INFO_BTF_MODULES */\nkernel/bpf/btf.c-6576-\n--\nkernel/bpf/btf.c=8458=enum {\n--\nkernel/bpf/btf.c-8461-\nkernel/bpf/btf.c:8462:#ifdef CONFIG_DEBUG_INFO_BTF_MODULES\nkernel/bpf/btf.c-8463-struct btf_module {\n--\nkernel/bpf/btf.c=8600=fs_initcall(btf_module_init);\nkernel/bpf/btf.c:8601:#endif /* CONFIG_DEBUG_INFO_BTF_MODULES */\nkernel/bpf/btf.c-8602-\nkernel/bpf/btf.c=8603=struct module *btf_try_get_module(const struct btf *btf)\n--\nkernel/bpf/btf.c-8605-\tstruct module *res = NULL;\nkernel/bpf/btf.c:8606:#ifdef CONFIG_DEBUG_INFO_BTF_MODULES\nkernel/bpf/btf.c-8607-\tstruct btf_module *btf_mod, *tmp;\n--\nkernel/bpf/btf.c=8633=static struct btf *btf_get_module_btf(const struct module *module)\nkernel/bpf/btf.c-8634-{\nkernel/bpf/btf.c:8635:#ifdef CONFIG_DEBUG_INFO_BTF_MODULES\nkernel/bpf/btf.c-8636-\tstruct btf_module *btf_mod, *tmp;\n--\nkernel/bpf/btf.c-8646-\nkernel/bpf/btf.c:8647:#ifdef CONFIG_DEBUG_INFO_BTF_MODULES\nkernel/bpf/btf.c-8648-\tmutex_lock(\u0026btf_module_mutex);\n--\nkernel/bpf/btf.c=8663=static int check_btf_kconfigs(const struct module *module, const char *feature)\nkernel/bpf/btf.c-8664-{\nkernel/bpf/btf.c:8665:\tif (!module \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF)) {\nkernel/bpf/btf.c-8666-\t\tpr_err(\"missing vmlinux BTF, cannot register %s\\n\", feature);\n--\nkernel/bpf/btf.c-8668-\t}\nkernel/bpf/btf.c:8669:\tif (module \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF_MODULES))\nkernel/bpf/btf.c-8670-\t\tpr_warn(\"missing module BTF, cannot register %s\\n\", feature);\n--\nkernel/bpf/btf.c=8810=static int btf_check_kfunc_name(struct btf *btf, const char *func_name, u32 kind)\nkernel/bpf/btf.c-8811-{\nkernel/bpf/btf.c:8812:#ifdef CONFIG_DEBUG_INFO_BTF_MODULES\nkernel/bpf/btf.c-8813-\tstruct btf_module *btf_mod, *tmp;\n--\nkernel/bpf/btf.c-8826-\nkernel/bpf/btf.c:8827:#ifdef CONFIG_DEBUG_INFO_BTF_MODULES\nkernel/bpf/btf.c-8828-\tguard(mutex)(\u0026btf_module_mutex);\n--\nkernel/bpf/btf.c=9475=static struct bpf_cand_cache *populate_cand_cache(struct bpf_cand_cache *cands,\n--\nkernel/bpf/btf.c-9502-\nkernel/bpf/btf.c:9503:#ifdef CONFIG_DEBUG_INFO_BTF_MODULES\nkernel/bpf/btf.c-9504-static void __purge_cand_cache(struct btf *btf, struct bpf_cand_cache **cache,\n--\nkernel/bpf/verifier.c=2677=int bpf_add_kfunc_call(struct bpf_verifier_env *env, u32 func_id, u16 offset)\n--\nkernel/bpf/verifier.c-2692-\t\tif (!btf_vmlinux) {\nkernel/bpf/verifier.c:2693:\t\t\tverbose(env, \"calling kernel function is not supported without CONFIG_DEBUG_INFO_BTF\\n\");\nkernel/bpf/verifier.c-2694-\t\t\treturn -ENOTSUPP;\n--\nkernel/bpf/verifier.c=5886=static int check_ptr_to_map_access(struct bpf_verifier_env *env,\n--\nkernel/bpf/verifier.c-5900-\tif (!btf_vmlinux) {\nkernel/bpf/verifier.c:5901:\t\tverbose(env, \"map_ptr access not supported without CONFIG_DEBUG_INFO_BTF\\n\");\nkernel/bpf/verifier.c-5902-\t\treturn -ENOTSUPP;\n--\nkernel/bpf/verifier.c=17675=static int check_pseudo_btf_id(struct bpf_verifier_env *env,\n--\nkernel/bpf/verifier.c-17691-\t\tif (!btf_vmlinux) {\nkernel/bpf/verifier.c:17692:\t\t\tverbose(env, \"kernel is missing BTF, make sure CONFIG_DEBUG_INFO_BTF=y is specified in Kconfig.\\n\");\nkernel/bpf/verifier.c-17693-\t\t\treturn -EINVAL;\n--\nkernel/bpf/verifier.c=19477=struct btf *bpf_get_btf_vmlinux(void)\nkernel/bpf/verifier.c-19478-{\nkernel/bpf/verifier.c:19479:\tif (!btf_vmlinux \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF)) {\nkernel/bpf/verifier.c-19480-\t\tmutex_lock(\u0026bpf_verifier_lock);\n--\nkernel/module/main.c=2659=static int find_module_sections(struct module *mod, struct load_info *info)\n--\nkernel/module/main.c-2709-#endif\nkernel/module/main.c:2710:#ifdef CONFIG_DEBUG_INFO_BTF_MODULES\nkernel/module/main.c-2711-\tmod-\u003ebtf_data = any_section_objs(info, \".BTF\", 1, \u0026mod-\u003ebtf_data_size);\n--\nkernel/module/main.c=3077=static noinline int do_init_module(struct module *mod)\n--\nkernel/module/main.c-3163-\nkernel/module/main.c:3164:#ifdef CONFIG_DEBUG_INFO_BTF_MODULES\nkernel/module/main.c-3165-\t/* .BTF is not SHF_ALLOC and will get removed, so sanitize pointers */\n--\nkernel/trace/trace.c=4656=trace_event_update_with_eval_map(struct module *mod,\n--\nkernel/trace/trace.c-4663-\tif (len \u003c= 0) {\nkernel/trace/trace.c:4664:\t\tif (!(IS_ENABLED(CONFIG_DEBUG_INFO_BTF) \u0026\u0026\nkernel/trace/trace.c-4665-\t\t IS_ENABLED(CONFIG_PAHOLE_HAS_BTF_TAG) \u0026\u0026\n--\nnet/core/filter.c=6139=static const struct bpf_func_proto bpf_bind_proto = {\n--\nnet/core/filter.c-6149-\nnet/core/filter.c:6150:#if (IS_BUILTIN(CONFIG_XFRM_INTERFACE) \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF)) || \\\nnet/core/filter.c:6151: (IS_MODULE(CONFIG_XFRM_INTERFACE) \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF_MODULES))\nnet/core/filter.c-6152-\n--\nnet/core/filter.c=8595=xdp_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)\n--\nnet/core/filter.c-8651-\nnet/core/filter.c:8652:#if IS_MODULE(CONFIG_NF_CONNTRACK) \u0026\u0026 IS_ENABLED(CONFIG_DEBUG_INFO_BTF_MODULES)\nnet/core/filter.c-8653-\t/* The nf_conn___init type is used in the NF_CONNTRACK kfuncs. The\n--\nnet/netfilter/Makefile=18=ifeq ($(CONFIG_NF_CONNTRACK),m)\nnet/netfilter/Makefile:19:nf_conntrack-$(CONFIG_DEBUG_INFO_BTF_MODULES) += nf_conntrack_bpf.o\nnet/netfilter/Makefile-20-else ifeq ($(CONFIG_NF_CONNTRACK),y)\nnet/netfilter/Makefile:21:nf_conntrack-$(CONFIG_DEBUG_INFO_BTF) += nf_conntrack_bpf.o\nnet/netfilter/Makefile-22-endif\n--\nnet/netfilter/Makefile=65=ifeq ($(CONFIG_NF_NAT),m)\nnet/netfilter/Makefile:66:nf_nat-$(CONFIG_DEBUG_INFO_BTF_MODULES) += nf_nat_bpf.o\nnet/netfilter/Makefile-67-else ifeq ($(CONFIG_NF_NAT),y)\nnet/netfilter/Makefile:68:nf_nat-$(CONFIG_DEBUG_INFO_BTF) += nf_nat_bpf.o\nnet/netfilter/Makefile-69-endif\n--\nnet/netfilter/Makefile=147=ifeq ($(CONFIG_NF_FLOW_TABLE),m)\nnet/netfilter/Makefile:148:nf_flow_table-$(CONFIG_DEBUG_INFO_BTF_MODULES) += nf_flow_table_bpf.o\nnet/netfilter/Makefile-149-else ifeq ($(CONFIG_NF_FLOW_TABLE),y)\nnet/netfilter/Makefile:150:nf_flow_table-$(CONFIG_DEBUG_INFO_BTF) += nf_flow_table_bpf.o\nnet/netfilter/Makefile-151-endif\n--\nnet/xfrm/Makefile=8=ifeq ($(CONFIG_XFRM_INTERFACE),m)\nnet/xfrm/Makefile:9:xfrm_interface-$(CONFIG_DEBUG_INFO_BTF_MODULES) += xfrm_interface_bpf.o\nnet/xfrm/Makefile-10-else ifeq ($(CONFIG_XFRM_INTERFACE),y)\nnet/xfrm/Makefile:11:xfrm_interface-$(CONFIG_DEBUG_INFO_BTF) += xfrm_interface_bpf.o\nnet/xfrm/Makefile-12-endif\n--\nnet/xfrm/Makefile=25=obj-$(CONFIG_XFRM_ESPINTCP) += espintcp.o\nnet/xfrm/Makefile:26:obj-$(CONFIG_DEBUG_INFO_BTF) += xfrm_state_bpf.o\n--\nscripts/Makefile.modfinal=41=quiet_cmd_btf_ko = BTF [M] $@\n--\nscripts/Makefile.modfinal-49-# Re-generate module BTFs if either module's .ko or vmlinux changed\nscripts/Makefile.modfinal:50:%.ko: %.o %.mod.o .module-common.o $(objtree)/scripts/module.lds $(and $(CONFIG_DEBUG_INFO_BTF_MODULES),$(KBUILD_BUILTIN),$(objtree)/vmlinux) FORCE\nscripts/Makefile.modfinal-51-\t+$(call if_changed,ld_ko_o)\nscripts/Makefile.modfinal:52:ifdef CONFIG_DEBUG_INFO_BTF_MODULES\nscripts/Makefile.modfinal-53-\t+$(if $(newer-prereqs),$(call cmd,btf_ko))\n--\nscripts/Makefile.vmlinux=71=vmlinux.unstripped: scripts/link-vmlinux.sh vmlinux.o .vmlinux.export.o $(KBUILD_LDS) FORCE\nscripts/Makefile.vmlinux-72-\t+$(call if_changed_dep,link_vmlinux)\nscripts/Makefile.vmlinux:73:ifdef CONFIG_DEBUG_INFO_BTF\nscripts/Makefile.vmlinux-74-vmlinux.unstripped: $(RESOLVE_BTFIDS) $(srctree)/scripts/gen-btf.sh\n--\nscripts/link-vmlinux.sh=199=fi\nscripts/link-vmlinux.sh-200-\nscripts/link-vmlinux.sh:201:if is_enabled CONFIG_KALLSYMS || is_enabled CONFIG_DEBUG_INFO_BTF; then\nscripts/link-vmlinux.sh-202-\nscripts/link-vmlinux.sh-203-\t# The kallsyms linking does not need debug symbols, but the BTF does.\nscripts/link-vmlinux.sh:204:\tif ! is_enabled CONFIG_DEBUG_INFO_BTF; then\nscripts/link-vmlinux.sh-205-\t\tstrip_debug=1\n--\nscripts/link-vmlinux.sh=209=fi\nscripts/link-vmlinux.sh-210-\nscripts/link-vmlinux.sh:211:if is_enabled CONFIG_DEBUG_INFO_BTF; then\nscripts/link-vmlinux.sh-212-\tinfo BTF .tmp_vmlinux1\n--\nscripts/link-vmlinux.sh-214-\t\techo \u003e\u00262 \"Failed to generate BTF for vmlinux\"\nscripts/link-vmlinux.sh:215:\t\techo \u003e\u00262 \"Try to disable CONFIG_DEBUG_INFO_BTF\"\nscripts/link-vmlinux.sh-216-\t\texit 1\n--\nscripts/link-vmlinux.sh=270=vmlinux_link \"${VMLINUX}\"\nscripts/link-vmlinux.sh-271-\nscripts/link-vmlinux.sh:272:if is_enabled CONFIG_DEBUG_INFO_BTF; then\nscripts/link-vmlinux.sh-273-\tinfo BTFIDS ${VMLINUX}\n--\nscripts/package/install-extmod-build=18=mkdir -p \"${destdir}\"\n--\nscripts/package/install-extmod-build-34-\nscripts/package/install-extmod-build:35:\tif is_enabled CONFIG_DEBUG_INFO_BTF_MODULES; then\nscripts/package/install-extmod-build-36-\t\techo tools/bpf/resolve_btfids/resolve_btfids\n--\ntools/bpf/bpftool/Documentation/bpftool-gen.rst=157=bpftool gen min_core_btf *INPUT* *OUTPUT* *OBJECT* [*OBJECT*...]\n--\ntools/bpf/bpftool/Documentation/bpftool-gen.rst-161-\ntools/bpf/bpftool/Documentation/bpftool-gen.rst:162: When kernels aren't compiled with CONFIG_DEBUG_INFO_BTF, libbpf, when\ntools/bpf/bpftool/Documentation/bpftool-gen.rst-163- loading an eBPF object, has to rely on external BTF files to be able to\n--\ntools/bpf/bpftool/feature.c=328=static void probe_kernel_image_config(const char *define_prefix)\n--\ntools/bpf/bpftool/feature.c-341-\t\t/* Kernel BTF debug information available */\ntools/bpf/bpftool/feature.c:342:\t\t{ \"CONFIG_DEBUG_INFO_BTF\", },\ntools/bpf/bpftool/feature.c-343-\t\t/* Kernel module BTF debug information available */\ntools/bpf/bpftool/feature.c:344:\t\t{ \"CONFIG_DEBUG_INFO_BTF_MODULES\", },\ntools/bpf/bpftool/feature.c-345-\n--\ntools/bpf/bpftool/struct_ops.c=29=static const struct btf *get_btf_vmlinux(void)\n--\ntools/bpf/bpftool/struct_ops.c-35-\tif (!btf_vmlinux)\ntools/bpf/bpftool/struct_ops.c:36:\t\tp_err(\"struct_ops requires kernel CONFIG_DEBUG_INFO_BTF=y\");\ntools/bpf/bpftool/struct_ops.c-37-\n--\ntools/include/linux/btf_ids.h=13=struct btf_id_set8 {\n--\ntools/include/linux/btf_ids.h-21-\ntools/include/linux/btf_ids.h:22:#ifdef CONFIG_DEBUG_INFO_BTF\ntools/include/linux/btf_ids.h-23-\n--\ntools/include/linux/btf_ids.h=156=extern struct btf_id_set name;\n--\ntools/include/linux/btf_ids.h-169-\ntools/include/linux/btf_ids.h:170:#endif /* CONFIG_DEBUG_INFO_BTF */\ntools/include/linux/btf_ids.h-171-\n--\ntools/lib/bpf/btf.c=5773=struct btf *btf__load_vmlinux_btf(void)\n--\ntools/lib/bpf/btf.c-5792-\tif (faccessat(AT_FDCWD, sysfs_btf_path, F_OK, AT_EACCESS) \u003c 0) {\ntools/lib/bpf/btf.c:5793:\t\tpr_warn(\"kernel BTF is missing at '%s', was CONFIG_DEBUG_INFO_BTF enabled?\\n\",\ntools/lib/bpf/btf.c-5794-\t\t\tsysfs_btf_path);\n--\ntools/perf/util/bpf_off_cpu.c=114=static void check_sched_switch_args(void)\n--\ntools/perf/util/bpf_off_cpu.c-120-\tif (!btf) {\ntools/perf/util/bpf_off_cpu.c:121:\t\tpr_debug(\"Missing btf, check if CONFIG_DEBUG_INFO_BTF is enabled\\n\");\ntools/perf/util/bpf_off_cpu.c-122-\t\tgoto cleanup;\n--\ntools/sched_ext/Kconfig=5=CONFIG_BPF_JIT=y\ntools/sched_ext/Kconfig:6:CONFIG_DEBUG_INFO_BTF=y\ntools/sched_ext/Kconfig-7-CONFIG_BPF_JIT_ALWAYS_ON=y\n--\ntools/sched_ext/README.md=59=CONFIG_BPF_JIT=y\ntools/sched_ext/README.md:60:CONFIG_DEBUG_INFO_BTF=y\ntools/sched_ext/README.md-61-CONFIG_BPF_JIT_ALWAYS_ON=y\n--\ntools/testing/selftests/bpf/config=22=CONFIG_DEBUG_INFO=y\ntools/testing/selftests/bpf/config:23:CONFIG_DEBUG_INFO_BTF=y\ntools/testing/selftests/bpf/config-24-CONFIG_DEBUG_INFO_DWARF4=y\n--\ntools/testing/selftests/bpf/prog_tests/resolve_btfids.c-8-#include \u003clinux/kernel.h\u003e\ntools/testing/selftests/bpf/prog_tests/resolve_btfids.c:9:#define CONFIG_DEBUG_INFO_BTF\ntools/testing/selftests/bpf/prog_tests/resolve_btfids.c-10-#include \u003clinux/btf_ids.h\u003e\n--\ntools/testing/selftests/drivers/net/config=1=CONFIG_CONFIGFS_FS=y\ntools/testing/selftests/drivers/net/config:2:CONFIG_DEBUG_INFO_BTF=y\ntools/testing/selftests/drivers/net/config:3:CONFIG_DEBUG_INFO_BTF_MODULES=n\ntools/testing/selftests/drivers/net/config-4-CONFIG_INET_PSP=y\n--\ntools/testing/selftests/ftrace/config=1=CONFIG_BPF_SYSCALL=y\ntools/testing/selftests/ftrace/config:2:CONFIG_DEBUG_INFO_BTF=y\ntools/testing/selftests/ftrace/config-3-CONFIG_DEBUG_INFO_DWARF4=y\n--\ntools/testing/selftests/hid/config=11=CONFIG_CGROUP_BPF=y\ntools/testing/selftests/hid/config:12:CONFIG_DEBUG_INFO_BTF=y\ntools/testing/selftests/hid/config-13-CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS=y\n--\ntools/testing/selftests/net/config=13=CONFIG_CRYPTO_SM4_GENERIC=y\ntools/testing/selftests/net/config:14:CONFIG_DEBUG_INFO_BTF=y\ntools/testing/selftests/net/config:15:CONFIG_DEBUG_INFO_BTF_MODULES=n\ntools/testing/selftests/net/config-16-CONFIG_DUMMY=y\n--\ntools/testing/selftests/sched_ext/config=7=CONFIG_DEBUG_INFO=y\ntools/testing/selftests/sched_ext/config:8:CONFIG_DEBUG_INFO_BTF=y\n"
} |
| 11/2 | 2026/07/14 04:19 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 36233 output: 23 thoughts: 216 Thoughts: **BPF Verifier Enhancement for Implicit Arguments** Okay, so I see this patch is essential and requires `CONFIG_DEBUG_INFO_BTF`, of course. My attention zeroes in on the key symbols: `btf_kfunc_check_flag`, `btf_attach_func_proto`, `bpf_check_attach_target`, and `bpf_check_attach_btf_id_multi`. The changes are concentrated in `kernel/bpf/btf.c` and `kernel/bpf/verifier.c`, which is what I expected. This looks like a functional improvement to the BPF verifier, specifically addressing the handling of `KF_IMPLICIT_ARGS` kfuncs. The patch introduces `btf_kfunc_check_flag` and leverages it within `btf_attach_func_proto`, which makes sense for handling these implicit argument scenarios. Given that it's altering verifier behavior, fuzzing is definitely a priority here. Just to be certain, I want to confirm there aren't any other configuration dependencies. The `kfunc_implicit_args_tracing.c` test case utilizes `bpf_kfunc_implicit_arg`, which is where I should focus next to be certain the implementation is correct. Let me check where `bpf_kfunc_implicit_arg` is defined to verify the test and implementation are aligned. |
| 12/2 | 2026/07/14 04:19 | tool | grepper |
0mArgs:{
"Expression": "bpf_kfunc_implicit_arg"
}Results: {
"Output": "tools/testing/selftests/bpf/progs/kfunc_implicit_args.c-7-\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c:8:extern int bpf_kfunc_implicit_arg(int a) __weak __ksym;\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c:9:extern int bpf_kfunc_implicit_arg_impl(int a, struct bpf_prog_aux *aux) __weak __ksym; /* illegal */\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c:10:extern int bpf_kfunc_implicit_arg_legacy(int a, int b) __weak __ksym;\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c:11:extern int bpf_kfunc_implicit_arg_legacy_impl(int a, int b, struct bpf_prog_aux *aux) __weak __ksym;\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c-12-\n--\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c=17=int test_kfunc_implicit_arg(void *ctx)\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c-18-{\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c:19:\treturn bpf_kfunc_implicit_arg(5);\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c-20-}\n--\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c=22=SEC(\"syscall\")\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c:23:__failure __msg(\"cannot find address for kernel function bpf_kfunc_implicit_arg_impl\")\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c-24-int test_kfunc_implicit_arg_impl_illegal(void *ctx)\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c-25-{\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c:26:\treturn bpf_kfunc_implicit_arg_impl(5, NULL);\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c-27-}\n--\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c=31=int test_kfunc_implicit_arg_legacy(void *ctx)\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c-32-{\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c:33:\treturn bpf_kfunc_implicit_arg_legacy(3, 4);\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c-34-}\n--\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c=38=int test_kfunc_implicit_arg_legacy_impl(void *ctx)\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c-39-{\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c:40:\treturn bpf_kfunc_implicit_arg_legacy_impl(5, 6, NULL);\ntools/testing/selftests/bpf/progs/kfunc_implicit_args.c-41-}\n--\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c-8-\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c:9:extern int bpf_kfunc_implicit_arg(int a) __weak __ksym;\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c-10-\n--\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c=39=__u64 fentry_aux_arg;\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c-40-\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c:41:SEC(\"fentry/bpf_kfunc_implicit_arg\")\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c-42-int BPF_PROG(trace_implicit_arg_fentry)\n--\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c=57=__u64 fexit_aux_arg;\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c-58-\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c:59:SEC(\"fexit/bpf_kfunc_implicit_arg\")\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c-60-int BPF_PROG(trace_implicit_arg_fexit)\n--\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c=74=int trigger_implicit_arg(void *ctx)\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c-75-{\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c:76:\treturn bpf_kfunc_implicit_arg(5);\ntools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c-77-}\n--\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c=1321=__bpf_kfunc int bpf_kfunc_multi_st_ops_test_1_assoc(struct st_ops_args *args, struct bpf_prog_aux *aux);\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c-1322-\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c:1323:__bpf_kfunc int bpf_kfunc_implicit_arg(int a, struct bpf_prog_aux *aux);\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c:1324:__bpf_kfunc int bpf_kfunc_implicit_arg_legacy(int a, int b, struct bpf_prog_aux *aux);\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c:1325:__bpf_kfunc int bpf_kfunc_implicit_arg_legacy_impl(int a, int b, struct bpf_prog_aux *aux);\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c-1326-\n--\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c=1405=BTF_ID_FLAGS(func, bpf_kfunc_multi_st_ops_test_1_assoc, KF_IMPLICIT_ARGS)\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c:1406:BTF_ID_FLAGS(func, bpf_kfunc_implicit_arg, KF_IMPLICIT_ARGS)\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c:1407:BTF_ID_FLAGS(func, bpf_kfunc_implicit_arg_legacy, KF_IMPLICIT_ARGS)\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c:1408:BTF_ID_FLAGS(func, bpf_kfunc_implicit_arg_legacy_impl)\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c-1409-BTF_ID_FLAGS(func, bpf_kfunc_trigger_ctx_check)\n--\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c=1895=int bpf_kfunc_multi_st_ops_test_1_assoc(struct st_ops_args *args, struct bpf_prog_aux *aux)\n--\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c-1906-\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c:1907:int bpf_kfunc_implicit_arg(int a, struct bpf_prog_aux *aux)\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c-1908-{\n--\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c-1913-\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c:1914:int bpf_kfunc_implicit_arg_legacy(int a, int b, struct bpf_prog_aux *aux)\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c-1915-{\n--\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c-1920-\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c:1921:int bpf_kfunc_implicit_arg_legacy_impl(int a, int b, struct bpf_prog_aux *aux)\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c-1922-{\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c:1923:\treturn bpf_kfunc_implicit_arg_legacy(a, b, aux);\ntools/testing/selftests/bpf/test_kmods/bpf_testmod.c-1924-}\n"
} |
| 13/2 | 2026/07/14 04:19 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 39420 output: 158 thoughts: 85 Thoughts: Here's my assessment of the situation: **Functional Patch Evaluation** Okay, the initial impression is positive – the patch looks functional and, crucially, testable. That's the most important first step, really. I need to make sure I can verify it effectively. My focus right now is on understanding its interactions within the broader system. I'm going to pay close attention to the configurations it leverages, specifically `BPF_SYSCALL` and `DEBUG_INFO_BTF`. These are key indicators of its operational context and dependencies. Diving deeper, I'm going to zero in on these symbols: `btf_kfunc_check_flag`, `btf_attach_func_proto`, `bpf_check_attach_target`, and `bpf_check_attach_btf_id_multi`. These are clearly the core functions involved in this specific aspect of BPF functionality. By dissecting their implementation and how they are used within the patch, I can get a true understanding of what is going on and the impact of the changes. Based on this analysis, I'll then move towards setting clear, definitive results – my understanding of the patch's correctness, performance, and any potential side effects. The results will be precise. |
| 14/2 | 2026/07/14 04:19 | tool | set-results |
0mArgs:{
"EnableConfigs": [
"BPF_SYSCALL",
"DEBUG_INFO_BTF"
],
"FocusSymbols": [
"btf_kfunc_check_flag",
"btf_attach_func_proto",
"bpf_check_attach_target",
"bpf_check_attach_btf_id_multi"
],
"Reasoning": "The patch modifies the BPF verifier to correctly resolve the prototype describing a trace target's real ABI for KF_IMPLICIT_ARGS kfuncs. This is a functional change in the BPF verifier and BTF parsing logic, which is reachable and testable via BPF fuzzing.",
"WorthFuzzing": true
}Results: {
"EnableConfigs": [
"BPF_SYSCALL",
"DEBUG_INFO_BTF"
],
"FocusSymbols": [
"btf_kfunc_check_flag",
"btf_attach_func_proto",
"bpf_check_attach_target",
"bpf_check_attach_btf_id_multi"
],
"Reasoning": "The patch modifies the BPF verifier to correctly resolve the prototype describing a trace target's real ABI for KF_IMPLICIT_ARGS kfuncs. This is a functional change in the BPF verifier and BTF parsing logic, which is reachable and testable via BPF fuzzing.",
"WorthFuzzing": true
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|