| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/08/13 22:33 | flow | patch-triage |
1mArgs:null Results: {
"EnableConfigs": [
"XDP_SOCKETS"
],
"FocusSymbols": [
"xsk_generic_rcv",
"__xsk_map_redirect"
],
"KMSANReasoning": "The patch modifies `__xsk_rcv` in `net/xdp/xsk.c` to pre-allocate all required XDP buffers before copying data into them. This prevents partial packet processing and potential memory leaks or list corruption if an allocation fails midway through a multi-buffer packet. The patch also adds a safety check to ensure the buffer's list node is empty before adding it to the temporary list. These changes address memory management and list integrity issues (which are effectively caught by KASAN and list debugging), and do not introduce or expose any uninitialized memory risks or info-leaks that would require KMSAN.",
"NeedsKMSAN": false,
"Reasoning": "The patch modifies the AF_XDP receive path to pre-allocate all necessary buffers for multi-buffer packets, preventing partial packet delivery on OOM. This is a functional change in reachable core network logic.",
"WorthFuzzing": true
} |
| 1/1 | 2026/08/13 22:33 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 6cb2090242dfa701e557c827cad1d32884f84cb0\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Thu Aug 13 22:33:32 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/net/xdp/xsk.c b/net/xdp/xsk.c\nindex 7855ee09c4b64..33475b180ea6f 100644\n--- a/net/xdp/xsk.c\n+++ b/net/xdp/xsk.c\n@@ -298,9 +298,11 @@ static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)\n \tu32 frame_size = __xsk_pool_get_rx_frame_size(xs-\u003epool);\n \tvoid *copy_from = xsk_copy_xdp_start(xdp), *copy_to;\n \tu32 from_len, meta_len, rem, num_desc;\n-\tstruct xdp_buff_xsk *xskb;\n+\tstruct xdp_buff_xsk *xskb, *tmp;\n \tstruct xdp_buff *xsk_xdp;\n+\tLIST_HEAD(xsk_buffs);\n \tskb_frag_t *frag;\n+\tu32 i;\n \n \tfrom_len = xdp-\u003edata_end - copy_from;\n \tmeta_len = xdp-\u003edata - copy_from;\n@@ -343,23 +345,45 @@ static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)\n \t\tfrag = \u0026sinfo-\u003efrags[0];\n \t}\n \n+\tfor (i = 0; i \u003c num_desc; i++) {\n+\t\txsk_xdp = xsk_buff_alloc(xs-\u003epool);\n+\t\tif (!xsk_xdp)\n+\t\t\tgoto err_alloc;\n+\n+\t\txskb = container_of(xsk_xdp, struct xdp_buff_xsk, xdp);\n+\t\tif (unlikely(!list_empty(\u0026xskb-\u003elist_node)))\n+\t\t\tgoto err_alloc;\n+\n+\t\tlist_add_tail(\u0026xskb-\u003elist_node, \u0026xsk_buffs);\n+\t}\n+\n \tdo {\n \t\tu32 to_len = frame_size + meta_len;\n \t\tu32 copied;\n \n-\t\txsk_xdp = xsk_buff_alloc(xs-\u003epool);\n+\t\txskb = list_first_entry(\u0026xsk_buffs, struct xdp_buff_xsk,\n+\t\t\t\t\tlist_node);\n+\t\tlist_del_init(\u0026xskb-\u003elist_node);\n+\t\txsk_xdp = \u0026xskb-\u003exdp;\n \t\tcopy_to = xsk_xdp-\u003edata - meta_len;\n \n \t\tcopied = xsk_copy_xdp(copy_to, \u0026copy_from, to_len, \u0026from_len, \u0026frag, rem);\n \t\trem -= copied;\n \n-\t\txskb = container_of(xsk_xdp, struct xdp_buff_xsk, xdp);\n \t\t__xsk_rcv_zc_safe(xs, xskb, copied - meta_len,\n \t\t\t\t rem ? XDP_PKT_CONTD : 0);\n \t\tmeta_len = 0;\n \t} while (rem);\n \n \treturn 0;\n+\n+err_alloc:\n+\tlist_for_each_entry_safe(xskb, tmp, \u0026xsk_buffs, list_node) {\n+\t\tlist_del_init(\u0026xskb-\u003elist_node);\n+\t\txsk_buff_free(\u0026xskb-\u003exdp);\n+\t}\n+\txs-\u003erx_dropped++;\n+\treturn -ENOMEM;\n }\n \n static bool xsk_tx_writeable(struct xdp_sock *xs)\n"
} |
| 2/1 | 2026/08/13 22:33 | agent | patch-evaluator |
0mModel:best-expensive Args: null Results: {
"EnableConfigs": [
"XDP_SOCKETS"
],
"FocusSymbols": [
"xsk_generic_rcv",
"__xsk_map_redirect"
],
"Reasoning": "The patch modifies the AF_XDP receive path to pre-allocate all necessary buffers for multi-buffer packets, preventing partial packet delivery on OOM. This is a functional change in reachable core network logic.",
"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). - Code in vendor-specific PCIe switch, SmartNIC, or GPU drivers (e.g., mlxsw, pds_core, qed, ionic, amdgpu) that require physical PCIe hardware cards not emulated in standard QEMU. - Driver .remove, .shutdown, or pci_unregister_driver teardown callbacks (e.g., igb_remove) that are executed only during PCI hot-unplug or sysfs driver unbind operations. 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. Prefer non-static, non-inlined API entrypoint functions over internal static helper functions (which are inlined by the compiler and do not have distinct symbol addresses). 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. Also check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed for Kbuild to compile the code statically into vmlinux. 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 6cb2090242dfa701e557c827cad1d32884f84cb0
Author: syz-cluster <triage@syzkaller.com>
Date: Thu Aug 13 22:33:32 2026 +0000
syz-cluster: applied patch under review
diff --git a/net/xdp/xsk.c b/net/xdp/xsk.c
index 7855ee09c4b64..33475b180ea6f 100644
--- a/net/xdp/xsk.c
+++ b/net/xdp/xsk.c
@@ -298,9 +298,11 @@ static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)
u32 frame_size = __xsk_pool_get_rx_frame_size(xs->pool);
void *copy_from = xsk_copy_xdp_start(xdp), *copy_to;
u32 from_len, meta_len, rem, num_desc;
- struct xdp_buff_xsk *xskb;
+ struct xdp_buff_xsk *xskb, *tmp;
struct xdp_buff *xsk_xdp;
+ LIST_HEAD(xsk_buffs);
skb_frag_t *frag;
+ u32 i;
from_len = xdp->data_end - copy_from;
meta_len = xdp->data - copy_from;
@@ -343,23 +345,45 @@ static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)
frag = &sinfo->frags[0];
}
+ for (i = 0; i < num_desc; i++) {
+ xsk_xdp = xsk_buff_alloc(xs->pool);
+ if (!xsk_xdp)
+ goto err_alloc;
+
+ xskb = container_of(xsk_xdp, struct xdp_buff_xsk, xdp);
+ if (unlikely(!list_empty(&xskb->list_node)))
+ goto err_alloc;
+
+ list_add_tail(&xskb->list_node, &xsk_buffs);
+ }
+
do {
u32 to_len = frame_size + meta_len;
u32 copied;
- xsk_xdp = xsk_buff_alloc(xs->pool);
+ xskb = list_first_entry(&xsk_buffs, struct xdp_buff_xsk,
+ list_node);
+ list_del_init(&xskb->list_node);
+ xsk_xdp = &xskb->xdp;
copy_to = xsk_xdp->data - meta_len;
copied = xsk_copy_xdp(copy_to, ©_from, to_len, &from_len, &frag, rem);
rem -= copied;
- xskb = container_of(xsk_xdp, struct xdp_buff_xsk, xdp);
__xsk_rcv_zc_safe(xs, xskb, copied - meta_len,
rem ? XDP_PKT_CONTD : 0);
meta_len = 0;
} while (rem);
return 0;
+
+err_alloc:
+ list_for_each_entry_safe(xskb, tmp, &xsk_buffs, list_node) {
+ list_del_init(&xskb->list_node);
+ xsk_buff_free(&xskb->xdp);
+ }
+ xs->rx_dropped++;
+ return -ENOMEM;
}
static bool xsk_tx_writeable(struct xdp_sock *xs)
|
| 3/2 | 2026/08/13 22:33 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2731 output: 35 thoughts: 144 Thoughts: **Analyzing the XDP Socket Buffer Allocation Optimization** Okay, so I'm looking at this patch that tweaks `net/xdp/xsk.c`, specifically the `__xsk_rcv` function. It seems like the core change is in how `xsk_buff_alloc` is being handled. Instead of potentially having to deal with partial allocations – where some buffers succeed but others fail – this patch implements a pre-allocation strategy. I'm seeing that it's looping through and grabbing all the necessary buffers upfront, adding them to this `xsk_buffs` list. That's a clever way to ensure we have everything we need *before* we even start processing. And the safety net is clear: if *any* of those buffer allocations fail during that pre-allocation step, the code immediately frees all the buffers it *did* manage to get and returns `-ENOMEM`. No partial, potentially corrupted, data, which is exactly what we want to avoid. This prevents the messy situation of having a packet partially allocated, processed, and then truncated or dropped. Good thinking, I have seen it a thousand times, and is worth the overhead! Now, let's just make sure I understand the scope of the change. `__xsk_rcv` is an internal function, right? So, let's find the entry points to make sure my understanding of this change is complete. It might affect performance, but more likely it is an edge case that needs to be properly handled. |
| 4/2 | 2026/08/13 22:33 | tool | grepper |
0mArgs:{
"Expression": "__xsk_rcv",
"PathPrefix": "net/xdp/xsk.c"
}Results: {
"Output": "net/xdp/xsk.c=165=int xsk_reg_pool_at_qid(struct net_device *dev, struct xsk_buff_pool *pool,\n--\nnet/xdp/xsk.c-190-\nnet/xdp/xsk.c:191:static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff_xsk *xskb, u32 len,\nnet/xdp/xsk.c-192-\t\t\tu32 flags)\n--\nnet/xdp/xsk.c-207-\nnet/xdp/xsk.c:208:static void __xsk_rcv_zc_safe(struct xdp_sock *xs, struct xdp_buff_xsk *xskb,\nnet/xdp/xsk.c-209-\t\t\t u32 len, u32 flags)\n--\nnet/xdp/xsk.c=219=static int xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)\n--\nnet/xdp/xsk.c-229-\tif (likely(!frags)) {\nnet/xdp/xsk.c:230:\t\terr = __xsk_rcv_zc(xs, xskb, len, contd);\nnet/xdp/xsk.c-231-\t\tif (err)\n--\nnet/xdp/xsk.c-243-\nnet/xdp/xsk.c:244:\t__xsk_rcv_zc_safe(xs, xskb, len, contd);\nnet/xdp/xsk.c-245-\txskb_list = \u0026xskb-\u003epool-\u003exskb_list;\n--\nnet/xdp/xsk.c-249-\t\tlen = pos-\u003exdp.data_end - pos-\u003exdp.data;\nnet/xdp/xsk.c:250:\t\t__xsk_rcv_zc_safe(xs, pos, len, contd);\nnet/xdp/xsk.c-251-\t\tlist_del_init(\u0026pos-\u003elist_node);\n--\nnet/xdp/xsk.c=268=static u32 xsk_copy_xdp(void *to, void **from, u32 to_len,\n--\nnet/xdp/xsk.c-295-\nnet/xdp/xsk.c:296:static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)\nnet/xdp/xsk.c-297-{\n--\nnet/xdp/xsk.c-320-\t\txskb = container_of(xsk_xdp, struct xdp_buff_xsk, xdp);\nnet/xdp/xsk.c:321:\t\terr = __xsk_rcv_zc(xs, xskb, len, 0);\nnet/xdp/xsk.c-322-\t\tif (err) {\n--\nnet/xdp/xsk.c-372-\nnet/xdp/xsk.c:373:\t\t__xsk_rcv_zc_safe(xs, xskb, copied - meta_len,\nnet/xdp/xsk.c-374-\t\t\t\t rem ? XDP_PKT_CONTD : 0);\n--\nnet/xdp/xsk.c=461=int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp)\n--\nnet/xdp/xsk.c-468-\t\tspin_lock_bh(\u0026xs-\u003epool-\u003erx_lock);\nnet/xdp/xsk.c:469:\t\terr = __xsk_rcv(xs, xdp, len);\nnet/xdp/xsk.c-470-\t\txsk_flush(xs);\n--\nnet/xdp/xsk.c=477=static int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp)\n--\nnet/xdp/xsk.c-490-\nnet/xdp/xsk.c:491:\terr = __xsk_rcv(xs, xdp, len);\nnet/xdp/xsk.c-492-\tif (!err)\n"
} |
| 5/2 | 2026/08/13 22:33 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 4343 output: 38 thoughts: 54 Thoughts: Okay, here's my understanding, formatted as requested: **Tracing the Receive Path in XDP Sockets** Alright, so I'm digging into how data actually gets received with XDP sockets. I see `__xsk_rcv` is the core receive function, and that makes sense – it's probably the workhorse. The next logical step, as always, is to figure out where the calls originate. I need to know the calling functions, which are `xsk_generic_rcv` and `xsk_rcv`. With those two, I can reconstruct the whole receive path and get a solid grasp of the data flow. Let's see how those functions are called and get to the bottom of the receive process. |
| 6/2 | 2026/08/13 22:33 | tool | grepper |
0mArgs:{
"Expression": "xsk_generic_rcv|xsk_rcv",
"PathPrefix": "net/xdp/"
}Results: {
"Output": "net/xdp/xsk.c=165=int xsk_reg_pool_at_qid(struct net_device *dev, struct xsk_buff_pool *pool,\n--\nnet/xdp/xsk.c-190-\nnet/xdp/xsk.c:191:static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff_xsk *xskb, u32 len,\nnet/xdp/xsk.c-192-\t\t\tu32 flags)\n--\nnet/xdp/xsk.c-207-\nnet/xdp/xsk.c:208:static void __xsk_rcv_zc_safe(struct xdp_sock *xs, struct xdp_buff_xsk *xskb,\nnet/xdp/xsk.c-209-\t\t\t u32 len, u32 flags)\n--\nnet/xdp/xsk.c-218-\nnet/xdp/xsk.c:219:static int xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)\nnet/xdp/xsk.c-220-{\n--\nnet/xdp/xsk.c-229-\tif (likely(!frags)) {\nnet/xdp/xsk.c:230:\t\terr = __xsk_rcv_zc(xs, xskb, len, contd);\nnet/xdp/xsk.c-231-\t\tif (err)\n--\nnet/xdp/xsk.c-243-\nnet/xdp/xsk.c:244:\t__xsk_rcv_zc_safe(xs, xskb, len, contd);\nnet/xdp/xsk.c-245-\txskb_list = \u0026xskb-\u003epool-\u003exskb_list;\n--\nnet/xdp/xsk.c-249-\t\tlen = pos-\u003exdp.data_end - pos-\u003exdp.data;\nnet/xdp/xsk.c:250:\t\t__xsk_rcv_zc_safe(xs, pos, len, contd);\nnet/xdp/xsk.c-251-\t\tlist_del_init(\u0026pos-\u003elist_node);\n--\nnet/xdp/xsk.c=268=static u32 xsk_copy_xdp(void *to, void **from, u32 to_len,\n--\nnet/xdp/xsk.c-295-\nnet/xdp/xsk.c:296:static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)\nnet/xdp/xsk.c-297-{\n--\nnet/xdp/xsk.c-320-\t\txskb = container_of(xsk_xdp, struct xdp_buff_xsk, xdp);\nnet/xdp/xsk.c:321:\t\terr = __xsk_rcv_zc(xs, xskb, len, 0);\nnet/xdp/xsk.c-322-\t\tif (err) {\n--\nnet/xdp/xsk.c-372-\nnet/xdp/xsk.c:373:\t\t__xsk_rcv_zc_safe(xs, xskb, copied - meta_len,\nnet/xdp/xsk.c-374-\t\t\t\t rem ? XDP_PKT_CONTD : 0);\n--\nnet/xdp/xsk.c=414=static bool xsk_dev_queue_valid(const struct xdp_sock *xs,\n--\nnet/xdp/xsk.c-438-\nnet/xdp/xsk.c:439:static int xsk_rcv_check(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)\nnet/xdp/xsk.c-440-{\n--\nnet/xdp/xsk.c=454=static void xsk_flush(struct xdp_sock *xs)\n--\nnet/xdp/xsk.c-460-\nnet/xdp/xsk.c:461:int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp)\nnet/xdp/xsk.c-462-{\n--\nnet/xdp/xsk.c-465-\nnet/xdp/xsk.c:466:\terr = xsk_rcv_check(xs, xdp, len);\nnet/xdp/xsk.c-467-\tif (!err) {\nnet/xdp/xsk.c-468-\t\tspin_lock_bh(\u0026xs-\u003epool-\u003erx_lock);\nnet/xdp/xsk.c:469:\t\terr = __xsk_rcv(xs, xdp, len);\nnet/xdp/xsk.c-470-\t\txsk_flush(xs);\n--\nnet/xdp/xsk.c-476-\nnet/xdp/xsk.c:477:static int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp)\nnet/xdp/xsk.c-478-{\n--\nnet/xdp/xsk.c-481-\nnet/xdp/xsk.c:482:\terr = xsk_rcv_check(xs, xdp, len);\nnet/xdp/xsk.c-483-\tif (err)\n--\nnet/xdp/xsk.c-487-\t\tlen = xdp-\u003edata_end - xdp-\u003edata;\nnet/xdp/xsk.c:488:\t\treturn xsk_rcv_zc(xs, xdp, len);\nnet/xdp/xsk.c-489-\t}\nnet/xdp/xsk.c-490-\nnet/xdp/xsk.c:491:\terr = __xsk_rcv(xs, xdp, len);\nnet/xdp/xsk.c-492-\tif (!err)\n--\nnet/xdp/xsk.c=497=int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp)\n--\nnet/xdp/xsk.c-500-\nnet/xdp/xsk.c:501:\terr = xsk_rcv(xs, xdp);\nnet/xdp/xsk.c-502-\tif (err)\n"
} |
| 7/2 | 2026/08/13 22:33 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 6272 output: 35 thoughts: 61 Thoughts: **Analyzing the XSK Data Flow** Okay, so it looks like `xsk_generic_rcv` is getting its hooks into other parts of the system, meaning it's either an exported function or being utilized elsewhere. Interesting. And `xsk_rcv` is definitely a key part of the puzzle, because `__xsk_map_redirect` calls it. Given the relationship between `xsk_generic_rcv` and `__xsk_map_redirect`, I need to double-check the usage of both of these functions to trace the flow of data and understand exactly how XSK packets are handled, and by what function, and when. Gotta get a clear picture of how those redirects are happening and how `xsk_generic_rcv` fits into the mix. I'll need to dig into `__xsk_map_redirect` and `xsk_generic_rcv` directly. |
| 8/2 | 2026/08/13 22:33 | tool | grepper |
0mArgs:{
"Expression": "xsk_generic_rcv|__xsk_map_redirect",
"PathPrefix": ""
}Results: {
"Output": "include/net/xdp_sock.h=117=struct xsk_tx_metadata_ops {\n--\ninclude/net/xdp_sock.h-125-\ninclude/net/xdp_sock.h:126:int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp);\ninclude/net/xdp_sock.h:127:int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp);\ninclude/net/xdp_sock.h-128-void __xsk_map_flush(struct list_head *flush_list);\n--\ninclude/net/xdp_sock.h=166=static inline void xsk_tx_metadata_complete(struct xsk_tx_metadata_compl *compl,\n--\ninclude/net/xdp_sock.h-179-\ninclude/net/xdp_sock.h:180:static inline int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp)\ninclude/net/xdp_sock.h-181-{\n--\ninclude/net/xdp_sock.h-184-\ninclude/net/xdp_sock.h:185:static inline int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp)\ninclude/net/xdp_sock.h-186-{\n--\nnet/core/filter.c=4498=static inline int __xdp_do_redirect_xsk(struct bpf_redirect_info *ri,\n--\nnet/core/filter.c-4510-\nnet/core/filter.c:4511:\terr = __xsk_map_redirect(fwd, xdp);\nnet/core/filter.c-4512-\tif (unlikely(err))\n--\nnet/core/filter.c=4621=static int xdp_do_generic_redirect_map(struct net_device *dev,\n--\nnet/core/filter.c-4656-\tcase BPF_MAP_TYPE_XSKMAP:\nnet/core/filter.c:4657:\t\terr = xsk_generic_rcv(fwd, xdp);\nnet/core/filter.c-4658-\t\tif (err)\n--\nnet/xdp/xsk.c=454=static void xsk_flush(struct xdp_sock *xs)\n--\nnet/xdp/xsk.c-460-\nnet/xdp/xsk.c:461:int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp)\nnet/xdp/xsk.c-462-{\n--\nnet/xdp/xsk.c=477=static int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp)\n--\nnet/xdp/xsk.c-496-\nnet/xdp/xsk.c:497:int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp)\nnet/xdp/xsk.c-498-{\n"
} |
| 9/2 | 2026/08/13 22:33 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 7380 output: 37 thoughts: 342 Thoughts: **My Analysis of the XDP/AF_XDP Multi-Buffer Receive Path Modification** Okay, so this patch is touching the AF_XDP socket receive path, specifically dealing with multi-buffer XDP packets. My initial thought is to trace the execution path. From what I'm understanding, the key entry point is `__xsk_rcv`, which is reached through `xsk_generic_rcv` and `__xsk_map_redirect`. These, in turn, are called from `xdp_do_generic_redirect_map` and `__xdp_do_redirect_xsk` respectively – classic XDP redirect to XSKMAP functionality. I know this is heavily exercised in virtualization, so any change here needs careful scrutiny. This seems like a functional change – preventing partial packet delivery on OOM. It's working within the loop `for (i = 0; i < num_desc; i++)` to handle those multi-buffer packets. Let's nail down the critical symbols. We're modifying the static function `__xsk_rcv`. `xsk_generic_rcv` and `__xsk_map_redirect` are the direct callers. While `xsk_rcv` is static, it's called by `__xsk_map_redirect`. So, those two, along with `xdp_do_generic_redirect_map` and `__xdp_do_redirect_xsk` (or perhaps `xdp_do_redirect` and `xdp_do_generic_redirect` since it's inline) are my primary focus points. I should probably check `net/core/filter.c` for any additional callers of `__xdp_do_redirect_xsk` just to be thorough. |
| 10/2 | 2026/08/13 22:33 | tool | grepper |
0mArgs:{
"Expression": "__xdp_do_redirect_xsk",
"PathPrefix": "net/core/filter.c"
}Results: {
"Output": "net/core/filter.c=4496=EXPORT_SYMBOL_GPL(xdp_master_redirect);\nnet/core/filter.c-4497-\nnet/core/filter.c:4498:static inline int __xdp_do_redirect_xsk(struct bpf_redirect_info *ri,\nnet/core/filter.c-4499-\t\t\t\t\tconst struct net_device *dev,\n--\nnet/core/filter.c=4593=int xdp_do_redirect(struct net_device *dev, struct xdp_buff *xdp,\n--\nnet/core/filter.c-4599-\tif (map_type == BPF_MAP_TYPE_XSKMAP)\nnet/core/filter.c:4600:\t\treturn __xdp_do_redirect_xsk(ri, dev, xdp, xdp_prog);\nnet/core/filter.c-4601-\n--\nnet/core/filter.c=4607=int xdp_do_redirect_frame(struct net_device *dev, struct xdp_buff *xdp,\n--\nnet/core/filter.c-4614-\tif (map_type == BPF_MAP_TYPE_XSKMAP)\nnet/core/filter.c:4615:\t\treturn __xdp_do_redirect_xsk(ri, dev, xdp, xdp_prog);\nnet/core/filter.c-4616-\n"
} |
| 11/2 | 2026/08/13 22:33 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 8515 output: 26 thoughts: 132 Thoughts: **XDP and AF_XDP Function Exploration** Okay, so I'm looking into XDP redirection, and it seems like `xdp_do_redirect`, `xdp_do_redirect_frame`, and `xdp_do_generic_redirect_map` are the broad XDP functions to keep an eye on. However, these are generic XDP functionalities. What I'm really after are the AF_XDP-specific details. From my knowledge, I'd say I need to focus on `xsk_generic_rcv` and `__xsk_map_redirect` because they seem more relevant to the AF_XDP implementation. I wonder if there are more XSK functions which are useful to consider. Since I know the patch is in `net/xdp/xsk.c`, let me double-check the configuration options. Right, AF_XDP is, as expected, governed by `CONFIG_XDP_SOCKETS`. |
| 12/2 | 2026/08/13 22:34 | tool | grepper |
0mArgs:{
"Expression": "config XDP_SOCKETS",
"PathPrefix": ""
}Results: {
"Output": "net/xdp/Kconfig-1-# SPDX-License-Identifier: GPL-2.0-only\nnet/xdp/Kconfig:2:config XDP_SOCKETS\nnet/xdp/Kconfig-3-\tbool \"XDP sockets\"\n--\nnet/xdp/Kconfig-9-\nnet/xdp/Kconfig:10:config XDP_SOCKETS_DIAG\nnet/xdp/Kconfig-11-\ttristate \"XDP sockets: monitoring interface\"\n"
} |
| 13/2 | 2026/08/13 22:34 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 9008 output: 33 thoughts: 23 Thoughts: Here's my summary, as though I were thinking through the process: **XDP_SOCKETS Dependency Check** Okay, so I need to figure out the dependencies for `XDP_SOCKETS`. Best place to start is always the Kconfig file. Let me navigate to `net/xdp/Kconfig`. That's where all the configuration options for XDP, including this one, are defined. I'm expecting to find what other features or kernel settings need to be enabled before `XDP_SOCKETS` becomes available. This is crucial for understanding how to properly configure and use this feature in the broader context of the system. I'm looking for direct dependencies, obviously, but also for indirect ones that are set or unset based on certain other configurations. This will help with troubleshooting and knowing what to expect from this feature and others around it. Let's see what Kconfig reveals. |
| 14/2 | 2026/08/13 22:34 | tool | read-file |
0mArgs:{
"File": "net/xdp/Kconfig",
"FirstLine": 1,
"LineCount": 20
}Results: {
"Contents": " 1:\t# SPDX-License-Identifier: GPL-2.0-only\n 2:\tconfig XDP_SOCKETS\n 3:\t\tbool \"XDP sockets\"\n 4:\t\tdepends on BPF_SYSCALL\n 5:\t\tdefault n\n 6:\t\thelp\n 7:\t\t XDP sockets allows a channel between XDP programs and\n 8:\t\t userspace applications.\n 9:\t\n 10:\tconfig XDP_SOCKETS_DIAG\n 11:\t\ttristate \"XDP sockets: monitoring interface\"\n 12:\t\tdepends on XDP_SOCKETS\n 13:\t\tdefault n\n 14:\t\thelp\n 15:\t\t Support for PF_XDP sockets monitoring interface used by the ss tool.\n 16:\t\t If unsure, say Y.\n"
} |
| 15/2 | 2026/08/13 22:34 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 9460 output: 43 thoughts: 59 Thoughts: Okay, here's my take on those thoughts, framed as my own mental processing as an expert: **XDP Socket Enablement Considerations** Alright, so the relationship is clear: `XDP_SOCKETS` hinges on `BPF_SYSCALL`. No surprises there. Therefore, enabling `XDP_SOCKETS` is the next logical step. Now, before I jump into that, I need to take a quick look at the codebase. Specifically, I'm thinking about the `net/xdp/xsk.c` file. I need to quickly identify if there are any other exported functions or non-static functions within that file. I am interested in this because these would be external points of contact with the subsystem. I need to understand the wider context to fully appreciate the implications of enabling `XDP_SOCKETS`. I can then consider other potential side effects on other subsystems. That quick scan will help me avoid any potential build issues or unexpected behavior. Time to delve a bit deeper into the code. |
| 16/2 | 2026/08/13 22:34 | tool | grepper |
0mArgs:{
"Expression": "^[a-zA-Z_].* xsk_.*\\(",
"PathPrefix": "net/xdp/xsk.c"
}Results: {
"Output": "net/xdp/xsk.c=49=static struct kmem_cache *xsk_tx_generic_cache;\nnet/xdp/xsk.c-50-\nnet/xdp/xsk.c:51:void xsk_set_rx_need_wakeup(struct xsk_buff_pool *pool)\nnet/xdp/xsk.c-52-{\n--\nnet/xdp/xsk.c=59=EXPORT_SYMBOL(xsk_set_rx_need_wakeup);\nnet/xdp/xsk.c-60-\nnet/xdp/xsk.c:61:void xsk_set_tx_need_wakeup(struct xsk_buff_pool *pool)\nnet/xdp/xsk.c-62-{\n--\nnet/xdp/xsk.c=76=EXPORT_SYMBOL(xsk_set_tx_need_wakeup);\nnet/xdp/xsk.c-77-\nnet/xdp/xsk.c:78:void xsk_clear_rx_need_wakeup(struct xsk_buff_pool *pool)\nnet/xdp/xsk.c-79-{\n--\nnet/xdp/xsk.c=86=EXPORT_SYMBOL(xsk_clear_rx_need_wakeup);\nnet/xdp/xsk.c-87-\nnet/xdp/xsk.c:88:void xsk_clear_tx_need_wakeup(struct xsk_buff_pool *pool)\nnet/xdp/xsk.c-89-{\n--\nnet/xdp/xsk.c=103=EXPORT_SYMBOL(xsk_clear_tx_need_wakeup);\nnet/xdp/xsk.c-104-\nnet/xdp/xsk.c:105:bool xsk_uses_need_wakeup(struct xsk_buff_pool *pool)\nnet/xdp/xsk.c-106-{\n--\nnet/xdp/xsk.c=109=EXPORT_SYMBOL(xsk_uses_need_wakeup);\nnet/xdp/xsk.c-110-\nnet/xdp/xsk.c:111:struct xsk_buff_pool *xsk_get_pool_from_qid(struct net_device *dev,\nnet/xdp/xsk.c-112-\t\t\t\t\t u16 queue_id)\n--\nnet/xdp/xsk.c=123=static void __xsk_clear_pool_at_qid(struct net_device *dev, u16 queue_id)\n--\nnet/xdp/xsk.c-130-\nnet/xdp/xsk.c:131:void xsk_clear_pool_at_qid(struct net_device *dev, u16 queue_id)\nnet/xdp/xsk.c-132-{\n--\nnet/xdp/xsk.c=147=static int __xsk_reg_pool_at_qid(struct net_device *dev,\n--\nnet/xdp/xsk.c-164- */\nnet/xdp/xsk.c:165:int xsk_reg_pool_at_qid(struct net_device *dev, struct xsk_buff_pool *pool,\nnet/xdp/xsk.c-166-\t\t\tu16 queue_id)\n--\nnet/xdp/xsk.c=208=static void __xsk_rcv_zc_safe(struct xdp_sock *xs, struct xdp_buff_xsk *xskb,\n--\nnet/xdp/xsk.c-218-\nnet/xdp/xsk.c:219:static int xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)\nnet/xdp/xsk.c-220-{\n--\nnet/xdp/xsk.c=260=static void *xsk_copy_xdp_start(struct xdp_buff *from)\n--\nnet/xdp/xsk.c-267-\nnet/xdp/xsk.c:268:static u32 xsk_copy_xdp(void *to, void **from, u32 to_len,\nnet/xdp/xsk.c-269-\t\t\tu32 *from_len, skb_frag_t **frag, u32 rem)\n--\nnet/xdp/xsk.c=296=static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)\n--\nnet/xdp/xsk.c-388-\nnet/xdp/xsk.c:389:static bool xsk_tx_writeable(struct xdp_sock *xs)\nnet/xdp/xsk.c-390-{\n--\nnet/xdp/xsk.c=397=static void __xsk_tx_release(struct xdp_sock *xs)\n--\nnet/xdp/xsk.c-403-\nnet/xdp/xsk.c:404:static bool xsk_is_bound(struct xdp_sock *xs)\nnet/xdp/xsk.c-405-{\n--\nnet/xdp/xsk.c-413-\nnet/xdp/xsk.c:414:static bool xsk_dev_queue_valid(const struct xdp_sock *xs,\nnet/xdp/xsk.c-415-\t\t\t\tconst struct xdp_rxq_info *info)\n--\nnet/xdp/xsk.c-438-\nnet/xdp/xsk.c:439:static int xsk_rcv_check(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)\nnet/xdp/xsk.c-440-{\n--\nnet/xdp/xsk.c-453-\nnet/xdp/xsk.c:454:static void xsk_flush(struct xdp_sock *xs)\nnet/xdp/xsk.c-455-{\n--\nnet/xdp/xsk.c-460-\nnet/xdp/xsk.c:461:int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp)\nnet/xdp/xsk.c-462-{\n--\nnet/xdp/xsk.c-476-\nnet/xdp/xsk.c:477:static int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp)\nnet/xdp/xsk.c-478-{\n--\nnet/xdp/xsk.c=514=void __xsk_map_flush(struct list_head *flush_list)\n--\nnet/xdp/xsk.c-523-\nnet/xdp/xsk.c:524:void xsk_tx_completed(struct xsk_buff_pool *pool, u32 nb_entries)\nnet/xdp/xsk.c-525-{\n--\nnet/xdp/xsk.c=545=EXPORT_SYMBOL(xsk_tx_completed);\nnet/xdp/xsk.c-546-\nnet/xdp/xsk.c:547:void xsk_tx_release(struct xsk_buff_pool *pool)\nnet/xdp/xsk.c-548-{\n--\nnet/xdp/xsk.c=556=EXPORT_SYMBOL(xsk_tx_release);\nnet/xdp/xsk.c-557-\nnet/xdp/xsk.c:558:bool xsk_tx_peek_desc(struct xsk_buff_pool *pool, struct xdp_desc *desc)\nnet/xdp/xsk.c-559-{\n--\nnet/xdp/xsk.c=604=EXPORT_SYMBOL(xsk_tx_peek_desc);\nnet/xdp/xsk.c-605-\nnet/xdp/xsk.c:606:static u32 xsk_tx_peek_release_fallback(struct xsk_buff_pool *pool, u32 max_entries)\nnet/xdp/xsk.c-607-{\n--\nnet/xdp/xsk.c-617-\nnet/xdp/xsk.c:618:static void xsk_tx_commit_batch(struct xsk_buff_pool *pool,\nnet/xdp/xsk.c-619-\t\t\t\tstruct xsk_tx_batch *batch)\n--\nnet/xdp/xsk.c=669=xsk_tx_peek_release_shared_desc_batch(struct xsk_buff_pool *pool, u32 max_descs)\n--\nnet/xdp/xsk.c-743-\nnet/xdp/xsk.c:744:u32 xsk_tx_peek_release_desc_batch(struct xsk_buff_pool *pool, u32 nb_pkts)\nnet/xdp/xsk.c-745-{\n--\nnet/xdp/xsk.c=791=EXPORT_SYMBOL(xsk_tx_peek_release_desc_batch);\nnet/xdp/xsk.c-792-\nnet/xdp/xsk.c:793:static int xsk_wakeup(struct xdp_sock *xs, u8 flags)\nnet/xdp/xsk.c-794-{\n--\nnet/xdp/xsk.c-799-\nnet/xdp/xsk.c:800:static int xsk_cq_reserve_locked(struct xsk_buff_pool *pool)\nnet/xdp/xsk.c-801-{\n--\nnet/xdp/xsk.c-810-\nnet/xdp/xsk.c:811:static bool xsk_skb_destructor_is_addr(struct sk_buff *skb)\nnet/xdp/xsk.c-812-{\n--\nnet/xdp/xsk.c-815-\nnet/xdp/xsk.c:816:static u64 xsk_skb_destructor_get_addr(struct sk_buff *skb)\nnet/xdp/xsk.c-817-{\n--\nnet/xdp/xsk.c-820-\nnet/xdp/xsk.c:821:static struct xsk_addrs *__xsk_addrs_alloc(struct sk_buff *skb, u64 addr)\nnet/xdp/xsk.c-822-{\n--\nnet/xdp/xsk.c-833-\nnet/xdp/xsk.c:834:static struct xsk_addrs *xsk_addrs_alloc(struct sk_buff *skb)\nnet/xdp/xsk.c-835-{\n--\nnet/xdp/xsk.c-846-\nnet/xdp/xsk.c:847:static int xsk_skb_destructor_set_addr(struct sk_buff *skb, u64 addr)\nnet/xdp/xsk.c-848-{\n--\nnet/xdp/xsk.c-858-\nnet/xdp/xsk.c:859:static void xsk_inc_num_desc(struct sk_buff *skb)\nnet/xdp/xsk.c-860-{\n--\nnet/xdp/xsk.c-868-\nnet/xdp/xsk.c:869:static u32 xsk_get_num_desc(struct sk_buff *skb)\nnet/xdp/xsk.c-870-{\n--\nnet/xdp/xsk.c-880-\nnet/xdp/xsk.c:881:static void xsk_cq_submit_addr_locked(struct xsk_buff_pool *pool,\nnet/xdp/xsk.c-882-\t\t\t\t struct sk_buff *skb)\n--\nnet/xdp/xsk.c-910-\nnet/xdp/xsk.c:911:static void xsk_cq_submit_addr_single_locked(struct xsk_buff_pool *pool,\nnet/xdp/xsk.c-912-\t\t\t\t\t struct xdp_desc *desc)\n--\nnet/xdp/xsk.c-923-\nnet/xdp/xsk.c:924:static void xsk_cq_cancel_locked(struct xsk_buff_pool *pool, u32 n)\nnet/xdp/xsk.c-925-{\n--\nnet/xdp/xsk.c=931=INDIRECT_CALLABLE_SCOPE\nnet/xdp/xsk.c:932:void xsk_destruct_skb(struct sk_buff *skb)\nnet/xdp/xsk.c-933-{\n--\nnet/xdp/xsk.c-944-\nnet/xdp/xsk.c:945:static int xsk_skb_init_misc(struct sk_buff *skb, struct xdp_sock *xs,\nnet/xdp/xsk.c-946-\t\t\t u64 addr)\n--\nnet/xdp/xsk.c-960-\nnet/xdp/xsk.c:961:static void xsk_consume_skb(struct sk_buff *skb)\nnet/xdp/xsk.c-962-{\n--\nnet/xdp/xsk.c-978-\nnet/xdp/xsk.c:979:static void xsk_drop_skb(struct sk_buff *skb)\nnet/xdp/xsk.c-980-{\n--\nnet/xdp/xsk.c-987-\nnet/xdp/xsk.c:988:static int xsk_skb_metadata(struct sk_buff *skb, void *buffer,\nnet/xdp/xsk.c-989-\t\t\t struct xdp_desc *desc, struct xsk_buff_pool *pool,\n--\nnet/xdp/xsk.c=1215=static int __xsk_generic_xmit(struct sock *sk)\n--\nnet/xdp/xsk.c-1329-\nnet/xdp/xsk.c:1330:static int xsk_generic_xmit(struct sock *sk)\nnet/xdp/xsk.c-1331-{\n--\nnet/xdp/xsk.c-1342-\nnet/xdp/xsk.c:1343:static bool xsk_no_wakeup(struct sock *sk)\nnet/xdp/xsk.c-1344-{\n--\nnet/xdp/xsk.c-1353-\nnet/xdp/xsk.c:1354:static int xsk_check_common(struct xdp_sock *xs)\nnet/xdp/xsk.c-1355-{\n--\nnet/xdp/xsk.c=1364=static int __xsk_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len)\n--\nnet/xdp/xsk.c-1394-\nnet/xdp/xsk.c:1395:static int xsk_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len)\nnet/xdp/xsk.c-1396-{\n--\nnet/xdp/xsk.c=1406=static int __xsk_recvmsg(struct socket *sock, struct msghdr *m, size_t len, int flags)\n--\nnet/xdp/xsk.c-1431-\nnet/xdp/xsk.c:1432:static int xsk_recvmsg(struct socket *sock, struct msghdr *m, size_t len, int flags)\nnet/xdp/xsk.c-1433-{\n--\nnet/xdp/xsk.c-1442-\nnet/xdp/xsk.c:1443:static __poll_t xsk_poll(struct file *file, struct socket *sock,\nnet/xdp/xsk.c-1444-\t\t\t struct poll_table_struct *wait)\n--\nnet/xdp/xsk.c-1475-\nnet/xdp/xsk.c:1476:static int xsk_init_queue(u32 entries, struct xsk_queue **queue,\nnet/xdp/xsk.c-1477-\t\t\t bool umem_queue)\n--\nnet/xdp/xsk.c-1493-\nnet/xdp/xsk.c:1494:static void xsk_unbind_dev(struct xdp_sock *xs)\nnet/xdp/xsk.c-1495-{\n--\nnet/xdp/xsk.c-1507-\nnet/xdp/xsk.c:1508:static struct xsk_map *xsk_get_map_list_entry(struct xdp_sock *xs,\nnet/xdp/xsk.c-1509-\t\t\t\t\t struct xdp_sock __rcu ***map_entry)\n--\nnet/xdp/xsk.c-1527-\nnet/xdp/xsk.c:1528:static void xsk_delete_from_maps(struct xdp_sock *xs)\nnet/xdp/xsk.c-1529-{\n--\nnet/xdp/xsk.c-1553-\nnet/xdp/xsk.c:1554:static int xsk_release(struct socket *sock)\nnet/xdp/xsk.c-1555-{\n--\nnet/xdp/xsk.c=1592=static struct socket *xsk_lookup_xsk_from_fd(int fd)\n--\nnet/xdp/xsk.c-1608-\nnet/xdp/xsk.c:1609:static bool xsk_validate_queues(struct xdp_sock *xs)\nnet/xdp/xsk.c-1610-{\n--\nnet/xdp/xsk.c-1613-\nnet/xdp/xsk.c:1614:static int xsk_bind(struct socket *sock, struct sockaddr_unsized *addr, int addr_len)\nnet/xdp/xsk.c-1615-{\n--\nnet/xdp/xsk.c=1805=struct xdp_umem_reg_v1 {\n--\nnet/xdp/xsk.c-1811-\nnet/xdp/xsk.c:1812:static int xsk_setsockopt(struct socket *sock, int level, int optname,\nnet/xdp/xsk.c-1813-\t\t\t sockptr_t optval, unsigned int optlen)\n--\nnet/xdp/xsk.c-1934-\nnet/xdp/xsk.c:1935:static void xsk_enter_rxtx_offsets(struct xdp_ring_offset_v1 *ring)\nnet/xdp/xsk.c-1936-{\n--\nnet/xdp/xsk.c-1941-\nnet/xdp/xsk.c:1942:static void xsk_enter_umem_offsets(struct xdp_ring_offset_v1 *ring)\nnet/xdp/xsk.c-1943-{\n--\nnet/xdp/xsk.c=1949=struct xdp_statistics_v1 {\n--\nnet/xdp/xsk.c-1954-\nnet/xdp/xsk.c:1955:static int xsk_getsockopt(struct socket *sock, int level, int optname,\nnet/xdp/xsk.c-1956-\t\t\t sockopt_t *opt)\n--\nnet/xdp/xsk.c-2082-\nnet/xdp/xsk.c:2083:static int xsk_mmap(struct file *file, struct socket *sock,\nnet/xdp/xsk.c-2084-\t\t struct vm_area_struct *vma)\n--\nnet/xdp/xsk.c-2120-\nnet/xdp/xsk.c:2121:static int xsk_notifier(struct notifier_block *this,\nnet/xdp/xsk.c-2122-\t\t\tunsigned long msg, void *ptr)\n--\nnet/xdp/xsk.c=2159=static const struct proto_ops xsk_proto_ops = {\n--\nnet/xdp/xsk.c-2178-\nnet/xdp/xsk.c:2179:static void xsk_destruct(struct sock *sk)\nnet/xdp/xsk.c-2180-{\n--\nnet/xdp/xsk.c-2189-\nnet/xdp/xsk.c:2190:static int xsk_create(struct net *net, struct socket *sock, int protocol,\nnet/xdp/xsk.c-2191-\t\t int kern)\n--\nnet/xdp/xsk.c=2243=static struct notifier_block xsk_netdev_notifier = {\n--\nnet/xdp/xsk.c-2246-\nnet/xdp/xsk.c:2247:static int __net_init xsk_net_init(struct net *net)\nnet/xdp/xsk.c-2248-{\n--\nnet/xdp/xsk.c-2253-\nnet/xdp/xsk.c:2254:static void __net_exit xsk_net_exit(struct net *net)\nnet/xdp/xsk.c-2255-{\n--\nnet/xdp/xsk.c=2259=static struct pernet_operations xsk_net_ops = {\n--\nnet/xdp/xsk.c-2263-\nnet/xdp/xsk.c:2264:static int __init xsk_init(void)\nnet/xdp/xsk.c-2265-{\n"
} |
| 17/2 | 2026/08/13 22:34 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 15412 output: 46 thoughts: 264 Thoughts: **My Analysis of XSK and Related Configuration** Okay, so `xsk_generic_rcv` – that feels right, that's a key focus symbol for this. And `xsk_rcv` is static, which is usually not ideal, but good to know for context. Aha, but `__xsk_map_redirect` *is* exported, it's non-static! Excellent. Let's confirm that `__xsk_map_redirect` is indeed defined within `net/xdp/xsk.c`. Yep, it's right there, at line 497. So, taking stock, my primary focus symbols are clearly: * `xsk_generic_rcv` * `__xsk_map_redirect` Now, let's nail down the configuration options that are required. We'll need `XDP_SOCKETS`, obviously. And since XDP sockets will almost certainly be using BPF internally, `BPF_SYSCALL` is implied, but it's always good to be explicit about it. Time for a quick sanity check in `net/xdp/Kconfig`. Let's confirm there aren't any other hidden configs at play here. Yup, just `XDP_SOCKETS`. Now, time to delve into the source itself, specifically, `net/xdp/xsk.c`, and thoroughly examine both `xsk_generic_rcv` and `__xsk_map_redirect`. |
| 18/2 | 2026/08/13 22:34 | tool | grepper |
0mArgs:{
"Expression": "int xsk_generic_rcv|int __xsk_map_redirect",
"PathPrefix": "net/xdp/xsk.c"
}Results: {
"Output": "net/xdp/xsk.c=454=static void xsk_flush(struct xdp_sock *xs)\n--\nnet/xdp/xsk.c-460-\nnet/xdp/xsk.c:461:int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp)\nnet/xdp/xsk.c-462-{\n--\nnet/xdp/xsk.c=477=static int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp)\n--\nnet/xdp/xsk.c-496-\nnet/xdp/xsk.c:497:int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp)\nnet/xdp/xsk.c-498-{\n"
} |
| 19/2 | 2026/08/13 22:34 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 16277 output: 99 thoughts: 238 Thoughts: **My Assessment of the XDP Patch** Okay, so this patch is dealing with non-static functions, specifically focusing on the `__xsk_rcv` function within `net/xdp/xsk.c`. I need to understand this change. Essentially, what's happening is they're modifying the code to *pre-allocate* all the buffers needed for a multi-buffer XDP packet *before* processing it. This is a crucial detail. The goal is to avoid those nasty partial packet deliveries if there's a memory allocation failure. If an allocation fails *anywhere* along the line, it immediately frees everything it *did* manage to allocate and drops the packet, returning `-ENOMEM`. This protects against memory leaks and avoids any corrupted state that might happen when we're dealing with an out-of-memory (OOM) situation during multi-buffer packet reception. Smart. This is a fundamental change to the core AF_XDP receive path. It's accessible via both `xsk_generic_rcv` and `__xsk_map_redirect`, so I'll need to keep those in mind. And it's dependent on the `XDP_SOCKETS` config option being enabled. Given this understanding, I'm confident that this is worth fuzzing. I'll set `WorthFuzzing=true`. My focus should be on `xsk_generic_rcv` and `__xsk_map_redirect`, so I'll set `FocusSymbols=["xsk_generic_rcv", "__xsk_map_redirect"]`. I'll also ensure that `EnableConfigs=["XDP_SOCKETS"]` is set. The reasoning is clear: the patch is modifying a reachable core network path, the AF_XDP receive path, to pre-allocate buffers, which fundamentally changes how it handles OOM scenarios with multi-buffer packets. This is a functional change, and functional changes often reveal interesting bugs. |
| 20/2 | 2026/08/13 22:34 | tool | set-results |
0mArgs:{
"EnableConfigs": [
"XDP_SOCKETS"
],
"FocusSymbols": [
"xsk_generic_rcv",
"__xsk_map_redirect"
],
"Reasoning": "The patch modifies the AF_XDP receive path to pre-allocate all necessary buffers for multi-buffer packets, preventing partial packet delivery on OOM. This is a functional change in reachable core network logic.",
"WorthFuzzing": true
}Results: {
"EnableConfigs": [
"XDP_SOCKETS"
],
"FocusSymbols": [
"xsk_generic_rcv",
"__xsk_map_redirect"
],
"Reasoning": "The patch modifies the AF_XDP receive path to pre-allocate all necessary buffers for multi-buffer packets, preventing partial packet delivery on OOM. This is a functional change in reachable core network logic.",
"WorthFuzzing": true
} |
| 21/1 | 2026/08/13 22:34 | action | If |
0mArgs:{
"WorthFuzzing": true
}Results: null |
| 22/2 | 2026/08/13 22:34 | agent | kmsan-evaluator |
0mModel:best-expensive Args: null Results: {
"KMSANReasoning": "The patch modifies `__xsk_rcv` in `net/xdp/xsk.c` to pre-allocate all required XDP buffers before copying data into them. This prevents partial packet processing and potential memory leaks or list corruption if an allocation fails midway through a multi-buffer packet. The patch also adds a safety check to ensure the buffer's list node is empty before adding it to the temporary list. These changes address memory management and list integrity issues (which are effectively caught by KASAN and list debugging), and do not introduce or expose any uninitialized memory risks or info-leaks that would require KMSAN.",
"NeedsKMSAN": false
}Instruction: You are an expert Linux kernel security engineer specializing in kernel memory
error detectors (KASAN and KMSAN). Your job is to review the provided patch series and
determine if the code changes justify spawning a dedicated KMSAN (KernelMemorySanitizer)
fuzzing session in addition to standard KASAN fuzzing.
CRITICAL DISTINCTION BETWEEN KASAN AND KMSAN:
- Standard KASAN kernel builds (upstream-apparmor-kasan.config) already enable
a comprehensive suite of debugging tools and sanitizers, including KASAN
(out-of-bounds accesses, use-after-free, double free, invalid free), LOCKDEP
(locking bugs and deadlocks), UB-sanitizers, and memory corruption checks.
- KMSAN (KernelMemorySanitizer) detects reads of UNINITIALIZED memory (stack, heap,
or page allocations) and kernel-to-user memory info-leaks.
Rule: THERE IS NO SENSE IN RUNNING A KMSAN SESSION IF A BUG CAN BE CAUGHT BY KASAN,
LOCKDEP, OR OTHER STANDARD BUG DETECTORS.
A dedicated KMSAN fuzzing session incurs significant resource costs. You must ONLY
set NeedsKMSAN=true if the code changes introduce or expose UNINITIALIZED MEMORY risks
that are detected ONLY by KMSAN.
Look holistically at the patch series and surrounding code. Even if no direct
uninitialized field accesses or new buffer allocations are added in the diff itself,
a patch may alter control flow, bounds checking, or data length calculations in ways
that change how the rest of the code operates on existing buffers (e.g. allowing
uninitialized stack/heap memory to be read, copied to user space, or used in control
flow). Do not hesitate to use your code access tools to inspect the surrounding code,
called functions, and callers.
Set NeedsKMSAN=true ONLY IF the patch introduces or modifies:
1. Kernel structures sent to user space (via copy_to_user, put_user, netlink skb
attributes, ioctl output arguments, socket options, or BPF buffers) where fields
or structure padding might not be fully initialized/zeroed.
2. Conditional logic or branching that depends on potentially uninitialized variables
or struct fields.
3. Allocation or initialization of complex data structures where uninitialized fields
could be read later in reachable code paths.
4. Bounds checks, lengths, or logic in a way that allows surrounding code to access
uninitialized bytes of existing buffers.
Set NeedsKMSAN=false IF:
- The code changes primarily risk out-of-bounds access, array overflows, NULL pointer
dereferences, locking deadlocks, or use-after-free bugs (these are already caught
by KASAN, LOCKDEP, or standard bug detectors).
- All stack/heap structures touched or introduced by the patch are fully zeroed
or initialized (e.g. using = {0}, memset, kzalloc) before being read or copied.
- The patch does not introduce any risk of uninitialized memory usage or info-leaks.
Use your code access tools to inspect the surrounding code if necessary, then provide
detailed KMSANReasoning contrasting KASAN vs KMSAN applicability for this patch.
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 6cb2090242dfa701e557c827cad1d32884f84cb0
Author: syz-cluster <triage@syzkaller.com>
Date: Thu Aug 13 22:33:32 2026 +0000
syz-cluster: applied patch under review
diff --git a/net/xdp/xsk.c b/net/xdp/xsk.c
index 7855ee09c4b64..33475b180ea6f 100644
--- a/net/xdp/xsk.c
+++ b/net/xdp/xsk.c
@@ -298,9 +298,11 @@ static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)
u32 frame_size = __xsk_pool_get_rx_frame_size(xs->pool);
void *copy_from = xsk_copy_xdp_start(xdp), *copy_to;
u32 from_len, meta_len, rem, num_desc;
- struct xdp_buff_xsk *xskb;
+ struct xdp_buff_xsk *xskb, *tmp;
struct xdp_buff *xsk_xdp;
+ LIST_HEAD(xsk_buffs);
skb_frag_t *frag;
+ u32 i;
from_len = xdp->data_end - copy_from;
meta_len = xdp->data - copy_from;
@@ -343,23 +345,45 @@ static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)
frag = &sinfo->frags[0];
}
+ for (i = 0; i < num_desc; i++) {
+ xsk_xdp = xsk_buff_alloc(xs->pool);
+ if (!xsk_xdp)
+ goto err_alloc;
+
+ xskb = container_of(xsk_xdp, struct xdp_buff_xsk, xdp);
+ if (unlikely(!list_empty(&xskb->list_node)))
+ goto err_alloc;
+
+ list_add_tail(&xskb->list_node, &xsk_buffs);
+ }
+
do {
u32 to_len = frame_size + meta_len;
u32 copied;
- xsk_xdp = xsk_buff_alloc(xs->pool);
+ xskb = list_first_entry(&xsk_buffs, struct xdp_buff_xsk,
+ list_node);
+ list_del_init(&xskb->list_node);
+ xsk_xdp = &xskb->xdp;
copy_to = xsk_xdp->data - meta_len;
copied = xsk_copy_xdp(copy_to, ©_from, to_len, &from_len, &frag, rem);
rem -= copied;
- xskb = container_of(xsk_xdp, struct xdp_buff_xsk, xdp);
__xsk_rcv_zc_safe(xs, xskb, copied - meta_len,
rem ? XDP_PKT_CONTD : 0);
meta_len = 0;
} while (rem);
return 0;
+
+err_alloc:
+ list_for_each_entry_safe(xskb, tmp, &xsk_buffs, list_node) {
+ list_del_init(&xskb->list_node);
+ xsk_buff_free(&xskb->xdp);
+ }
+ xs->rx_dropped++;
+ return -ENOMEM;
}
static bool xsk_tx_writeable(struct xdp_sock *xs)
|
| 23/3 | 2026/08/13 22:34 | llm | kmsan-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2728 output: 31 thoughts: 245 Thoughts: **Analyzing the XSK Buffer Allocation Patch** Okay, so this patch is tweaking `__xsk_rcv` within `net/xdp/xsk.c`. The core seems to be about pre-allocating buffers, specifically using a `LIST_HEAD(xsk_buffs)` and `xsk_buff_alloc(xs->pool)` for a number of descriptors (`num_desc`). I see the `-ENOMEM` error handling if the allocation fails, which is standard practice. The allocation is followed by a copy operation and a call to `__xsk_rcv_zc_safe`. That all makes sense. But wait a minute... I'm seeing a check: `if (unlikely(!list_empty(&xskb->list_node))) goto err_alloc;`. That's to confirm that the list node is empty before it's added to the list. That makes sense, but I'm just quickly thinking if there are any uninitialized memory issues. We are allocating `xdp_buff` through `xsk_buff_alloc`. Now, I'd better double-check the allocation details of `xsk_buff_alloc` to make sure there's no subtle issue that I'm missing. Time to dive into `net/xdp/xsk_buff_pool.c` or maybe it's in `net/xdp/xsk.c` itself. Gotta see what's happening under the hood there. |
| 24/3 | 2026/08/13 22:34 | tool | grepper |
0mArgs:{
"Expression": "xsk_buff_alloc",
"PathPrefix": "net/xdp/"
}Results: {
"Output": "net/xdp/xsk.c=296=static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)\n--\nnet/xdp/xsk.c-313-\nnet/xdp/xsk.c:314:\t\txsk_xdp = xsk_buff_alloc(xs-\u003epool);\nnet/xdp/xsk.c-315-\t\tif (!xsk_xdp) {\n--\nnet/xdp/xsk.c-348-\tfor (i = 0; i \u003c num_desc; i++) {\nnet/xdp/xsk.c:349:\t\txsk_xdp = xsk_buff_alloc(xs-\u003epool);\nnet/xdp/xsk.c-350-\t\tif (!xsk_xdp)\n"
} |
| 25/3 | 2026/08/13 22:34 | llm | kmsan-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3545 output: 32 thoughts: 14 Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience: **Diving into the xsk_buff_alloc Details** Alright, let's get down to brass tacks. I need to understand `xsk_buff_alloc` thoroughly. It's the cornerstone of how we're dealing with packet buffers in XDP, and a solid grasp on it is non-negotiable for optimization. I need to refresh my memory on the specific allocation strategy, any potential lock contention points, and, most importantly, how it interacts with the underlying memory management of the NIC and the host. Specifically, I'm thinking about: * **Memory alignment**: What are the alignment requirements for these buffers? Are there any hidden performance implications due to the alignment, especially when dealing with various NIC offloads or DMA operations? * **Buffer pool management**: How are these buffers managed internally? Is it a simple freelist, or something more sophisticated? Are there any potential fragmentation issues to watch out for, especially under heavy load? How does this pool work with the rings and how are they linked? * **Contention**: Where are the critical sections? Are there any obvious bottlenecks in the allocation path? Are there optimizations or potential hazards to the `xsk_buff_alloc` that could be considered? * **Error handling**: What are the failure modes of `xsk_buff_alloc`? Are there proper resource exhaustion checks and failure pathways or potential leaks to address? * **Interaction with XDP rings**: Let's see how `xsk_buff_alloc` works with the rings. I need to visualize the complete flow of packets, from NIC to `xsk_buff_alloc`, and then how they are linked into the rings. * **Alternative allocators**: Are there potential alternative allocation strategies to consider, depending on the specific hardware/NIC and use case? Could custom allocators, or even leveraging the kernel's slab allocators, offer advantages in certain scenarios? * **Performance implications**: Looking at the code itself, can any optimizations or potential areas for improvement be spotted? I need to examine the source code, trace the control flow, and think through the implications of each line, because that's where the real magic happens... or where the bugs hide. I'm going in! |
| 26/3 | 2026/08/13 22:34 | tool | grepper |
0mArgs:{
"Expression": "xsk_buff_alloc\\(",
"PathPrefix": "net/xdp/"
}Results: {
"Output": "net/xdp/xsk.c=296=static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len)\n--\nnet/xdp/xsk.c-313-\nnet/xdp/xsk.c:314:\t\txsk_xdp = xsk_buff_alloc(xs-\u003epool);\nnet/xdp/xsk.c-315-\t\tif (!xsk_xdp) {\n--\nnet/xdp/xsk.c-348-\tfor (i = 0; i \u003c num_desc; i++) {\nnet/xdp/xsk.c:349:\t\txsk_xdp = xsk_buff_alloc(xs-\u003epool);\nnet/xdp/xsk.c-350-\t\tif (!xsk_xdp)\n"
} |
| 27/3 | 2026/08/13 22:34 | llm | kmsan-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 4308 output: 29 thoughts: 12 Thoughts: Okay, here's my summary, presented as a stream of thought: **Debugging a Suspected Inline Function Issue** Alright, let's see... the code isn't behaving as expected, and I'm suspecting it might be the source of the trouble could be an inline function. Inline functions can sometimes be tricky to debug because the compiler often handles them in a way that obscures the direct source code execution, it's not exactly easy to trace their flow in the same way as a regular function call. This is the first place I'm going to look, because it's a common area for unexpected behavior, especially if there's any complex logic or side effects involved. I'll need to double-check the header files to see if I find any suspects. |
| 28/3 | 2026/08/13 22:34 | tool | grepper |
0mArgs:{
"Expression": "xsk_buff_alloc\\(",
"PathPrefix": "include/"
}Results: {
"Output": "include/net/xdp_sock_drv.h=113=static inline dma_addr_t xsk_buff_xdp_get_frame_dma(struct xdp_buff *xdp)\n--\ninclude/net/xdp_sock_drv.h-119-\ninclude/net/xdp_sock_drv.h:120:static inline struct xdp_buff *xsk_buff_alloc(struct xsk_buff_pool *pool)\ninclude/net/xdp_sock_drv.h-121-{\n--\ninclude/net/xdp_sock_drv.h=443=static inline dma_addr_t xsk_buff_xdp_get_frame_dma(struct xdp_buff *xdp)\n--\ninclude/net/xdp_sock_drv.h-447-\ninclude/net/xdp_sock_drv.h:448:static inline struct xdp_buff *xsk_buff_alloc(struct xsk_buff_pool *pool)\ninclude/net/xdp_sock_drv.h-449-{\n"
} |
| 29/3 | 2026/08/13 22:34 | llm | kmsan-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 4788 output: 40 thoughts: 15 Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience: **Diving into `xsk_buff_alloc`** Alright, let's get down to brass tacks. I need to understand what's happening under the hood with `xsk_buff_alloc`. This function is the cornerstone of how XDP manages memory for packet data. I already know the high-level details – it's responsible for allocating and managing the ring buffers used to exchange packets between the XDP program and the host kernel. But now I want a more granular understanding of the nuances in this process. I need to know the allocation strategies used, how it interacts with the underlying memory management of the system, and any potential bottlenecks it might introduce in high-performance scenarios. I want to see how the allocation scheme plays out. How does it manage the `xsk_umem`, and what are the implications of its design on things like cache efficiency and fragmentation? I also want to check for potential race conditions or other issues if multiple threads are vying for resources. Time to dig in! |
| 30/3 | 2026/08/13 22:34 | tool | read-file |
0mArgs:{
"File": "include/net/xdp_sock_drv.h",
"FirstLine": 115,
"LineCount": 30
}Results: {
"Contents": " 115:\t\tstruct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp);\n 116:\t\n 117:\t\treturn xp_get_frame_dma(xskb);\n 118:\t}\n 119:\t\n 120:\tstatic inline struct xdp_buff *xsk_buff_alloc(struct xsk_buff_pool *pool)\n 121:\t{\n 122:\t\treturn xp_alloc(pool);\n 123:\t}\n 124:\t\n 125:\tstatic inline bool xsk_is_eop_desc(const struct xdp_desc *desc)\n 126:\t{\n 127:\t\treturn !xp_mb_desc(desc);\n 128:\t}\n 129:\t\n 130:\t/* Returns as many entries as possible up to max. 0 \u003c= N \u003c= max. */\n 131:\tstatic inline u32 xsk_buff_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max)\n 132:\t{\n 133:\t\treturn xp_alloc_batch(pool, xdp, max);\n 134:\t}\n 135:\t\n 136:\tstatic inline bool xsk_buff_can_alloc(struct xsk_buff_pool *pool, u32 count)\n 137:\t{\n 138:\t\treturn xp_can_alloc(pool, count);\n 139:\t}\n 140:\t\n 141:\tstatic inline void xsk_buff_free(struct xdp_buff *xdp)\n 142:\t{\n 143:\t\tstruct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp);\n 144:\t\tstruct list_head *xskb_list = \u0026xskb-\u003epool-\u003exskb_list;\n"
} |
| 31/3 | 2026/08/13 22:34 | llm | kmsan-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 5597 output: 157 thoughts: 334 Thoughts: **My Assessment of the XDP Buffer Pre-allocation Patch** Okay, let me think this through. This patch is modifying `__xsk_rcv` to pre-allocate all of the `xsk_xdp` buffers *before* copying any data into them. The goal here is to prevent a situation where an allocation fails mid-packet, particularly with multi-buffer XDP, which would lead to a partial copy and potentially corrupt data. If an allocation *does* fail, it cleans up by freeing any buffers it *did* manage to allocate and returns `-ENOMEM`. It seems to me this is primarily a bug fix, likely addressing either a memory leak, packet drop due to incomplete copy, or possibly a use-after-free or list corruption scenario. Ah, hang on a second. I see this addition: ```c xskb = container_of(xsk_xdp, struct xdp_buff_xsk, xdp); if (unlikely(!list_empty(&xskb->list_node))) goto err_alloc; ``` This *really* looks like a check on whether `list_node` is empty. If not, it bails out to `err_alloc`. My understanding is this is aimed at fixing a list corruption issue – definitely a memory safety problem that could probably be caught by KASAN or the standard list debugging. But it is still a good check to have. So, let's nail this down. Does this patch expose uninitialized memory? No. It changes the *allocation strategy* to pre-allocate and adds this safety check, that's all. Does it copy uninitialized memory to user space? Absolutely not. It's copying data from what should be a fully initialized source buffer (the incoming packet) into the pre-allocated buffers. This isn't a case of uninitialized memory. It is fixing a list corruption or memory leak. Therefore, given my analysis, the `NeedsKMSAN=false` flag is correct here. This doesn't seem like it needs KMSAN. |
| 32/3 | 2026/08/13 22:34 | tool | set-results |
0mArgs:{
"KMSANReasoning": "The patch modifies `__xsk_rcv` in `net/xdp/xsk.c` to pre-allocate all required XDP buffers before copying data into them. This prevents partial packet processing and potential memory leaks or list corruption if an allocation fails midway through a multi-buffer packet. The patch also adds a safety check to ensure the buffer's list node is empty before adding it to the temporary list. These changes address memory management and list integrity issues (which are effectively caught by KASAN and list debugging), and do not introduce or expose any uninitialized memory risks or info-leaks that would require KMSAN.",
"NeedsKMSAN": false
}Results: {
"KMSANReasoning": "The patch modifies `__xsk_rcv` in `net/xdp/xsk.c` to pre-allocate all required XDP buffers before copying data into them. This prevents partial packet processing and potential memory leaks or list corruption if an allocation fails midway through a multi-buffer packet. The patch also adds a safety check to ensure the buffer's list node is empty before adding it to the temporary list. These changes address memory management and list integrity issues (which are effectively caught by KASAN and list debugging), and do not introduce or expose any uninitialized memory risks or info-leaks that would require KMSAN.",
"NeedsKMSAN": false
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|