| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/08/06 08:19 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the Airoha SoC NPU driver (drivers/net/ethernet/airoha/airoha_npu.c). This is a vendor-specific hardware driver for the Airoha EN7581 SoC and requires physical hardware to probe and execute. It cannot be reached or tested in standard virtualized environments like QEMU or GCE.",
"WorthFuzzing": false
} |
| 1/1 | 2026/08/06 08:19 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 27d3478c5c8d334d9e36437a4c24ec087ee5959f\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Thu Aug 6 08:19:10 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/ethernet/airoha/airoha_npu.c b/drivers/net/ethernet/airoha/airoha_npu.c\nindex b679bed952de3..dfa09fed907e1 100644\n--- a/drivers/net/ethernet/airoha/airoha_npu.c\n+++ b/drivers/net/ethernet/airoha/airoha_npu.c\n@@ -23,6 +23,8 @@\n #define NPU_EN7581_FIRMWARE_RV32_MAX_SIZE\t0x200000\n #define NPU_EN7581_FIRMWARE_DATA_MAX_SIZE\t0x10000\n #define NPU_DUMP_SIZE\t\t\t\t512\n+/* Enough for struct ppe_mbox_data and small WLAN TLV payloads */\n+#define AIROHA_NPU_MBOX_SIZE\t\t\t256\n \n #define REG_NPU_LOCAL_SRAM\t\t0x0\n \n@@ -165,17 +167,24 @@ static int airoha_npu_send_msg(struct airoha_npu *npu, int func_id,\n {\n \tu16 core = 0; /* FIXME */\n \tu32 val, offset = core \u003c\u003c 4;\n-\tdma_addr_t dma_addr;\n \tint ret;\n \n-\tdma_addr = dma_map_single(npu-\u003edev, p, size, DMA_BIDIRECTIONAL);\n-\tret = dma_mapping_error(npu-\u003edev, dma_addr);\n-\tif (ret)\n-\t\treturn ret;\n+\tif (size \u003e AIROHA_NPU_MBOX_SIZE)\n+\t\treturn -EINVAL;\n \n+\t/*\n+\t * Mailbox payloads are bidirectional (CPU request, NPU response).\n+\t * On EN7581+MT7996, streaming DMA_BIDIRECTIONAL against the\n+\t * caller kzalloc() buffer can leave WLAN_FUNC_GET_WAIT_NPU_VERSION\n+\t * reading as 0.0 despite MBOX success. Reuse a probe-time coherent\n+\t * bounce buffer under the per-core lock (also used from PPE\n+\t * foe_commit under atomic context).\n+\t */\n \tspin_lock_bh(\u0026npu-\u003ecores[core].lock);\n \n-\tregmap_write(npu-\u003eregmap, REG_CR_MBQ0_CTRL(0) + offset, dma_addr);\n+\tmemcpy(npu-\u003embox_buf, p, size);\n+\n+\tregmap_write(npu-\u003eregmap, REG_CR_MBQ0_CTRL(0) + offset, npu-\u003embox_dma);\n \tregmap_write(npu-\u003eregmap, REG_CR_MBQ0_CTRL(1) + offset, size);\n \tregmap_read(npu-\u003eregmap, REG_CR_MBQ0_CTRL(2) + offset, \u0026val);\n \tregmap_write(npu-\u003eregmap, REG_CR_MBQ0_CTRL(2) + offset, val + 1);\n@@ -189,9 +198,10 @@ static int airoha_npu_send_msg(struct airoha_npu *npu, int func_id,\n \tif (!ret \u0026\u0026 FIELD_GET(MBOX_MSG_STATUS, val) != NPU_MBOX_SUCCESS)\n \t\tret = -EINVAL;\n \n-\tspin_unlock_bh(\u0026npu-\u003ecores[core].lock);\n+\tif (!ret)\n+\t\tmemcpy(p, npu-\u003embox_buf, size);\n \n-\tdma_unmap_single(npu-\u003edev, dma_addr, size, DMA_BIDIRECTIONAL);\n+\tspin_unlock_bh(\u0026npu-\u003ecores[core].lock);\n \n \treturn ret;\n }\n@@ -770,6 +780,11 @@ static int airoha_npu_probe(struct platform_device *pdev)\n \tif (err)\n \t\treturn err;\n \n+\tnpu-\u003embox_buf = dmam_alloc_coherent(dev, AIROHA_NPU_MBOX_SIZE,\n+\t\t\t\t\t \u0026npu-\u003embox_dma, GFP_KERNEL);\n+\tif (!npu-\u003embox_buf)\n+\t\treturn -ENOMEM;\n+\n \terr = airoha_npu_run_firmware(dev, base, \u0026res);\n \tif (err)\n \t\treturn dev_err_probe(dev, err, \"failed to run npu firmware\\n\");\ndiff --git a/include/linux/soc/airoha/airoha_offload.h b/include/linux/soc/airoha/airoha_offload.h\nindex 7589fccfeef6d..afd481233489d 100644\n--- a/include/linux/soc/airoha/airoha_offload.h\n+++ b/include/linux/soc/airoha/airoha_offload.h\n@@ -179,6 +179,10 @@ struct airoha_npu {\n \n \tstruct airoha_foe_stats __iomem *stats;\n \n+\t/* Coherent bounce buffer for mailbox cmd/rsp (airoha_npu_send_msg) */\n+\tvoid *mbox_buf;\n+\tdma_addr_t mbox_dma;\n+\n \tstruct {\n \t\tint (*ppe_init)(struct airoha_npu *npu);\n \t\tint (*ppe_deinit)(struct airoha_npu *npu);\n"
} |
| 2/1 | 2026/08/06 08:19 | agent | patch-evaluator |
0mModel:best-expensive Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the Airoha SoC NPU driver (drivers/net/ethernet/airoha/airoha_npu.c). This is a vendor-specific hardware driver for the Airoha EN7581 SoC and requires physical hardware to probe and execute. It cannot be reached or tested in standard virtualized environments like QEMU or GCE.",
"WorthFuzzing": false
}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 27d3478c5c8d334d9e36437a4c24ec087ee5959f
Author: syz-cluster <triage@syzkaller.com>
Date: Thu Aug 6 08:19:10 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/net/ethernet/airoha/airoha_npu.c b/drivers/net/ethernet/airoha/airoha_npu.c
index b679bed952de3..dfa09fed907e1 100644
--- a/drivers/net/ethernet/airoha/airoha_npu.c
+++ b/drivers/net/ethernet/airoha/airoha_npu.c
@@ -23,6 +23,8 @@
#define NPU_EN7581_FIRMWARE_RV32_MAX_SIZE 0x200000
#define NPU_EN7581_FIRMWARE_DATA_MAX_SIZE 0x10000
#define NPU_DUMP_SIZE 512
+/* Enough for struct ppe_mbox_data and small WLAN TLV payloads */
+#define AIROHA_NPU_MBOX_SIZE 256
#define REG_NPU_LOCAL_SRAM 0x0
@@ -165,17 +167,24 @@ static int airoha_npu_send_msg(struct airoha_npu *npu, int func_id,
{
u16 core = 0; /* FIXME */
u32 val, offset = core << 4;
- dma_addr_t dma_addr;
int ret;
- dma_addr = dma_map_single(npu->dev, p, size, DMA_BIDIRECTIONAL);
- ret = dma_mapping_error(npu->dev, dma_addr);
- if (ret)
- return ret;
+ if (size > AIROHA_NPU_MBOX_SIZE)
+ return -EINVAL;
+ /*
+ * Mailbox payloads are bidirectional (CPU request, NPU response).
+ * On EN7581+MT7996, streaming DMA_BIDIRECTIONAL against the
+ * caller kzalloc() buffer can leave WLAN_FUNC_GET_WAIT_NPU_VERSION
+ * reading as 0.0 despite MBOX success. Reuse a probe-time coherent
+ * bounce buffer under the per-core lock (also used from PPE
+ * foe_commit under atomic context).
+ */
spin_lock_bh(&npu->cores[core].lock);
- regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(0) + offset, dma_addr);
+ memcpy(npu->mbox_buf, p, size);
+
+ regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(0) + offset, npu->mbox_dma);
regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(1) + offset, size);
regmap_read(npu->regmap, REG_CR_MBQ0_CTRL(2) + offset, &val);
regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(2) + offset, val + 1);
@@ -189,9 +198,10 @@ static int airoha_npu_send_msg(struct airoha_npu *npu, int func_id,
if (!ret && FIELD_GET(MBOX_MSG_STATUS, val) != NPU_MBOX_SUCCESS)
ret = -EINVAL;
- spin_unlock_bh(&npu->cores[core].lock);
+ if (!ret)
+ memcpy(p, npu->mbox_buf, size);
- dma_unmap_single(npu->dev, dma_addr, size, DMA_BIDIRECTIONAL);
+ spin_unlock_bh(&npu->cores[core].lock);
return ret;
}
@@ -770,6 +780,11 @@ static int airoha_npu_probe(struct platform_device *pdev)
if (err)
return err;
+ npu->mbox_buf = dmam_alloc_coherent(dev, AIROHA_NPU_MBOX_SIZE,
+ &npu->mbox_dma, GFP_KERNEL);
+ if (!npu->mbox_buf)
+ return -ENOMEM;
+
err = airoha_npu_run_firmware(dev, base, &res);
if (err)
return dev_err_probe(dev, err, "failed to run npu firmware\n");
diff --git a/include/linux/soc/airoha/airoha_offload.h b/include/linux/soc/airoha/airoha_offload.h
index 7589fccfeef6d..afd481233489d 100644
--- a/include/linux/soc/airoha/airoha_offload.h
+++ b/include/linux/soc/airoha/airoha_offload.h
@@ -179,6 +179,10 @@ struct airoha_npu {
struct airoha_foe_stats __iomem *stats;
+ /* Coherent bounce buffer for mailbox cmd/rsp (airoha_npu_send_msg) */
+ void *mbox_buf;
+ dma_addr_t mbox_dma;
+
struct {
int (*ppe_init)(struct airoha_npu *npu);
int (*ppe_deinit)(struct airoha_npu *npu);
|
| 3/2 | 2026/08/06 08:19 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3246 output: 40 thoughts: 204 Thoughts: **Analyzing a Patch to the Airoha Ethernet Driver** Okay, so I'm looking at this patch that's modifying `drivers/net/ethernet/airoha/airoha_npu.c`. It looks like they're optimizing the `airoha_npu_send_msg` function to use a pre-allocated coherent bounce buffer, `npu->mbox_buf`, instead of using `dma_map_single`. This is interesting; pre-allocating is generally a good approach for performance and preventing potential fragmentation issues, so I'm immediately leaning towards this being a worthwhile change. They're also allocating this `mbox_buf` in `airoha_npu_probe`, which makes sense from a resource management perspective. Now, this is an Airoha EN7581 SoC-specific Ethernet driver. The question that immediately pops into my head is, how likely is this to even *be* testable or relevant in a virtualized environment? Drivers that are this deeply tied to the hardware, particularly ones that deal with Network Processing Units (NPUs) or Packet Processing Engines (PPEs), often rely on very specific silicon features that QEMU or other emulators just don't have. So, let's determine whether this driver is actually emulated or purely hardware-dependent. The file itself is `drivers/net/ethernet/airoha/airoha_npu.c`, so I'll need to check the relevant `Kconfig` file under the same directory. That's the first step in assessing its testability. |
| 4/2 | 2026/08/06 08:19 | tool | grepper |
0mArgs:{
"Expression": "config NET_VENDOR_AIROHA",
"PathPrefix": "drivers/net/ethernet/airoha/Kconfig"
}Results: {
"Output": "drivers/net/ethernet/airoha/Kconfig-1-# SPDX-License-Identifier: GPL-2.0-only\ndrivers/net/ethernet/airoha/Kconfig:2:config NET_VENDOR_AIROHA\ndrivers/net/ethernet/airoha/Kconfig-3-\tbool \"Airoha devices\"\n"
} |
| 5/2 | 2026/08/06 08:19 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3912 output: 39 thoughts: 8 Thoughts: Okay, here's my interpretation of that thought process, tailored for an expert audience, and written in the first person: **Initial Kconfig Review** Alright, time to dive in. "Let's read the Kconfig." That's the first step, isn't it? Before any modifications, before any design decisions, I need to get a clear picture of the existing configuration space. I'm not just *looking* at it, I'm mentally parsing it. I'm already starting to think about dependencies, implications of different options, and potential conflicts. I'm looking for the overall structure – what’s the architecture of this configuration? What areas does it cover? I'm scanning for familiar modules or features, and quickly identifying those areas that I'm less comfortable with and need to revisit more closely. My brain is already calculating the complexity of this configuration as a whole. |
| 6/2 | 2026/08/06 08:19 | tool | read-file |
0mArgs:{
"File": "drivers/net/ethernet/airoha/Kconfig",
"FirstLine": 1,
"LineCount": 100
}Results: {
"Contents": " 1:\t# SPDX-License-Identifier: GPL-2.0-only\n 2:\tconfig NET_VENDOR_AIROHA\n 3:\t\tbool \"Airoha devices\"\n 4:\t\tdepends on ARCH_AIROHA || COMPILE_TEST\n 5:\t\thelp\n 6:\t\t If you have a Airoha SoC with ethernet, say Y.\n 7:\t\n 8:\tif NET_VENDOR_AIROHA\n 9:\t\n 10:\tconfig NET_AIROHA_NPU\n 11:\t\ttristate \"Airoha NPU support\"\n 12:\t\tselect WANT_DEV_COREDUMP\n 13:\t\tselect REGMAP_MMIO\n 14:\t\thelp\n 15:\t\t This driver supports Airoha Network Processor (NPU) available\n 16:\t\t on the Airoha Soc family.\n 17:\t\n 18:\tconfig NET_AIROHA\n 19:\t\ttristate \"Airoha SoC Gigabit Ethernet support\"\n 20:\t\tdepends on NET_DSA || !NET_DSA\n 21:\t\tselect NET_AIROHA_NPU\n 22:\t\tselect PAGE_POOL\n 23:\t\thelp\n 24:\t\t This driver supports the gigabit ethernet MACs in the\n 25:\t\t Airoha SoC family.\n 26:\t\n 27:\tconfig NET_AIROHA_FLOW_STATS\n 28:\t\tdefault y\n 29:\t\tbool \"Airoha flow stats\"\n 30:\t\tdepends on NET_AIROHA \u0026\u0026 NET_AIROHA_NPU\n 31:\t\thelp\n 32:\t\t Enable Airoha flowtable statistic counters.\n 33:\t\n 34:\tendif #NET_VENDOR_AIROHA\n"
} |
| 7/2 | 2026/08/06 08:19 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 4596 output: 44 thoughts: 144 Thoughts: **Analyzing the Airoha SoC Gigabit Ethernet and NPU Driver** Okay, so I'm looking at this driver, and it's specifically built for the Airoha SoC's Gigabit Ethernet and NPU. The code is conditional; it's activated based on either `ARCH_AIROHA` or `COMPILE_TEST` flags. This strongly suggests it's hardware-dependent, needing the actual Airoha SoC or a pretty good emulation to function. Hmm, the question is, can I get away with emulation? Now, I'm trying to remember if there's a standard QEMU setup for Airoha SoCs. Usually, these specialized SoCs don't have good QEMU support, or at least nothing consistent enough to work with something like syzkaller. But wait, I need to rethink this, syzkaller does fuzz drivers if they can be probed... Can this driver be probed? I see it's a platform driver, so, it *should* be probe-able, right? Let's go straight to `airoha_npu_probe` and see what's what. |
| 8/2 | 2026/08/06 08:19 | tool | grepper |
0mArgs:{
"Expression": "airoha_npu_probe",
"PathPrefix": "drivers/net/ethernet/airoha/airoha_npu.c"
}Results: {
"Output": "drivers/net/ethernet/airoha/airoha_npu.c=695=static const struct regmap_config regmap_config = {\n--\ndrivers/net/ethernet/airoha/airoha_npu.c-702-\ndrivers/net/ethernet/airoha/airoha_npu.c:703:static int airoha_npu_probe(struct platform_device *pdev)\ndrivers/net/ethernet/airoha/airoha_npu.c-704-{\n--\ndrivers/net/ethernet/airoha/airoha_npu.c=828=static struct platform_driver airoha_npu_driver = {\ndrivers/net/ethernet/airoha/airoha_npu.c:829:\t.probe = airoha_npu_probe,\ndrivers/net/ethernet/airoha/airoha_npu.c-830-\t.remove = airoha_npu_remove,\n"
} |
| 9/2 | 2026/08/06 08:19 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 5275 output: 108 thoughts: 373 Thoughts: **My Assessment: This Patch is Likely Not Worth Fuzzing in a Standard Virtualized Environment** Okay, let's break this down. Platform drivers, right? They're probed when a matching platform device gets registered, typically through the Device Tree. Unless we've got some way to inject arbitrary devices – like syzkaller's `syz_dev_init` (or similar for USB/PCI/vmbus), these specific platform devices for an SoC aren't even *present* in generic x86 VMs. Wait, though... I remember syzkaller *does* have some methods for injecting platform devices using device tree overlays or similar. But, even with that, SoC-specific ethernet drivers, for example, are typically unreachable unless specifically configured. Now, this patch modifies `airoha_npu_send_msg`, which sends messages to the NPU. The question is, can we *get* to this code in a virtualized environment? If it’s an SoC driver, the answer is generally a resounding no – standard QEMU needs very specific machine types and DTBs to even stand a chance. The prompt says to mark a patch as "WorthFuzzing=false" if it contains code paths unreachable in virtualized environments like GCE or QEMU, even with software-emulated hardware. It also mentioned vendor-specific PCIe switch, SmartNIC, or GPU drivers. So, here's the kicker: This is an Airoha NPU driver. It's a vendor-specific SoC driver. It's tied to Airoha SoC hardware. Therefore, it's essentially impossible to reach in standard virtualized environments. I'm going to return "WorthFuzzing=false". This patch isn't going to be worth the time, effort, and resources to fuzz in a standard virtualized environment. |
| 10/2 | 2026/08/06 08:19 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch modifies the Airoha SoC NPU driver (drivers/net/ethernet/airoha/airoha_npu.c). This is a vendor-specific hardware driver for the Airoha EN7581 SoC and requires physical hardware to probe and execute. It cannot be reached or tested in standard virtualized environments like QEMU or GCE.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the Airoha SoC NPU driver (drivers/net/ethernet/airoha/airoha_npu.c). This is a vendor-specific hardware driver for the Airoha EN7581 SoC and requires physical hardware to probe and execute. It cannot be reached or tested in standard virtualized environments like QEMU or GCE.",
"WorthFuzzing": false
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|