AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/11/05 09:43 flow patch-triage
2m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "KMSANReasoning": "",
  "NeedsKMSAN": false,
  "Reasoning": "The patch exclusively modifies user-space code within tools/bpf/bpftool/ (specifically bpftool documentation, Makefile, and JIT disassembler logic). These changes do not affect the compiled kernel image (vmlinux) or kernel modules, and are outside the scope of syzkaller kernel fuzzing.",
  "WorthFuzzing": false
}

1/1 2026/11/05 09:43 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit 8747b458a1aacc7e7c35ec51809f57f696c1bcce\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Thu Nov 5 09:43:00 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/tools/bpf/bpftool/Documentation/common_options.rst b/tools/bpf/bpftool/Documentation/common_options.rst\nindex 9234b9dab76825..b00fff6195e51a 100644\n--- a/tools/bpf/bpftool/Documentation/common_options.rst\n+++ b/tools/bpf/bpftool/Documentation/common_options.rst\n@@ -6,10 +6,12 @@\n -V, --version\n     Print bpftool's version number (similar to **bpftool version**), the number\n     of the libbpf version in use, and optional features that were included when\n-    bpftool was compiled. Optional features include linking against LLVM or\n-    libbfd to provide the disassembler for JIT-ted programs (**bpftool prog\n-    dump jited**) and usage of BPF skeletons (some features like **bpftool prog\n-    profile** or showing pids associated to BPF objects may rely on it).\n+    bpftool was compiled. Optional features include LLVM or libbfd to provide\n+    the disassembler for JIT-ted programs (**bpftool prog dump jited**) and\n+    usage of BPF skeletons (some features like **bpftool prog profile** or\n+    showing pids associated to BPF objects may rely on it). A shared libLLVM\n+    is only loaded to disassemble JIT-ted programs, so \"llvm\" is listed even\n+    if it is not installed.\n \n -j, --json\n     Generate JSON output. For commands that cannot produce JSON, this option\ndiff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile\nindex b0f7168e794329..49dabf2eded04d 100644\n--- a/tools/bpf/bpftool/Makefile\n+++ b/tools/bpf/bpftool/Makefile\n@@ -186,10 +186,24 @@ ifeq ($(HAS_LLVM),1)\n   # Makefile includes lib.mk which sets -D_GNU_SOURCE) which would cause\n   # compilation error due to redefinition. Let's filter it out here.\n   CFLAGS  += $(filter-out -D_GNU_SOURCE,$(shell $(LLVM_CONFIG) --cflags))\n-  LIBS    += $(shell $(LLVM_CONFIG) --libs $(LLVM_CONFIG_LIB_COMPONENTS))\n+  LIBLLVM_SO := $(shell $(LLVM_CONFIG) --libfiles $(LLVM_CONFIG_LIB_COMPONENTS))\n   ifeq ($(shell $(LLVM_CONFIG) --shared-mode),static)\n+    LIBS += $(shell $(LLVM_CONFIG) --libs $(LLVM_CONFIG_LIB_COMPONENTS))\n     LIBS += $(shell $(LLVM_CONFIG) --system-libs $(LLVM_CONFIG_LIB_COMPONENTS))\n     LIBS += -lstdc++\n+  else ifeq ($(words $(LIBLLVM_SO)),1)\n+    # Don't link with libLLVM.so. \"prog dump jited\" loads it with dlopen(),\n+    # under the name the linker would put in DT_NEEDED.\n+    LIBLLVM_SONAME := $(shell LC_ALL=C $(READELF) -d $(LIBLLVM_SO) | sed -nE \\\n+\t's/.*\\(SONAME\\).*\\[(.*)\\]/\\1/p')\n+    ifeq ($(LIBLLVM_SONAME),)\n+      $(error Cannot read the soname of $(LIBLLVM_SO))\n+    endif\n+    CFLAGS += -DLIBLLVM_SO='\"$(LIBLLVM_SONAME)\"'\n+    LIBS += -ldl\n+  else\n+    # LLVM built with BUILD_SHARED_LIBS=ON, one library per component\n+    LIBS += $(shell $(LLVM_CONFIG) --libs $(LLVM_CONFIG_LIB_COMPONENTS))\n   endif\n   LDFLAGS += $(shell $(LLVM_CONFIG) --ldflags)\n else\ndiff --git a/tools/bpf/bpftool/jit_disasm.c b/tools/bpf/bpftool/jit_disasm.c\nindex 04541155e9ccc4..2c646626e25605 100644\n--- a/tools/bpf/bpftool/jit_disasm.c\n+++ b/tools/bpf/bpftool/jit_disasm.c\n@@ -25,6 +25,7 @@\n #include \u003cbpf/libbpf.h\u003e\n \n #ifdef HAVE_LLVM_SUPPORT\n+#include \u003cdlfcn.h\u003e\n #include \u003cllvm-c/Core.h\u003e\n #include \u003cllvm-c/Disassembler.h\u003e\n #include \u003cllvm-c/Target.h\u003e\n@@ -47,6 +48,89 @@ static int oper_count;\n \n typedef LLVMDisasmContextRef disasm_ctx_t;\n \n+#ifdef LIBLLVM_SO\n+/*\n+ * libLLVM.so is big and only \"prog dump jited\" needs it. bpftool is not linked\n+ * with it. disasm_init() loads it.\n+ */\n+#define LLVM_FUNCS(F)\t\t\t\\\n+\tF(LLVMCreateDisasm)\t\t\\\n+\tF(LLVMCreateDisasmCPUFeatures)\t\\\n+\tF(LLVMDisasmDispose)\t\t\\\n+\tF(LLVMDisasmInstruction)\t\\\n+\tF(LLVMDisposeMessage)\t\t\\\n+\tF(LLVMGetDefaultTargetTriple)\t\\\n+\tF(LLVMNormalizeTargetTriple)\n+\n+#define F(fn) static __typeof__(\u0026fn) p_##fn;\n+LLVM_FUNCS(F)\n+#undef F\n+\n+static const struct {\n+\tconst char *name;\n+\tvoid *ptr;\n+} llvm_funcs[] = {\n+#define F(fn) { #fn, \u0026p_##fn },\n+\tLLVM_FUNCS(F)\n+#undef F\n+};\n+\n+/* The functions that LLVMInitializeAll*() in llvm-c/Target.h call */\n+static const char * const llvm_init_funcs[] = {\n+#define LLVM_TARGET(t)\t\"LLVMInitialize\" #t \"TargetInfo\",\t\\\n+\t\t\t\"LLVMInitialize\" #t \"TargetMC\",\n+#include \u003cllvm/Config/Targets.def\u003e\n+#define LLVM_DISASSEMBLER(t) \"LLVMInitialize\" #t \"Disassembler\",\n+#include \u003cllvm/Config/Disassemblers.def\u003e\n+};\n+\n+#define LLVMCreateDisasm\t\tp_LLVMCreateDisasm\n+#define LLVMCreateDisasmCPUFeatures\tp_LLVMCreateDisasmCPUFeatures\n+#define LLVMDisasmDispose\t\tp_LLVMDisasmDispose\n+#define LLVMDisasmInstruction\t\tp_LLVMDisasmInstruction\n+#define LLVMDisposeMessage\t\tp_LLVMDisposeMessage\n+#define LLVMGetDefaultTargetTriple\tp_LLVMGetDefaultTargetTriple\n+#define LLVMNormalizeTargetTriple\tp_LLVMNormalizeTargetTriple\n+\n+static void *llvm_sym(void *lib, const char *name)\n+{\n+\tvoid *sym = dlsym(lib, name);\n+\n+\tif (!sym)\n+\t\tp_err(\"%s is not in %s\", name, LIBLLVM_SO);\n+\treturn sym;\n+}\n+\n+int disasm_init(void)\n+{\n+\tvoid (*init)(void);\n+\tvoid *lib, *sym;\n+\tsize_t i;\n+\n+\tlib = dlopen(LIBLLVM_SO, RTLD_NOW);\n+\tif (!lib) {\n+\t\tp_err(\"failed to load %s: %s\", LIBLLVM_SO,\n+\t\t      dlerror() ?: \"unknown error\");\n+\t\treturn -1;\n+\t}\n+\n+\tfor (i = 0; i \u003c ARRAY_SIZE(llvm_funcs); i++) {\n+\t\tsym = llvm_sym(lib, llvm_funcs[i].name);\n+\t\tif (!sym)\n+\t\t\treturn -1;\n+\t\t*(void **)llvm_funcs[i].ptr = sym;\n+\t}\n+\n+\tfor (i = 0; i \u003c ARRAY_SIZE(llvm_init_funcs); i++) {\n+\t\tinit = llvm_sym(lib, llvm_init_funcs[i]);\n+\t\tif (!init)\n+\t\t\treturn -1;\n+\t\tinit();\n+\t}\n+\treturn 0;\n+}\n+#endif /* LIBLLVM_SO */\n+\n static int printf_json(char *s)\n {\n \ts = strtok(s, \" \\t\");\n@@ -115,7 +199,7 @@ init_context(disasm_ctx_t *ctx, const char *arch,\n \n static void destroy_context(disasm_ctx_t *ctx)\n {\n-\tLLVMDisposeMessage(*ctx);\n+\tLLVMDisasmDispose(*ctx);\n }\n \n static int\n@@ -135,6 +219,7 @@ disassemble_insn(disasm_ctx_t *ctx, unsigned char *image, ssize_t len, int pc,\n \treturn count;\n }\n \n+#ifndef LIBLLVM_SO\n int disasm_init(void)\n {\n \tLLVMInitializeAllTargetInfos();\n@@ -142,6 +227,7 @@ int disasm_init(void)\n \tLLVMInitializeAllDisassemblers();\n \treturn 0;\n }\n+#endif\n #endif /* HAVE_LLVM_SUPPORT */\n \n #ifdef HAVE_LIBBFD_SUPPORT\ndiff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c\nindex 43599c79c93ac1..15efc6eebffb1b 100644\n--- a/tools/bpf/bpftool/prog.c\n+++ b/tools/bpf/bpftool/prog.c\n@@ -894,8 +894,6 @@ static int do_dump(int argc, char **argv)\n \tint err = -1;\n \n \tif (is_prefix(*argv, \"jited\")) {\n-\t\tif (disasm_init())\n-\t\t\treturn -1;\n \t\tmode = DUMP_JITED;\n \t} else if (is_prefix(*argv, \"xlated\")) {\n \t\tmode = DUMP_XLATED;\n@@ -959,6 +957,8 @@ static int do_dump(int argc, char **argv)\n \t\tp_err(\"'visual' is not compatible with JSON output\");\n \t\tgoto exit_close;\n \t}\n+\tif (mode == DUMP_JITED \u0026\u0026 !filepath \u0026\u0026 disasm_init())\n+\t\tgoto exit_close;\n \n \tif (json_output \u0026\u0026 nb_fds \u003e 1)\n \t\tjsonw_start_array(json_wtr);\t/* root array */\n"
}

2/1 2026/11/05 09:43 agent patch-evaluator
2m Model:
core

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch exclusively modifies user-space code within tools/bpf/bpftool/ (specifically bpftool documentation, Makefile, and JIT disassembler logic). These changes do not affect the compiled kernel image (vmlinux) or kernel modules, and are outside the scope of syzkaller kernel fuzzing.",
  "WorthFuzzing": false
}

Instruction:
You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.

================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.

- REACHABILITY IS THE PRIMARY GATE:
  Fuzzing can only discover bugs in code that can actually execute in standard virtualized
  environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
  If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
  regardless of whether it adds assertions or complex logic.

- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
  Patch authors routinely label changes as "cleanups", "refactorings", or state
  "No functional change intended". Do NOT take these claims at face value.
  Code refactorings that rearrange logic, introduce helper functions, or alter state management
  in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
  If reachable executable code is modified or refactored, it MUST be fuzzed.

- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
  When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
  BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
  Even if the author believes the invariant always holds, fuzzing is essential to verify whether
  an unusual sequence of operations can violate it.

================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:

- Non-kernel and non-executable changes:
  * Modifications to Documentation/, comments, or spelling fixes.
  * User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
    that do not affect the compiled kernel image (vmlinux) or kernel modules.
  * Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
    that do not alter control flow or data structures.
  * Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
  * Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
    ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
  * Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
    physical PCI hot-unplug or manual sysfs driver unbinding.
  * Code paths exclusive to architectures other than the target architecture.

================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
  * Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
    BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
  * Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
  * Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
  * Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).

================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:

- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
  Do NOT list generic, ubiquitous functions called by almost every program in the corpus
  (including, but not limited to: general memory allocators and deallocators, page fault
  and trap handlers, or core synchronization primitives; this is not an exhaustive list).
  Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
  which severely dilutes fuzzing effort away from the actual changes.

- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
  List functions that specifically implement the logic being added or altered, or direct API entrypoints
  for the subsystem feature under review.

- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
  Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
  distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
  If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
  functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).

================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any '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:
Target architecture: amd64

For your convenience, here is the diff of the changes:
commit 8747b458a1aacc7e7c35ec51809f57f696c1bcce
Author: syz-cluster <triage@syzkaller.com>
Date:   Thu Nov 5 09:43:00 2026 +0000

    syz-cluster: applied patch under review

diff --git a/tools/bpf/bpftool/Documentation/common_options.rst b/tools/bpf/bpftool/Documentation/common_options.rst
index 9234b9dab76825..b00fff6195e51a 100644
--- a/tools/bpf/bpftool/Documentation/common_options.rst
+++ b/tools/bpf/bpftool/Documentation/common_options.rst
@@ -6,10 +6,12 @@
 -V, --version
     Print bpftool's version number (similar to **bpftool version**), the number
     of the libbpf version in use, and optional features that were included when
-    bpftool was compiled. Optional features include linking against LLVM or
-    libbfd to provide the disassembler for JIT-ted programs (**bpftool prog
-    dump jited**) and usage of BPF skeletons (some features like **bpftool prog
-    profile** or showing pids associated to BPF objects may rely on it).
+    bpftool was compiled. Optional features include LLVM or libbfd to provide
+    the disassembler for JIT-ted programs (**bpftool prog dump jited**) and
+    usage of BPF skeletons (some features like **bpftool prog profile** or
+    showing pids associated to BPF objects may rely on it). A shared libLLVM
+    is only loaded to disassemble JIT-ted programs, so "llvm" is listed even
+    if it is not installed.
 
 -j, --json
     Generate JSON output. For commands that cannot produce JSON, this option
diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile
index b0f7168e794329..49dabf2eded04d 100644
--- a/tools/bpf/bpftool/Makefile
+++ b/tools/bpf/bpftool/Makefile
@@ -186,10 +186,24 @@ ifeq ($(HAS_LLVM),1)
   # Makefile includes lib.mk which sets -D_GNU_SOURCE) which would cause
   # compilation error due to redefinition. Let's filter it out here.
   CFLAGS  += $(filter-out -D_GNU_SOURCE,$(shell $(LLVM_CONFIG) --cflags))
-  LIBS    += $(shell $(LLVM_CONFIG) --libs $(LLVM_CONFIG_LIB_COMPONENTS))
+  LIBLLVM_SO := $(shell $(LLVM_CONFIG) --libfiles $(LLVM_CONFIG_LIB_COMPONENTS))
   ifeq ($(shell $(LLVM_CONFIG) --shared-mode),static)
+    LIBS += $(shell $(LLVM_CONFIG) --libs $(LLVM_CONFIG_LIB_COMPONENTS))
     LIBS += $(shell $(LLVM_CONFIG) --system-libs $(LLVM_CONFIG_LIB_COMPONENTS))
     LIBS += -lstdc++
+  else ifeq ($(words $(LIBLLVM_SO)),1)
+    # Don't link with libLLVM.so. "prog dump jited" loads it with dlopen(),
+    # under the name the linker would put in DT_NEEDED.
+    LIBLLVM_SONAME := $(shell LC_ALL=C $(READELF) -d $(LIBLLVM_SO) | sed -nE \
+	's/.*\(SONAME\).*\[(.*)\]/\1/p')
+    ifeq ($(LIBLLVM_SONAME),)
+      $(error Cannot read the soname of $(LIBLLVM_SO))
+    endif
+    CFLAGS += -DLIBLLVM_SO='"$(LIBLLVM_SONAME)"'
+    LIBS += -ldl
+  else
+    # LLVM built with BUILD_SHARED_LIBS=ON, one library per component
+    LIBS += $(shell $(LLVM_CONFIG) --libs $(LLVM_CONFIG_LIB_COMPONENTS))
   endif
   LDFLAGS += $(shell $(LLVM_CONFIG) --ldflags)
 else
diff --git a/tools/bpf/bpftool/jit_disasm.c b/tools/bpf/bpftool/jit_disasm.c
index 04541155e9ccc4..2c646626e25605 100644
--- a/tools/bpf/bpftool/jit_disasm.c
+++ b/tools/bpf/bpftool/jit_disasm.c
@@ -25,6 +25,7 @@
 #include <bpf/libbpf.h>
 
 #ifdef HAVE_LLVM_SUPPORT
+#include <dlfcn.h>
 #include <llvm-c/Core.h>
 #include <llvm-c/Disassembler.h>
 #include <llvm-c/Target.h>
@@ -47,6 +48,89 @@ static int oper_count;
 
 typedef LLVMDisasmContextRef disasm_ctx_t;
 
+#ifdef LIBLLVM_SO
+/*
+ * libLLVM.so is big and only "prog dump jited" needs it. bpftool is not linked
+ * with it. disasm_init() loads it.
+ */
+#define LLVM_FUNCS(F)			\
+	F(LLVMCreateDisasm)		\
+	F(LLVMCreateDisasmCPUFeatures)	\
+	F(LLVMDisasmDispose)		\
+	F(LLVMDisasmInstruction)	\
+	F(LLVMDisposeMessage)		\
+	F(LLVMGetDefaultTargetTriple)	\
+	F(LLVMNormalizeTargetTriple)
+
+#define F(fn) static __typeof__(&fn) p_##fn;
+LLVM_FUNCS(F)
+#undef F
+
+static const struct {
+	const char *name;
+	void *ptr;
+} llvm_funcs[] = {
+#define F(fn) { #fn, &p_##fn },
+	LLVM_FUNCS(F)
+#undef F
+};
+
+/* The functions that LLVMInitializeAll*() in llvm-c/Target.h call */
+static const char * const llvm_init_funcs[] = {
+#define LLVM_TARGET(t)	"LLVMInitialize" #t "TargetInfo",	\
+			"LLVMInitialize" #t "TargetMC",
+#include <llvm/Config/Targets.def>
+#define LLVM_DISASSEMBLER(t) "LLVMInitialize" #t "Disassembler",
+#include <llvm/Config/Disassemblers.def>
+};
+
+#define LLVMCreateDisasm		p_LLVMCreateDisasm
+#define LLVMCreateDisasmCPUFeatures	p_LLVMCreateDisasmCPUFeatures
+#define LLVMDisasmDispose		p_LLVMDisasmDispose
+#define LLVMDisasmInstruction		p_LLVMDisasmInstruction
+#define LLVMDisposeMessage		p_LLVMDisposeMessage
+#define LLVMGetDefaultTargetTriple	p_LLVMGetDefaultTargetTriple
+#define LLVMNormalizeTargetTriple	p_LLVMNormalizeTargetTriple
+
+static void *llvm_sym(void *lib, const char *name)
+{
+	void *sym = dlsym(lib, name);
+
+	if (!sym)
+		p_err("%s is not in %s", name, LIBLLVM_SO);
+	return sym;
+}
+
+int disasm_init(void)
+{
+	void (*init)(void);
+	void *lib, *sym;
+	size_t i;
+
+	lib = dlopen(LIBLLVM_SO, RTLD_NOW);
+	if (!lib) {
+		p_err("failed to load %s: %s", LIBLLVM_SO,
+		      dlerror() ?: "unknown error");
+		return -1;
+	}
+
+	for (i = 0; i < ARRAY_SIZE(llvm_funcs); i++) {
+		sym = llvm_sym(lib, llvm_funcs[i].name);
+		if (!sym)
+			return -1;
+		*(void **)llvm_funcs[i].ptr = sym;
+	}
+
+	for (i = 0; i < ARRAY_SIZE(llvm_init_funcs); i++) {
+		init = llvm_sym(lib, llvm_init_funcs[i]);
+		if (!init)
+			return -1;
+		init();
+	}
+	return 0;
+}
+#endif /* LIBLLVM_SO */
+
 static int printf_json(char *s)
 {
 	s = strtok(s, " \t");
@@ -115,7 +199,7 @@ init_context(disasm_ctx_t *ctx, const char *arch,
 
 static void destroy_context(disasm_ctx_t *ctx)
 {
-	LLVMDisposeMessage(*ctx);
+	LLVMDisasmDispose(*ctx);
 }
 
 static int
@@ -135,6 +219,7 @@ disassemble_insn(disasm_ctx_t *ctx, unsigned char *image, ssize_t len, int pc,
 	return count;
 }
 
+#ifndef LIBLLVM_SO
 int disasm_init(void)
 {
 	LLVMInitializeAllTargetInfos();
@@ -142,6 +227,7 @@ int disasm_init(void)
 	LLVMInitializeAllDisassemblers();
 	return 0;
 }
+#endif
 #endif /* HAVE_LLVM_SUPPORT */
 
 #ifdef HAVE_LIBBFD_SUPPORT
diff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c
index 43599c79c93ac1..15efc6eebffb1b 100644
--- a/tools/bpf/bpftool/prog.c
+++ b/tools/bpf/bpftool/prog.c
@@ -894,8 +894,6 @@ static int do_dump(int argc, char **argv)
 	int err = -1;
 
 	if (is_prefix(*argv, "jited")) {
-		if (disasm_init())
-			return -1;
 		mode = DUMP_JITED;
 	} else if (is_prefix(*argv, "xlated")) {
 		mode = DUMP_XLATED;
@@ -959,6 +957,8 @@ static int do_dump(int argc, char **argv)
 		p_err("'visual' is not compatible with JSON output");
 		goto exit_close;
 	}
+	if (mode == DUMP_JITED && !filepath && disasm_init())
+		goto exit_close;
 
 	if (json_output && nb_fds > 1)
 		jsonw_start_array(json_wtr);	/* root array */

3/2 2026/11/05 09:43 llm patch-evaluator
2m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 5470
							output: 97
							thoughts: 809
						

Thoughts:
**Patch Series Evaluation: WorthFuzzing=false**

Okay, let's take a look at this patch series. My initial thought is to examine the `diff` and identify the scope of the modifications. Ah, looks like it's touching: `tools/bpf/bpftool/Documentation/common_options.rst`, `tools/bpf/bpftool/Makefile`, `tools/bpf/bpftool/jit_disasm.c`, and `tools/bpf/bpftool/prog.c`.

Right, that's all contained within `tools/bpf/bpftool/`. Now, let me quickly run through the core triage guidelines to see if this triggers any negative criteria. Specifically, I'm looking for conditions where we *don't* need to fuzz.

Ah, here it is: "User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/) that do not affect the compiled kernel image (vmlinux) or kernel modules." Bingo! The modified files are all under `tools/bpf/bpftool/`, and `tools/` is definitely a user-space directory. This is a userspace tool, not core kernel code.

Let's do a final quick sanity check to make *absolutely* sure there aren't any sneaky changes outside of `tools/bpf/bpftool/`. Yep, the `diff` confirms that it's *only* those four files.

Therefore, the modified code *strictly* falls into that "negative criteria" category. The patch modifies user-space files for bpftool - documentation, build Makefile, and userspace C files for bpftool's JIT disassembler. These changes are outside the compiled kernel image (vmlinux) and kernel modules, and do not affect kernel runtime execution. It's clearly a `WorthFuzzing=false` situation.

So, let's set the results: `WorthFuzzing=false`. The reasoning is straightforward: The patch touches only userspace code under `tools/bpf/bpftool/` (documentation, build Makefile, and userspace C files for bpftool's JIT disassembler). These changes are outside the compiled kernel image (vmlinux) and kernel modules, and do not affect kernel runtime execution. Therefore, this patch does not warrant kernel fuzzing with syzkaller. No need for any specific focus symbols or enabled configurations here. Time to call `set-results`.



4/2 2026/11/05 09:45 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch exclusively modifies user-space code within tools/bpf/bpftool/ (specifically bpftool documentation, Makefile, and JIT disassembler logic). These changes do not affect the compiled kernel image (vmlinux) or kernel modules, and are outside the scope of syzkaller kernel fuzzing.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch exclusively modifies user-space code within tools/bpf/bpftool/ (specifically bpftool documentation, Makefile, and JIT disassembler logic). These changes do not affect the compiled kernel image (vmlinux) or kernel modules, and are outside the scope of syzkaller kernel fuzzing.",
  "WorthFuzzing": false
}

5/1 2026/11/05 09:45 action If
0m Args:
{
  "WorthFuzzing": false
}

Results:
null

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)