| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/07/19 14:07 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": [
"BPF_SYSCALL"
],
"FocusSymbols": [
"__queue_map_get",
"__stack_map_get",
"queue_map_peek_elem",
"queue_map_pop_elem",
"stack_map_peek_elem",
"stack_map_pop_elem"
],
"Reasoning": "The patch fixes a potential uninitialized memory leak in BPF queue and stack maps by zeroing out the value buffer when the map lock is busy. This is a functional change in reachable core BPF code.",
"WorthFuzzing": true
} |
| 1/1 | 2026/07/19 14:07 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit c4db2990a22be987a2120d062ca61799d7898e89\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Sun Jul 19 14:07:21 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/kernel/bpf/queue_stack_maps.c b/kernel/bpf/queue_stack_maps.c\nindex 9a5f94371e5065..c1c9dee4dcdd02 100644\n--- a/kernel/bpf/queue_stack_maps.c\n+++ b/kernel/bpf/queue_stack_maps.c\n@@ -99,8 +99,10 @@ static long __queue_map_get(struct bpf_map *map, void *value, bool delete)\n \tint err = 0;\n \tvoid *ptr;\n \n-\tif (raw_res_spin_lock_irqsave(\u0026qs-\u003elock, flags))\n+\tif (raw_res_spin_lock_irqsave(\u0026qs-\u003elock, flags)) {\n+\t\tmemset(value, 0, qs-\u003emap.value_size);\n \t\treturn -EBUSY;\n+\t}\n \n \tif (queue_stack_map_is_empty(qs)) {\n \t\tmemset(value, 0, qs-\u003emap.value_size);\n@@ -130,8 +132,10 @@ static long __stack_map_get(struct bpf_map *map, void *value, bool delete)\n \tvoid *ptr;\n \tu32 index;\n \n-\tif (raw_res_spin_lock_irqsave(\u0026qs-\u003elock, flags))\n+\tif (raw_res_spin_lock_irqsave(\u0026qs-\u003elock, flags)) {\n+\t\tmemset(value, 0, qs-\u003emap.value_size);\n \t\treturn -EBUSY;\n+\t}\n \n \tif (queue_stack_map_is_empty(qs)) {\n \t\tmemset(value, 0, qs-\u003emap.value_size);\n"
} |
| 2/1 | 2026/07/19 14:07 | agent | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: {
"EnableConfigs": [
"BPF_SYSCALL"
],
"FocusSymbols": [
"__queue_map_get",
"__stack_map_get",
"queue_map_peek_elem",
"queue_map_pop_elem",
"stack_map_peek_elem",
"stack_map_pop_elem"
],
"Reasoning": "The patch fixes a potential uninitialized memory leak in BPF queue and stack maps by zeroing out the value buffer when the map lock is busy. This is a functional change in reachable core BPF code.",
"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 c4db2990a22be987a2120d062ca61799d7898e89
Author: syz-cluster <triage@syzkaller.com>
Date: Sun Jul 19 14:07:21 2026 +0000
syz-cluster: applied patch under review
diff --git a/kernel/bpf/queue_stack_maps.c b/kernel/bpf/queue_stack_maps.c
index 9a5f94371e5065..c1c9dee4dcdd02 100644
--- a/kernel/bpf/queue_stack_maps.c
+++ b/kernel/bpf/queue_stack_maps.c
@@ -99,8 +99,10 @@ static long __queue_map_get(struct bpf_map *map, void *value, bool delete)
int err = 0;
void *ptr;
- if (raw_res_spin_lock_irqsave(&qs->lock, flags))
+ if (raw_res_spin_lock_irqsave(&qs->lock, flags)) {
+ memset(value, 0, qs->map.value_size);
return -EBUSY;
+ }
if (queue_stack_map_is_empty(qs)) {
memset(value, 0, qs->map.value_size);
@@ -130,8 +132,10 @@ static long __stack_map_get(struct bpf_map *map, void *value, bool delete)
void *ptr;
u32 index;
- if (raw_res_spin_lock_irqsave(&qs->lock, flags))
+ if (raw_res_spin_lock_irqsave(&qs->lock, flags)) {
+ memset(value, 0, qs->map.value_size);
return -EBUSY;
+ }
if (queue_stack_map_is_empty(qs)) {
memset(value, 0, qs->map.value_size);
|
| 3/2 | 2026/07/19 14:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2068 output: 31 thoughts: 213 Thoughts: **Analyzing a BPF Queue/Stack Map Patch** Okay, so I'm looking at this patch that tweaks `kernel/bpf/queue_stack_maps.c`. The core change is a `memset(value, 0, qs->map.value_size);` call. This gets added inside `__queue_map_get` and `__stack_map_get`, specifically when `raw_res_spin_lock_irqsave` fails and returns `-EBUSY`. My initial impression? This is likely about security and data integrity. We're zeroing out the `value` buffer when the lock is contended. This prevents potentially returning uninitialized memory if there's a lock contention issue in the BPF queue/stack map retrieval functions. I need to confirm my initial hypothesis. Let me verify the functions in question: `__queue_map_get` and `__stack_map_get`. These are fundamental BPF map operations designed for queue and stack maps, which are critical structures. Next, I need to understand the attack surface. Can these operations be triggered by a userspace BPF program? Yes, they're reachable via the BPF syscall. This means that if there *was* an issue with uninitialized memory being returned, it could potentially be exploited from userspace. So, this looks like a functional change – a hardening measure. It's not adding new functionality, but it's making the existing code safer. Now, I need to understand the configuration context for these maps. Let me find the relevant config options. I'll grep for something like `queue_stack_maps.o` in the `kernel/bpf/Makefile` or similar build configuration files. This will give me further context about how these maps are enabled and potentially relevant dependencies. |
| 4/2 | 2026/07/19 14:07 | tool | grepper |
0mArgs:{
"Expression": "queue_stack_maps",
"PathPrefix": "kernel/bpf/Makefile"
}Results: {
"Output": "kernel/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\n--\nkernel/bpf/Makefile=72=CFLAGS_REMOVE_bpf_lru_list.o = $(CC_FLAGS_FTRACE)\nkernel/bpf/Makefile:73:CFLAGS_REMOVE_queue_stack_maps.o = $(CC_FLAGS_FTRACE)\nkernel/bpf/Makefile-74-CFLAGS_REMOVE_lpm_trie.o = $(CC_FLAGS_FTRACE)\n"
} |
| 5/2 | 2026/07/19 14:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2957 output: 38 thoughts: 68 Thoughts: **Analyzing BPF Map Access** Okay, so I'm looking at this code and the core configuration item appears to be `CONFIG_BPF_SYSCALL`. My immediate focus is on the functions `__queue_map_get` and `__stack_map_get`. Ah, right, a quick glance reminds me that those are declared as `static` functions. Static functions... that's interesting. It means they're likely not exposed outside of their current compilation unit. So, the key is to understand *where* these are called internally. Let's trace their usage and figure out the context of these BPF map getters. Time to dig into the call sites. |
| 6/2 | 2026/07/19 14:07 | tool | grepper |
0mArgs:{
"Expression": "__queue_map_get",
"PathPrefix": "kernel/bpf/queue_stack_maps.c"
}Results: {
"Output": "kernel/bpf/queue_stack_maps.c=88=static void queue_stack_map_free(struct bpf_map *map)\n--\nkernel/bpf/queue_stack_maps.c-94-\nkernel/bpf/queue_stack_maps.c:95:static long __queue_map_get(struct bpf_map *map, void *value, bool delete)\nkernel/bpf/queue_stack_maps.c-96-{\n--\nkernel/bpf/queue_stack_maps.c=162=static long queue_map_peek_elem(struct bpf_map *map, void *value)\nkernel/bpf/queue_stack_maps.c-163-{\nkernel/bpf/queue_stack_maps.c:164:\treturn __queue_map_get(map, value, false);\nkernel/bpf/queue_stack_maps.c-165-}\n--\nkernel/bpf/queue_stack_maps.c=174=static long queue_map_pop_elem(struct bpf_map *map, void *value)\nkernel/bpf/queue_stack_maps.c-175-{\nkernel/bpf/queue_stack_maps.c:176:\treturn __queue_map_get(map, value, true);\nkernel/bpf/queue_stack_maps.c-177-}\n"
} |
| 7/2 | 2026/07/19 14:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3553 output: 39 thoughts: 76 Thoughts: Okay, let's break this down. **Diving into the Map Operations** Right, so I need to focus on these map operations: `queue_map_peek_elem`, `queue_map_pop_elem`, `stack_map_peek_elem`, and `stack_map_pop_elem`. Got it. These are the core functions for interacting with the map structures in this context. To understand how they're behaving, I should probably zero in on the queue implementations. I think I'll start by examining `queue_map_peek_elem` and `queue_map_pop_elem` within the `queue_stack_maps.c` file. That seems like the logical first step to understand their behavior. |
| 8/2 | 2026/07/19 14:07 | tool | grepper |
0mArgs:{
"Expression": "queue_map_peek_elem",
"PathPrefix": "kernel/bpf/queue_stack_maps.c"
}Results: {
"Output": "kernel/bpf/queue_stack_maps.c=127=static long __stack_map_get(struct bpf_map *map, void *value, bool delete)\n--\nkernel/bpf/queue_stack_maps.c-161-/* Called from syscall or from eBPF program */\nkernel/bpf/queue_stack_maps.c:162:static long queue_map_peek_elem(struct bpf_map *map, void *value)\nkernel/bpf/queue_stack_maps.c-163-{\n--\nkernel/bpf/queue_stack_maps.c=262=const struct bpf_map_ops queue_map_ops = {\n--\nkernel/bpf/queue_stack_maps.c-271-\t.map_pop_elem = queue_map_pop_elem,\nkernel/bpf/queue_stack_maps.c:272:\t.map_peek_elem = queue_map_peek_elem,\nkernel/bpf/queue_stack_maps.c-273-\t.map_get_next_key = queue_stack_map_get_next_key,\n"
} |
| 9/2 | 2026/07/19 14:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 4113 output: 39 thoughts: 219 Thoughts: Okay, here's my thinking process laid out: **Focusing on Key Operations** Alright, I need to pinpoint the critical functions here. Initially, I was thinking the key focus symbols should be `queue_map_peek_elem`, `queue_map_pop_elem`, `stack_map_peek_elem`, and `stack_map_pop_elem`. These are the functions directly involved in interacting with the data structures. But wait... Hmm, I'm reconsidering. I see that `__queue_map_get` and `__stack_map_get` are static, and they're the ones being *modified* internally. Should I list them directly as the focus, or their callers instead? Listing the callers, which are the `map_ops` functions, seems more practical, since they're the public interface. Then again, I *could* focus on `__queue_map_get` and `__stack_map_get` directly. Let me check if `__queue_map_get` is being inlined. Since it's static, it's very likely to be, which would make tracing it a bit different. Ultimately, I'll go with the original choice and just list `queue_map_peek_elem`, `queue_map_pop_elem`, `stack_map_peek_elem`, and `stack_map_pop_elem`. That covers the important interactions. Now, let me verify the functions involving the stack implementation, namely `stack_map_peek_elem` and `stack_map_pop_elem`. |
| 10/2 | 2026/07/19 14:07 | tool | grepper |
0mArgs:{
"Expression": "stack_map_peek_elem",
"PathPrefix": "kernel/bpf/queue_stack_maps.c"
}Results: {
"Output": "kernel/bpf/queue_stack_maps.c=162=static long queue_map_peek_elem(struct bpf_map *map, void *value)\n--\nkernel/bpf/queue_stack_maps.c-167-/* Called from syscall or from eBPF program */\nkernel/bpf/queue_stack_maps.c:168:static long stack_map_peek_elem(struct bpf_map *map, void *value)\nkernel/bpf/queue_stack_maps.c-169-{\n--\nkernel/bpf/queue_stack_maps.c=278=const struct bpf_map_ops stack_map_ops = {\n--\nkernel/bpf/queue_stack_maps.c-287-\t.map_pop_elem = stack_map_pop_elem,\nkernel/bpf/queue_stack_maps.c:288:\t.map_peek_elem = stack_map_peek_elem,\nkernel/bpf/queue_stack_maps.c-289-\t.map_get_next_key = queue_stack_map_get_next_key,\n"
} |
| 11/2 | 2026/07/19 14:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 4995 output: 138 thoughts: 167 Thoughts: **My Assessment of the BPF Patch** Okay, so I've looked this over and yes, I'm confident that this is a legitimate issue and that the proposed patch addresses it effectively. The core configuration point, based on what I'm seeing, is `BPF_SYSCALL`. The patch itself looks functional; it's zeroing out memory when the lock is busy, which is a solid technique for preventing information leaks in those BPF queue and stack map operations. That's good, that's what we need. It's a functional fix, and it touches core BPF functionality, so the risk/reward is there for fuzzing. WorthFuzzing is definitely true on this one. Specifically, I'll be keeping a close eye on these symbols for this fuzzing effort: `__queue_map_get`, `__stack_map_get`, `queue_map_peek_elem`, `queue_map_pop_elem`, `stack_map_peek_elem`, and `stack_map_pop_elem`. These are all prime targets related to the issue the patch is fixing. Essentially, the patch zeroes out the value buffer when the map lock is contended. This should prevent uninitialized memory reads in BPF queue and stack maps. It's a reachable code path, so that's a good thing. I'm satisfied. |
| 12/2 | 2026/07/19 14:07 | tool | set-results |
0mArgs:{
"EnableConfigs": [
"BPF_SYSCALL"
],
"FocusSymbols": [
"__queue_map_get",
"__stack_map_get",
"queue_map_peek_elem",
"queue_map_pop_elem",
"stack_map_peek_elem",
"stack_map_pop_elem"
],
"Reasoning": "The patch fixes a potential uninitialized memory leak in BPF queue and stack maps by zeroing out the value buffer when the map lock is busy. This is a functional change in reachable core BPF code.",
"WorthFuzzing": true
}Results: {
"EnableConfigs": [
"BPF_SYSCALL"
],
"FocusSymbols": [
"__queue_map_get",
"__stack_map_get",
"queue_map_peek_elem",
"queue_map_pop_elem",
"stack_map_peek_elem",
"stack_map_pop_elem"
],
"Reasoning": "The patch fixes a potential uninitialized memory leak in BPF queue and stack maps by zeroing out the value buffer when the map lock is busy. This is a functional change in reachable core BPF code.",
"WorthFuzzing": true
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|