| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/09/29 19:20 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The patch exclusively modifies the STMicroelectronics Ethernet driver (stmmac: stmmac_main.c, stmmac_tc.c, stmmac_fpe.c, and stmmac.h). This driver targets specific physical hardware/SoCs and vendor-specific PCI devices that are not emulated in standard virtualized environments (QEMU/GCE) on amd64, making the modified code structurally unreachable for fuzzing.",
"WorthFuzzing": false
} |
| 1/1 | 2026/09/29 19:20 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit c393c6570fe6c1d9790e2d7aed4ab5502c13ac96\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Tue Sep 29 19:20:39 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h\nindex 4fc96b317d79c..40eab899027b4 100644\n--- a/drivers/net/ethernet/stmicro/stmmac/stmmac.h\n+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac.h\n@@ -299,6 +299,15 @@ struct stmmac_priv {\n \t/* Protect est parameters */\n \tstruct mutex est_lock;\n \tstruct stmmac_est *est;\n+\n+\tstruct {\n+\t\tbool enabled;\n+\t\tu32 prio[MTL_MAX_TX_QUEUES];\n+\t\tbool prio_offload;\n+\t\tu32 num_tx_queues;\n+\t\tu8 algo;\n+\t} xmit_qdisc;\n+\n \tstruct dma_features dma_cap;\n \tstruct stmmac_counters mmc;\n \tint hw_cap_support;\ndiff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_fpe.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_fpe.c\nindex c889204a7aa5d..b6b5ef7c8fc48 100644\n--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_fpe.c\n+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_fpe.c\n@@ -230,7 +230,7 @@ int dwmac5_fpe_map_preemption_class(struct net_device *ndev,\n \t\tif (count == 1)\n \t\t\tcontinue;\n \n-\t\tif (priv-\u003eplat-\u003etx_sched_algorithm == MTL_TX_ALGORITHM_SP) {\n+\t\tif (priv-\u003exmit_qdisc.algo == MTL_TX_ALGORITHM_SP) {\n \t\t\tNL_SET_ERR_MSG_MOD(extack, ALG_ERR_MSG);\n \t\t\treturn -EINVAL;\n \t\t}\ndiff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\nindex 3ad9252bf6aea..1c25d1c129d4c 100644\n--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\n+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\n@@ -3533,17 +3533,11 @@ static void stmmac_mac_config_rx_queues_prio(struct stmmac_priv *priv)\n */\n static void stmmac_mac_config_tx_queues_prio(struct stmmac_priv *priv)\n {\n-\tu8 tx_queues_count = priv-\u003eplat-\u003etx_queues_to_use;\n-\tu8 queue;\n-\tu32 prio;\n-\n-\tfor (queue = 0; queue \u003c tx_queues_count; queue++) {\n-\t\tif (!priv-\u003eplat-\u003etx_queues_cfg[queue].use_prio)\n-\t\t\tcontinue;\n+\tint i;\n \n-\t\tprio = priv-\u003eplat-\u003etx_queues_cfg[queue].prio;\n-\t\tstmmac_tx_queue_prio(priv, priv-\u003ehw, prio, queue);\n-\t}\n+\tfor (i = 0; i \u003c priv-\u003eplat-\u003etx_queues_to_use; i++)\n+\t\tstmmac_tx_queue_prio(priv, priv-\u003ehw,\n+\t\t\t\t priv-\u003exmit_qdisc.prio[i], i);\n }\n \n /**\n@@ -3604,7 +3598,7 @@ static void stmmac_mtl_configuration(struct stmmac_priv *priv)\n \t/* Configure MTL TX algorithms */\n \tif (tx_queues_count \u003e 1)\n \t\tstmmac_prog_mtl_tx_algorithms(priv, priv-\u003ehw,\n-\t\t\t\tpriv-\u003eplat-\u003etx_sched_algorithm);\n+\t\t\t\t\t priv-\u003exmit_qdisc.algo);\n \n \t/* Configure CBS in AVB TX queues */\n \tif (tx_queues_count \u003e 1)\n@@ -3778,7 +3772,7 @@ static int stmmac_hw_setup(struct net_device *dev)\n \n \t/* Configure real RX and TX queues */\n \tnetif_set_real_num_rx_queues(dev, priv-\u003eplat-\u003erx_queues_to_use);\n-\tnetif_set_real_num_tx_queues(dev, priv-\u003eplat-\u003etx_queues_to_use);\n+\tnetif_set_real_num_tx_queues(dev, priv-\u003exmit_qdisc.num_tx_queues);\n \n \t/* Start the ball rolling... */\n \tstmmac_start_all_dma(priv);\n@@ -7682,6 +7676,10 @@ int stmmac_reinit_queues(struct net_device *dev, u8 rx_cnt, u8 tx_cnt)\n \tstruct stmmac_priv *priv = netdev_priv(dev);\n \tint ret = 0, i;\n \n+\tif (priv-\u003exmit_qdisc.enabled \u0026\u0026\n+\t tx_cnt \u003c priv-\u003exmit_qdisc.num_tx_queues)\n+\t\treturn -EINVAL;\n+\n \tif (netif_running(dev))\n \t\tstmmac_release(dev);\n \n@@ -7689,6 +7687,9 @@ int stmmac_reinit_queues(struct net_device *dev, u8 rx_cnt, u8 tx_cnt)\n \n \tpriv-\u003eplat-\u003erx_queues_to_use = rx_cnt;\n \tpriv-\u003eplat-\u003etx_queues_to_use = tx_cnt;\n+\tif (!priv-\u003exmit_qdisc.enabled)\n+\t\tpriv-\u003exmit_qdisc.num_tx_queues = tx_cnt;\n+\n \tif (!netif_is_rxfh_configured(dev))\n \t\tfor (i = 0; i \u003c ARRAY_SIZE(priv-\u003erss.table); i++)\n \t\t\tpriv-\u003erss.table[i] = ethtool_rxfh_indir_default(i,\n@@ -7924,6 +7925,15 @@ static int __stmmac_dvr_probe(struct device *device,\n \tpriv-\u003ewol_irq = res-\u003ewol_irq;\n \tpriv-\u003esfty_irq = res-\u003esfty_irq;\n \n+\t/* Default xmit qdisc configuration */\n+\tfor (i = 0; i \u003c MTL_MAX_TX_QUEUES; i++) {\n+\t\tif (!priv-\u003eplat-\u003etx_queues_cfg[i].use_prio)\n+\t\t\tcontinue;\n+\n+\t\tpriv-\u003exmit_qdisc.prio[i] = priv-\u003eplat-\u003etx_queues_cfg[i].prio;\n+\t}\n+\tpriv-\u003exmit_qdisc.algo = priv-\u003eplat-\u003etx_sched_algorithm;\n+\n \tif (priv-\u003eplat-\u003eflags \u0026 STMMAC_FLAG_MULTI_MSI_EN) {\n \t\tret = stmmac_msi_init(priv, res);\n \t\tif (ret)\n@@ -8000,6 +8010,9 @@ static int __stmmac_dvr_probe(struct device *device,\n \tndev-\u003exdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT |\n \t\t\t NETDEV_XDP_ACT_XSK_ZEROCOPY;\n \n+\t/* Default qdisc num_tx_queues */\n+\tpriv-\u003exmit_qdisc.num_tx_queues = priv-\u003eplat-\u003etx_queues_to_use;\n+\n \tret = stmmac_tc_init(priv, priv);\n \tif (!ret) {\n \t\tndev-\u003ehw_features |= NETIF_F_HW_TC;\ndiff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c\nindex 42a00446e9b41..8bdc411e902f3 100644\n--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c\n+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c\n@@ -346,6 +346,9 @@ static int tc_setup_cbs(struct stmmac_priv *priv,\n \tif (!priv-\u003edma_cap.av)\n \t\treturn -EOPNOTSUPP;\n \n+\tif (qopt-\u003eenable \u0026\u0026 priv-\u003exmit_qdisc.prio_offload)\n+\t\treturn -EOPNOTSUPP;\n+\n \tport_transmit_rate_kbps = qopt-\u003eidleslope - qopt-\u003esendslope;\n \n \tif (qopt-\u003eenable) {\n@@ -1266,12 +1269,112 @@ static int stmmac_reset_tc_mqprio(struct net_device *ndev,\n {\n \tstruct stmmac_priv *priv = netdev_priv(ndev);\n \n+\tif (priv-\u003exmit_qdisc.prio_offload) {\n+\t\tint i;\n+\n+\t\tfor (i = 0; i \u003c priv-\u003eplat-\u003etx_queues_to_use; i++) {\n+\t\t\tu32 prio;\n+\n+\t\t\tif (priv-\u003eplat-\u003etx_queues_cfg[i].use_prio)\n+\t\t\t\tprio = priv-\u003eplat-\u003etx_queues_cfg[i].prio;\n+\t\t\telse\n+\t\t\t\tprio = 0;\n+\n+\t\t\tstmmac_tx_queue_prio(priv, priv-\u003ehw, prio, i);\n+\t\t\tpriv-\u003exmit_qdisc.prio[i] = prio;\n+\t\t}\n+\n+\t\tstmmac_prog_mtl_tx_algorithms(priv, priv-\u003ehw,\n+\t\t\t\t\t priv-\u003eplat-\u003etx_sched_algorithm);\n+\t\tpriv-\u003exmit_qdisc.algo = priv-\u003eplat-\u003etx_sched_algorithm;\n+\t\tpriv-\u003exmit_qdisc.prio_offload = false;\n+\t}\n+\n+\tpriv-\u003exmit_qdisc.num_tx_queues = priv-\u003eplat-\u003etx_queues_to_use;\n+\tpriv-\u003exmit_qdisc.enabled = false;\n+\n \tnetdev_reset_tc(ndev);\n \tnetif_set_real_num_tx_queues(ndev, priv-\u003eplat-\u003etx_queues_to_use);\n \n \treturn stmmac_fpe_map_preemption_class(priv, ndev, extack, 0);\n }\n \n+static void tc_mqprio_config_queue_prio(struct stmmac_priv *priv,\n+\t\t\t\t\tstruct tc_mqprio_qopt *qopt)\n+{\n+\tint i;\n+\n+\tfor (i = 0; i \u003c priv-\u003eplat-\u003etx_queues_to_use; i++) {\n+\t\tu32 prio = 0;\n+\t\tint j;\n+\n+\t\tfor (j = 0; j \u003c qopt-\u003enum_tc; j++) {\n+\t\t\tint p;\n+\n+\t\t\tif (qopt-\u003eoffset[j] != i)\n+\t\t\t\tcontinue;\n+\n+\t\t\t/* The PSTQX/PSTC priority map is 8 bits wide, so only\n+\t\t\t * priorities 0-7 can be represented in hardware.\n+\t\t\t * Priorities 8-15 are handled in software by the\n+\t\t\t * kernel through the netdev prio_tc_map.\n+\t\t\t */\n+\t\t\tfor (p = 0; p \u003c 8; p++) {\n+\t\t\t\tif (qopt-\u003eprio_tc_map[p] == j)\n+\t\t\t\t\tprio |= BIT(p);\n+\t\t\t}\n+\t\t\tbreak;\n+\t\t}\n+\n+\t\tstmmac_tx_queue_prio(priv, priv-\u003ehw, prio, i);\n+\t\tpriv-\u003exmit_qdisc.prio[i] = prio;\n+\t}\n+\n+\tstmmac_prog_mtl_tx_algorithms(priv, priv-\u003ehw, MTL_TX_ALGORITHM_SP);\n+\tpriv-\u003exmit_qdisc.algo = MTL_TX_ALGORITHM_SP;\n+\tpriv-\u003exmit_qdisc.prio_offload = true;\n+}\n+\n+static int tc_mqprio_validate_chan_mode(struct stmmac_priv *priv,\n+\t\t\t\t\tstruct tc_mqprio_qopt_offload *mqprio)\n+{\n+\tstruct plat_stmmacenet_data *pdata = priv-\u003eplat;\n+\tstruct tc_mqprio_qopt *qopt = \u0026mqprio-\u003eqopt;\n+\tint i;\n+\n+\tif (!priv-\u003edma_cap.dcben) {\n+\t\tNL_SET_ERR_MSG_MOD(mqprio-\u003eextack,\n+\t\t\t\t \"hw DCB is required to offload mqprio\");\n+\t\treturn -EOPNOTSUPP;\n+\t}\n+\n+\t/* Forcing strict priority conflicts with the CBS algorithm\n+\t * of AVB queues, so reject the offload when any queue is\n+\t * configured as AVB.\n+\t */\n+\tfor (i = 0; i \u003c pdata-\u003etx_queues_to_use; i++) {\n+\t\tif (pdata-\u003etx_queues_cfg[i].mode_to_use == MTL_QUEUE_AVB) {\n+\t\t\tNL_SET_ERR_MSG_MOD(mqprio-\u003eextack,\n+\t\t\t\t\t \"SP conflicts with AVB queues\");\n+\t\t\treturn -EOPNOTSUPP;\n+\t\t}\n+\t}\n+\n+\tfor (i = 0; i \u003c qopt-\u003enum_tc; i++) {\n+\t\t/* The offload switches the MTL scheduler to strict\n+\t\t * priority, which only supports a 1:1 TC to TX queue\n+\t\t * mapping.\n+\t\t */\n+\t\tif (qopt-\u003ecount[i] \u003e 1 || qopt-\u003eoffset[i] != i) {\n+\t\t\tNL_SET_ERR_MSG_MOD(mqprio-\u003eextack,\n+\t\t\t\t\t \"SP requires 1:1 TXQ map\");\n+\t\t\treturn -EOPNOTSUPP;\n+\t\t}\n+\t}\n+\n+\treturn 0;\n+}\n+\n static int tc_setup_dwmac510_mqprio(struct stmmac_priv *priv,\n \t\t\t\t struct tc_mqprio_qopt_offload *mqprio)\n {\n@@ -1282,23 +1385,22 @@ static int tc_setup_dwmac510_mqprio(struct stmmac_priv *priv,\n \tstruct tc_mqprio_qopt *qopt = \u0026mqprio-\u003eqopt;\n \tstruct net_device *ndev = priv-\u003edev;\n \tu8 ndev_prio_tc_map[TC_BITMASK + 1];\n-\tint i, err, ndev_ntc;\n+\tint i, err, ndev_ntc, mode;\n \n \tif (!qopt-\u003enum_tc)\n \t\treturn stmmac_reset_tc_mqprio(ndev, extack);\n \n-\tif (qopt-\u003enum_tc \u003e ARRAY_SIZE(tc_to_txq))\n+\tif (qopt-\u003enum_tc \u003e priv-\u003eplat-\u003etx_queues_to_use)\n \t\treturn -EINVAL;\n \n-\t/* save current tc values for reset */\n-\tndev_ntc = netdev_get_num_tc(ndev);\n-\tfor (i = 0; i \u003c ARRAY_SIZE(ndev-\u003etc_to_txq); i++)\n-\t\tndev_tc_to_txq[i].combined =\n-\t\t\tREAD_ONCE(ndev-\u003etc_to_txq[i].combined);\n-\tfor (i = 0; i \u003c ARRAY_SIZE(ndev_prio_tc_map); i++)\n-\t\tndev_prio_tc_map[i] = READ_ONCE(ndev-\u003eprio_tc_map[i]);\n-\n \tfor (i = 0; i \u003c qopt-\u003enum_tc; i++) {\n+\t\tif (qopt-\u003eoffset[i] + qopt-\u003ecount[i] \u003e\n+\t\t priv-\u003eplat-\u003etx_queues_to_use) {\n+\t\t\tNL_SET_ERR_MSG_MOD(extack,\n+\t\t\t\t\t \"Queues exceed hw TX queues\");\n+\t\t\treturn -EINVAL;\n+\t\t}\n+\n \t\ttc_to_txq[i] = (struct netdev_tc_txq) {\n \t\t\t.count = qopt-\u003ecount[i],\n \t\t\t.offset = qopt-\u003eoffset[i],\n@@ -1306,6 +1408,22 @@ static int tc_setup_dwmac510_mqprio(struct stmmac_priv *priv,\n \t\tnum_tx_queues += qopt-\u003ecount[i];\n \t}\n \n+\tmode = mqprio-\u003eflags \u0026 TC_MQPRIO_F_MODE ? mqprio-\u003emode\n+\t\t\t\t\t\t: TC_MQPRIO_MODE_DCB;\n+\tif (mode == TC_MQPRIO_MODE_CHANNEL) {\n+\t\terr = tc_mqprio_validate_chan_mode(priv, mqprio);\n+\t\tif (err)\n+\t\t\treturn err;\n+\t}\n+\n+\t/* save current tc values for reset */\n+\tndev_ntc = netdev_get_num_tc(ndev);\n+\tfor (i = 0; i \u003c ARRAY_SIZE(ndev-\u003etc_to_txq); i++)\n+\t\tndev_tc_to_txq[i].combined =\n+\t\t\tREAD_ONCE(ndev-\u003etc_to_txq[i].combined);\n+\tfor (i = 0; i \u003c ARRAY_SIZE(ndev_prio_tc_map); i++)\n+\t\tndev_prio_tc_map[i] = READ_ONCE(ndev-\u003eprio_tc_map[i]);\n+\n \terr = stmmac_set_ndev_tcs(ndev, qopt-\u003enum_tc, tc_to_txq);\n \tif (err)\n \t\tgoto error_reset_tc;\n@@ -1320,6 +1438,12 @@ static int tc_setup_dwmac510_mqprio(struct stmmac_priv *priv,\n \tif (err)\n \t\tgoto error_reset_num_tx_queues;\n \n+\tif (mode == TC_MQPRIO_MODE_CHANNEL)\n+\t\ttc_mqprio_config_queue_prio(priv, qopt);\n+\n+\tpriv-\u003exmit_qdisc.num_tx_queues = num_tx_queues;\n+\tpriv-\u003exmit_qdisc.enabled = true;\n+\n \treturn 0;\n \n error_reset_num_tx_queues:\n"
} |
| 2/1 | 2026/09/29 19:20 | agent | patch-evaluator |
0mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch exclusively modifies the STMicroelectronics Ethernet driver (stmmac: stmmac_main.c, stmmac_tc.c, stmmac_fpe.c, and stmmac.h). This driver targets specific physical hardware/SoCs and vendor-specific PCI devices that are not emulated in standard virtualized environments (QEMU/GCE) on amd64, making the modified code structurally unreachable for fuzzing.",
"WorthFuzzing": false
}Instruction: You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.
IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.
================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.
- REACHABILITY IS THE PRIMARY GATE:
Fuzzing can only discover bugs in code that can actually execute in standard virtualized
environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
regardless of whether it adds assertions or complex logic.
- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
Patch authors routinely label changes as "cleanups", "refactorings", or state
"No functional change intended". Do NOT take these claims at face value.
Code refactorings that rearrange logic, introduce helper functions, or alter state management
in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
If reachable executable code is modified or refactored, it MUST be fuzzed.
- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
Even if the author believes the invariant always holds, fuzzing is essential to verify whether
an unusual sequence of operations can violate it.
================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:
- Non-kernel and non-executable changes:
* Modifications to Documentation/, comments, or spelling fixes.
* User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
that do not affect the compiled kernel image (vmlinux) or kernel modules.
* Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
that do not alter control flow or data structures.
* Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
* Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
* Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
physical PCI hot-unplug or manual sysfs driver unbinding.
* Code paths exclusive to architectures other than the target architecture.
================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
* Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
* Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
* Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
* Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).
================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:
- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
Do NOT list generic, ubiquitous functions called by almost every program in the corpus
(including, but not limited to: general memory allocators and deallocators, page fault
and trap handlers, or core synchronization primitives; this is not an exhaustive list).
Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
which severely dilutes fuzzing effort away from the actual changes.
- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
List functions that specifically implement the logic being added or altered, or direct API entrypoints
for the subsystem feature under review.
- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).
================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt: Target architecture: amd64
For your convenience, here is the diff of the changes:
commit c393c6570fe6c1d9790e2d7aed4ab5502c13ac96
Author: syz-cluster <triage@syzkaller.com>
Date: Tue Sep 29 19:20:39 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
index 4fc96b317d79c..40eab899027b4 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac.h
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
@@ -299,6 +299,15 @@ struct stmmac_priv {
/* Protect est parameters */
struct mutex est_lock;
struct stmmac_est *est;
+
+ struct {
+ bool enabled;
+ u32 prio[MTL_MAX_TX_QUEUES];
+ bool prio_offload;
+ u32 num_tx_queues;
+ u8 algo;
+ } xmit_qdisc;
+
struct dma_features dma_cap;
struct stmmac_counters mmc;
int hw_cap_support;
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_fpe.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_fpe.c
index c889204a7aa5d..b6b5ef7c8fc48 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_fpe.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_fpe.c
@@ -230,7 +230,7 @@ int dwmac5_fpe_map_preemption_class(struct net_device *ndev,
if (count == 1)
continue;
- if (priv->plat->tx_sched_algorithm == MTL_TX_ALGORITHM_SP) {
+ if (priv->xmit_qdisc.algo == MTL_TX_ALGORITHM_SP) {
NL_SET_ERR_MSG_MOD(extack, ALG_ERR_MSG);
return -EINVAL;
}
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 3ad9252bf6aea..1c25d1c129d4c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -3533,17 +3533,11 @@ static void stmmac_mac_config_rx_queues_prio(struct stmmac_priv *priv)
*/
static void stmmac_mac_config_tx_queues_prio(struct stmmac_priv *priv)
{
- u8 tx_queues_count = priv->plat->tx_queues_to_use;
- u8 queue;
- u32 prio;
-
- for (queue = 0; queue < tx_queues_count; queue++) {
- if (!priv->plat->tx_queues_cfg[queue].use_prio)
- continue;
+ int i;
- prio = priv->plat->tx_queues_cfg[queue].prio;
- stmmac_tx_queue_prio(priv, priv->hw, prio, queue);
- }
+ for (i = 0; i < priv->plat->tx_queues_to_use; i++)
+ stmmac_tx_queue_prio(priv, priv->hw,
+ priv->xmit_qdisc.prio[i], i);
}
/**
@@ -3604,7 +3598,7 @@ static void stmmac_mtl_configuration(struct stmmac_priv *priv)
/* Configure MTL TX algorithms */
if (tx_queues_count > 1)
stmmac_prog_mtl_tx_algorithms(priv, priv->hw,
- priv->plat->tx_sched_algorithm);
+ priv->xmit_qdisc.algo);
/* Configure CBS in AVB TX queues */
if (tx_queues_count > 1)
@@ -3778,7 +3772,7 @@ static int stmmac_hw_setup(struct net_device *dev)
/* Configure real RX and TX queues */
netif_set_real_num_rx_queues(dev, priv->plat->rx_queues_to_use);
- netif_set_real_num_tx_queues(dev, priv->plat->tx_queues_to_use);
+ netif_set_real_num_tx_queues(dev, priv->xmit_qdisc.num_tx_queues);
/* Start the ball rolling... */
stmmac_start_all_dma(priv);
@@ -7682,6 +7676,10 @@ int stmmac_reinit_queues(struct net_device *dev, u8 rx_cnt, u8 tx_cnt)
struct stmmac_priv *priv = netdev_priv(dev);
int ret = 0, i;
+ if (priv->xmit_qdisc.enabled &&
+ tx_cnt < priv->xmit_qdisc.num_tx_queues)
+ return -EINVAL;
+
if (netif_running(dev))
stmmac_release(dev);
@@ -7689,6 +7687,9 @@ int stmmac_reinit_queues(struct net_device *dev, u8 rx_cnt, u8 tx_cnt)
priv->plat->rx_queues_to_use = rx_cnt;
priv->plat->tx_queues_to_use = tx_cnt;
+ if (!priv->xmit_qdisc.enabled)
+ priv->xmit_qdisc.num_tx_queues = tx_cnt;
+
if (!netif_is_rxfh_configured(dev))
for (i = 0; i < ARRAY_SIZE(priv->rss.table); i++)
priv->rss.table[i] = ethtool_rxfh_indir_default(i,
@@ -7924,6 +7925,15 @@ static int __stmmac_dvr_probe(struct device *device,
priv->wol_irq = res->wol_irq;
priv->sfty_irq = res->sfty_irq;
+ /* Default xmit qdisc configuration */
+ for (i = 0; i < MTL_MAX_TX_QUEUES; i++) {
+ if (!priv->plat->tx_queues_cfg[i].use_prio)
+ continue;
+
+ priv->xmit_qdisc.prio[i] = priv->plat->tx_queues_cfg[i].prio;
+ }
+ priv->xmit_qdisc.algo = priv->plat->tx_sched_algorithm;
+
if (priv->plat->flags & STMMAC_FLAG_MULTI_MSI_EN) {
ret = stmmac_msi_init(priv, res);
if (ret)
@@ -8000,6 +8010,9 @@ static int __stmmac_dvr_probe(struct device *device,
ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT |
NETDEV_XDP_ACT_XSK_ZEROCOPY;
+ /* Default qdisc num_tx_queues */
+ priv->xmit_qdisc.num_tx_queues = priv->plat->tx_queues_to_use;
+
ret = stmmac_tc_init(priv, priv);
if (!ret) {
ndev->hw_features |= NETIF_F_HW_TC;
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
index 42a00446e9b41..8bdc411e902f3 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
@@ -346,6 +346,9 @@ static int tc_setup_cbs(struct stmmac_priv *priv,
if (!priv->dma_cap.av)
return -EOPNOTSUPP;
+ if (qopt->enable && priv->xmit_qdisc.prio_offload)
+ return -EOPNOTSUPP;
+
port_transmit_rate_kbps = qopt->idleslope - qopt->sendslope;
if (qopt->enable) {
@@ -1266,12 +1269,112 @@ static int stmmac_reset_tc_mqprio(struct net_device *ndev,
{
struct stmmac_priv *priv = netdev_priv(ndev);
+ if (priv->xmit_qdisc.prio_offload) {
+ int i;
+
+ for (i = 0; i < priv->plat->tx_queues_to_use; i++) {
+ u32 prio;
+
+ if (priv->plat->tx_queues_cfg[i].use_prio)
+ prio = priv->plat->tx_queues_cfg[i].prio;
+ else
+ prio = 0;
+
+ stmmac_tx_queue_prio(priv, priv->hw, prio, i);
+ priv->xmit_qdisc.prio[i] = prio;
+ }
+
+ stmmac_prog_mtl_tx_algorithms(priv, priv->hw,
+ priv->plat->tx_sched_algorithm);
+ priv->xmit_qdisc.algo = priv->plat->tx_sched_algorithm;
+ priv->xmit_qdisc.prio_offload = false;
+ }
+
+ priv->xmit_qdisc.num_tx_queues = priv->plat->tx_queues_to_use;
+ priv->xmit_qdisc.enabled = false;
+
netdev_reset_tc(ndev);
netif_set_real_num_tx_queues(ndev, priv->plat->tx_queues_to_use);
return stmmac_fpe_map_preemption_class(priv, ndev, extack, 0);
}
+static void tc_mqprio_config_queue_prio(struct stmmac_priv *priv,
+ struct tc_mqprio_qopt *qopt)
+{
+ int i;
+
+ for (i = 0; i < priv->plat->tx_queues_to_use; i++) {
+ u32 prio = 0;
+ int j;
+
+ for (j = 0; j < qopt->num_tc; j++) {
+ int p;
+
+ if (qopt->offset[j] != i)
+ continue;
+
+ /* The PSTQX/PSTC priority map is 8 bits wide, so only
+ * priorities 0-7 can be represented in hardware.
+ * Priorities 8-15 are handled in software by the
+ * kernel through the netdev prio_tc_map.
+ */
+ for (p = 0; p < 8; p++) {
+ if (qopt->prio_tc_map[p] == j)
+ prio |= BIT(p);
+ }
+ break;
+ }
+
+ stmmac_tx_queue_prio(priv, priv->hw, prio, i);
+ priv->xmit_qdisc.prio[i] = prio;
+ }
+
+ stmmac_prog_mtl_tx_algorithms(priv, priv->hw, MTL_TX_ALGORITHM_SP);
+ priv->xmit_qdisc.algo = MTL_TX_ALGORITHM_SP;
+ priv->xmit_qdisc.prio_offload = true;
+}
+
+static int tc_mqprio_validate_chan_mode(struct stmmac_priv *priv,
+ struct tc_mqprio_qopt_offload *mqprio)
+{
+ struct plat_stmmacenet_data *pdata = priv->plat;
+ struct tc_mqprio_qopt *qopt = &mqprio->qopt;
+ int i;
+
+ if (!priv->dma_cap.dcben) {
+ NL_SET_ERR_MSG_MOD(mqprio->extack,
+ "hw DCB is required to offload mqprio");
+ return -EOPNOTSUPP;
+ }
+
+ /* Forcing strict priority conflicts with the CBS algorithm
+ * of AVB queues, so reject the offload when any queue is
+ * configured as AVB.
+ */
+ for (i = 0; i < pdata->tx_queues_to_use; i++) {
+ if (pdata->tx_queues_cfg[i].mode_to_use == MTL_QUEUE_AVB) {
+ NL_SET_ERR_MSG_MOD(mqprio->extack,
+ "SP conflicts with AVB queues");
+ return -EOPNOTSUPP;
+ }
+ }
+
+ for (i = 0; i < qopt->num_tc; i++) {
+ /* The offload switches the MTL scheduler to strict
+ * priority, which only supports a 1:1 TC to TX queue
+ * mapping.
+ */
+ if (qopt->count[i] > 1 || qopt->offset[i] != i) {
+ NL_SET_ERR_MSG_MOD(mqprio->extack,
+ "SP requires 1:1 TXQ map");
+ return -EOPNOTSUPP;
+ }
+ }
+
+ return 0;
+}
+
static int tc_setup_dwmac510_mqprio(struct stmmac_priv *priv,
struct tc_mqprio_qopt_offload *mqprio)
{
@@ -1282,23 +1385,22 @@ static int tc_setup_dwmac510_mqprio(struct stmmac_priv *priv,
struct tc_mqprio_qopt *qopt = &mqprio->qopt;
struct net_device *ndev = priv->dev;
u8 ndev_prio_tc_map[TC_BITMASK + 1];
- int i, err, ndev_ntc;
+ int i, err, ndev_ntc, mode;
if (!qopt->num_tc)
return stmmac_reset_tc_mqprio(ndev, extack);
- if (qopt->num_tc > ARRAY_SIZE(tc_to_txq))
+ if (qopt->num_tc > priv->plat->tx_queues_to_use)
return -EINVAL;
- /* save current tc values for reset */
- ndev_ntc = netdev_get_num_tc(ndev);
- for (i = 0; i < ARRAY_SIZE(ndev->tc_to_txq); i++)
- ndev_tc_to_txq[i].combined =
- READ_ONCE(ndev->tc_to_txq[i].combined);
- for (i = 0; i < ARRAY_SIZE(ndev_prio_tc_map); i++)
- ndev_prio_tc_map[i] = READ_ONCE(ndev->prio_tc_map[i]);
-
for (i = 0; i < qopt->num_tc; i++) {
+ if (qopt->offset[i] + qopt->count[i] >
+ priv->plat->tx_queues_to_use) {
+ NL_SET_ERR_MSG_MOD(extack,
+ "Queues exceed hw TX queues");
+ return -EINVAL;
+ }
+
tc_to_txq[i] = (struct netdev_tc_txq) {
.count = qopt->count[i],
.offset = qopt->offset[i],
@@ -1306,6 +1408,22 @@ static int tc_setup_dwmac510_mqprio(struct stmmac_priv *priv,
num_tx_queues += qopt->count[i];
}
+ mode = mqprio->flags & TC_MQPRIO_F_MODE ? mqprio->mode
+ : TC_MQPRIO_MODE_DCB;
+ if (mode == TC_MQPRIO_MODE_CHANNEL) {
+ err = tc_mqprio_validate_chan_mode(priv, mqprio);
+ if (err)
+ return err;
+ }
+
+ /* save current tc values for reset */
+ ndev_ntc = netdev_get_num_tc(ndev);
+ for (i = 0; i < ARRAY_SIZE(ndev->tc_to_txq); i++)
+ ndev_tc_to_txq[i].combined =
+ READ_ONCE(ndev->tc_to_txq[i].combined);
+ for (i = 0; i < ARRAY_SIZE(ndev_prio_tc_map); i++)
+ ndev_prio_tc_map[i] = READ_ONCE(ndev->prio_tc_map[i]);
+
err = stmmac_set_ndev_tcs(ndev, qopt->num_tc, tc_to_txq);
if (err)
goto error_reset_tc;
@@ -1320,6 +1438,12 @@ static int tc_setup_dwmac510_mqprio(struct stmmac_priv *priv,
if (err)
goto error_reset_num_tx_queues;
+ if (mode == TC_MQPRIO_MODE_CHANNEL)
+ tc_mqprio_config_queue_prio(priv, qopt);
+
+ priv->xmit_qdisc.num_tx_queues = num_tx_queues;
+ priv->xmit_qdisc.enabled = true;
+
return 0;
error_reset_num_tx_queues:
|
| 3/2 | 2026/09/29 19:20 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 7518 output: 39 thoughts: 238 Thoughts: **Analyzing This Patch for Fuzzing Potential** Okay, let's dive into this. My initial assessment hinges on understanding this patch's impact and determining if it presents a worthwhile fuzzing target. First, I need to know *what* it's doing. Looking at the file list, it's touching several files within the `drivers/net/ethernet/stmicro/stmmac/` directory. Specifically, it's modifying `stmmac.h`, `stmmac_fpe.c`, `stmmac_main.c`, and `stmmac_tc.c`. Right, `stmmac`... that's the STMicroelectronics Synopsys DesignWare Ethernet MAC driver. Now, the critical question is availability. Is this driver reachable within the standard QEMU amd64 environment that we're using with syzkaller? Does it bind to a common bus, or is it specific to certain hardware? To figure this out I'll need to run a quick `grep` through the relevant Kconfig files or consult the driver's documentation to see which platforms it supports and if we can hit it in our standard setup. If it's not present in the standard configuration, it's not a priority for immediate fuzzing efforts. |
| 4/2 | 2026/09/29 19:20 | tool | grepper |
0mArgs:{
"Expression": "STMMAC",
"PathPrefix": "drivers/net/ethernet/stmicro/stmmac/Kconfig"
}Results: {
"Output": "drivers/net/ethernet/stmicro/stmmac/Kconfig-1-# SPDX-License-Identifier: GPL-2.0-only\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:2:config STMMAC_ETH\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-3-\ttristate \"STMicroelectronics Multi-Gigabit Ethernet driver\"\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-17-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:18:if STMMAC_ETH\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-19-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:20:config STMMAC_SELFTESTS\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:21:\tbool \"Support for STMMAC Selftests\"\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-22-\tdepends on INET\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-24-\thelp\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:25:\t This adds support for STMMAC Selftests using ethtool. Enable this\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-26-\t feature if you are facing problems with your HW and submit the test\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-28-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:29:config STMMAC_PLATFORM\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:30:\ttristate \"STMMAC Platform bus support\"\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-31-\tselect MFD_SYSCON\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-41-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:42:if STMMAC_PLATFORM\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-43-\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=52=config DWMAC_GENERIC\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-53-\ttristate \"Generic driver for DWMAC\"\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:54:\tdefault STMMAC_PLATFORM\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-55-\thelp\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=375=config DWMAC_VISCONTI\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-381-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:382:endif # STMMAC_PLATFORM\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-383-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:384:config STMMAC_LIBPCI\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-385-\ttristate\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=399=config DWMAC_LOONGSON\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-403-\tdepends on COMMON_CLK\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:404:\tselect STMMAC_LIBPCI\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-405-\thelp\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig=409=config DWMAC_MOTORCOMM\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-412-\tselect MOTORCOMM_PHY\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:413:\tselect STMMAC_LIBPCI\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-414-\thelp\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-417-\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:418:config STMMAC_PCI\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:419:\ttristate \"STMMAC PCI bus support\"\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-420-\tdepends on PCI\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-421-\tdepends on COMMON_CLK\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:422:\tselect STMMAC_LIBPCI\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-423-\thelp\n--\ndrivers/net/ethernet/stmicro/stmmac/Kconfig-430-\t If unsure, say N.\ndrivers/net/ethernet/stmicro/stmmac/Kconfig:431:endif # STMMAC_ETH\n"
} |
| 5/2 | 2026/09/29 19:20 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 9378 output: 39 thoughts: 430 Thoughts: **My QEMU and stmmac Investigation** Okay, so `stmmac` is a common Ethernet MAC driver for Synopsys DesignWare MAC (DWMAC) and is widely used across different System-on-Chips. My immediate question is: does QEMU emulate the `stmmac` or `dwmac` specifically? That's what I need to figure out. I'm wondering if a standard QEMU amd64 configuration includes an emulated DWMAC device out-of-the-box. I'll need to check the QEMU documentation or source code for support, perhaps by looking at virtio or USB device emulation. Hold on, before I dive too deep, let's refresh some context. Section 2 of the document I'm looking at describes "structurally unreachable hardware," specifically mentioning things that need physical cards, like vendor-specific PCIe switches and drivers. Alright, so what about Ethernet drivers in particular? That's what I really need to know. Let's see what network devices QEMU *does* emulate. Okay, it looks like it supports things like `e1000`, `igb`, `rtl8139`, `pcnet`, `virtio-net-pci` and others. But where does `dwmac` or `stmmac` fit into all this? Does QEMU emulate it for ARM, ARC, RISC-V or MIPS architectures? But wait, even if there is emulation for other architectures, the target architecture here is `amd64`. So the key question becomes, can `stmmac` even be probed on an amd64 QEMU setup? I'm going to have to dive into the source code, specifically `stmmac_pci.c` or any other platform-specific `stmmac` drivers. Let's start there and see if there are any PCI IDs or platform definitions that might shed some light. |
| 6/2 | 2026/09/29 19:20 | tool | grepper |
0mArgs:{
"Expression": "MODULE_DEVICE_TABLE",
"PathPrefix": "drivers/net/ethernet/stmicro/stmmac/"
}Results: {
"Output": "drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c=119=static const struct of_device_id anarion_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-122-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:123:MODULE_DEVICE_TABLE(of, anarion_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-124-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=353=static const struct of_device_id dwc_eth_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-358-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:359:MODULE_DEVICE_TABLE(of, dwc_eth_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-360-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c=341=static const struct of_device_id eic7700_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-350-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:351:MODULE_DEVICE_TABLE(of, eic7700_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-352-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c=52=static const struct of_device_id dwmac_generic_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-66-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c:67:MODULE_DEVICE_TABLE(of, dwmac_generic_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-68-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c=384=static const struct of_device_id imx_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-389-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:390:MODULE_DEVICE_TABLE(of, imx_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-391-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c=262=static const struct of_device_id ingenic_mac_of_matches[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-269-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c:270:MODULE_DEVICE_TABLE(of, ingenic_mac_of_matches);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-271-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c=36=static const struct of_device_id intel_eth_plat_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-39-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:40:MODULE_DEVICE_TABLE(of, intel_eth_plat_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-41-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c=1395=static const struct pci_device_id intel_eth_pci_id_table[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-1414-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:1415:MODULE_DEVICE_TABLE(pci, intel_eth_pci_id_table);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-1416-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c=491=static const struct of_device_id ipq806x_gmac_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-494-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c:495:MODULE_DEVICE_TABLE(of, ipq806x_gmac_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-496-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c=596=static const struct pci_device_id loongson_dwmac_id_table[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-601-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:602:MODULE_DEVICE_TABLE(pci, loongson_dwmac_id_table);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-603-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c=216=static const struct of_device_id ls1x_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c-226-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c:227:MODULE_DEVICE_TABLE(of, ls1x_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c-228-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c=71=static const struct of_device_id lpc18xx_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-74-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c:75:MODULE_DEVICE_TABLE(of, lpc18xx_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-76-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c=662=static const struct of_device_id mediatek_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-669-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c:670:MODULE_DEVICE_TABLE(of, mediatek_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-671-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c=76=static const struct of_device_id meson6_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-79-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c:80:MODULE_DEVICE_TABLE(of, meson6_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-81-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c=482=static const struct of_device_id meson8b_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-504-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c:505:MODULE_DEVICE_TABLE(of, meson8b_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-506-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c=367=static const struct pci_device_id dwmac_motorcomm_pci_id_table[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c-370-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c:371:MODULE_DEVICE_TABLE(pci, dwmac_motorcomm_pci_id_table);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c-372-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c=118=static const struct of_device_id nvt_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c-121-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c:122:MODULE_DEVICE_TABLE(of, nvt_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c-123-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c=800=static const struct of_device_id qcom_ethqos_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c-806-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c:807:MODULE_DEVICE_TABLE(of, qcom_ethqos_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c-808-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c=216=static const struct of_device_id renesas_gbeth_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c-221-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c:222:MODULE_DEVICE_TABLE(of, renesas_gbeth_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c-223-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c=1619=static const struct of_device_id rk_gmac_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1637-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:1638:MODULE_DEVICE_TABLE(of, rk_gmac_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1639-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c=75=static const struct of_device_id rzn1_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-78-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c:79:MODULE_DEVICE_TABLE(of, rzn1_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-80-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c=216=static const struct of_device_id s32_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c-219-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c:220:MODULE_DEVICE_TABLE(of, s32_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c-221-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c=673=static const struct of_device_id socfpga_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-678-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c:679:MODULE_DEVICE_TABLE(of, socfpga_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-680-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c=68=static const struct of_device_id sophgo_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-72-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:73:MODULE_DEVICE_TABLE(of, sophgo_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-74-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c=210=static const struct of_device_id spacemit_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-213-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c:214:MODULE_DEVICE_TABLE(of, spacemit_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-215-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c=160=static const struct of_device_id starfive_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-164-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c:165:MODULE_DEVICE_TABLE(of, starfive_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-166-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c=296=static const struct of_device_id sti_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c-299-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c:300:MODULE_DEVICE_TABLE(of, sti_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c-301-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c=662=static const struct of_device_id stm32_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-668-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c:669:MODULE_DEVICE_TABLE(of, stm32_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-670-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c=141=static const struct of_device_id sun55i_gmac200_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c-144-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c:145:MODULE_DEVICE_TABLE(of, sun55i_gmac200_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c-146-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c=1272=static const struct of_device_id sun8i_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1286-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c:1287:MODULE_DEVICE_TABLE(of, sun8i_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1288-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c=150=static const struct of_device_id sun7i_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c-153-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c:154:MODULE_DEVICE_TABLE(of, sun7i_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c-155-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c=397=static const struct of_device_id tegra_mgbe_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-400-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c:401:MODULE_DEVICE_TABLE(of, tegra_mgbe_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-402-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c=267=static const struct of_device_id thead_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c-270-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c:271:MODULE_DEVICE_TABLE(of, thead_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c-272-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ultrarisc.c=35=static const struct of_device_id ultrarisc_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ultrarisc.c-38-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ultrarisc.c:39:MODULE_DEVICE_TABLE(of, ultrarisc_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ultrarisc.c-40-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c=255=static const struct of_device_id visconti_eth_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-258-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c:259:MODULE_DEVICE_TABLE(of, visconti_eth_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-260-\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c=203=static const struct pci_device_id stmmac_id_table[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-209-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:210:MODULE_DEVICE_TABLE(pci, stmmac_id_table);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-211-\n"
} |
| 7/2 | 2026/09/29 19:20 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 15777 output: 50 thoughts: 63 Thoughts: Okay, let's dive into this. I need to get a handle on the landscape of hardware support across various STMMAC variants. I'm thinking specifically about which devices the drivers `stmmac_pci.c`, `dwmac-intel.c`, and `dwmac-loongson.c`, among others, actually claim to support. My goal is to quickly cross-reference a specific configuration and understand its potential driver compatibility. **Analyzing Driver Support for STMMAC and Associated NICs** Alright, my first step will be to examine the device list within the `stmmac_pci.c` file itself to see if the target hardware is present. I'll focus on lines 200 through 220 within `stmmac_pci.c`. This range should give me a solid overview of the supported PCI device IDs or other relevant identifiers that map the driver to particular hardware configurations. This will provide a solid base for cross-referencing and understanding the broader support picture. |
| 8/2 | 2026/09/29 19:20 | tool | read-file |
0mArgs:{
"File": "drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c",
"FirstLine": 200,
"LineCount": 30
}Results: {
"Contents": " 200:\t#define PCI_DEVICE_ID_STMMAC_STMMAC\t\t0x1108\n 201:\t#define PCI_DEVICE_ID_SYNOPSYS_GMAC5_ID\t\t0x7102\n 202:\t\n 203:\tstatic const struct pci_device_id stmmac_id_table[] = {\n 204:\t\t{ PCI_DEVICE_DATA(STMMAC, STMMAC, \u0026stmmac_pci_info) },\n 205:\t\t{ PCI_DEVICE_DATA(STMICRO, MAC, \u0026stmmac_pci_info) },\n 206:\t\t{ PCI_DEVICE_DATA(SYNOPSYS, GMAC5_ID, \u0026snps_gmac5_pci_info) },\n 207:\t\t{}\n 208:\t};\n 209:\t\n 210:\tMODULE_DEVICE_TABLE(pci, stmmac_id_table);\n 211:\t\n 212:\tstatic struct pci_driver stmmac_pci_driver = {\n 213:\t\t.name = STMMAC_RESOURCE_NAME,\n 214:\t\t.id_table = stmmac_id_table,\n 215:\t\t.probe = stmmac_pci_probe,\n 216:\t\t.remove = stmmac_pci_remove,\n 217:\t\t.driver = {\n 218:\t\t\t.pm = \u0026stmmac_simple_pm_ops,\n 219:\t\t},\n 220:\t};\n 221:\t\n 222:\tmodule_pci_driver(stmmac_pci_driver);\n 223:\t\n 224:\tMODULE_DESCRIPTION(\"STMMAC 10/100/1000 Ethernet PCI driver\");\n 225:\tMODULE_AUTHOR(\"Rayagond Kokatanur \u003crayagond.kokatanur@vayavyalabs.com\u003e\");\n 226:\tMODULE_AUTHOR(\"Giuseppe Cavallaro \u003cpeppe.cavallaro@st.com\u003e\");\n 227:\tMODULE_LICENSE(\"GPL\");\n"
} |
| 9/2 | 2026/09/29 19:20 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 16660 output: 32 thoughts: 648 Thoughts: **QEMU and STMMAC Emulation: A Deep Dive** Okay, so I'm trying to figure out if QEMU can emulate the STMicroelectronics MAC, the Synopsys GMAC (dwmac), or the Intel dwmac. My first instinct is to check QEMU's supported devices directly. Time to dive into the source code. Let's see... does QEMU have a dwmac? I need to check the network device implementations. Okay, the source code reveals a whole host of emulated network interfaces: Allwinner EMAC, Cadence GEM, Aspeed FTGMAC, i.MX FEC, LAN9118, MCF FEC, MSF2-EMAC, NPCM7xx EMC, Stellaris ENET, Xilinx Ethlite & AXI Ethernet, the Intel E1000 family, Realtek RTL8139, AMD PCnet, NE2000, SunGEM, Tulip, Virtio-net, VMXNET3, and a rocker implementation. Plus, there's even a USB network device. But no... I don't see anything explicitly labeled "dwmac" or "stmmac" here. No, QEMU does *not* seem to have a dedicated implementation of the Synopsys DesignWare Ethernet MAC (dwmac/stmmac), even for ARM, let alone amd64. That's a disappointment. Could syzkaller possibly emulate it indirectly, perhaps via USB? No, that's not a viable path. stmmac isn't a USB device. What about using some kind of mock or virtual netdev configuration? No, stmmac is a hardware ethernet driver designed for physical hardware or SoC or PCI devices. Okay, let's explore another possibility. Can a user create a dummy or netdev device that somehow *uses* stmmac? Unfortunately, the answer's no. stmmac is registered when a physical device (PCI or platform device) probes the hardware. So, is there *any* platform device automatically created on amd64 x86 that could potentially be leveraged? I should probably check the x86 architecture-specific code to see if anything there creates an stmmac platform device. That's where I need to focus next. |
| 10/2 | 2026/09/29 19:21 | tool | grepper |
0mError:no matches Args: {
"Expression": "stmmac|dwmac",
"PathPrefix": "arch/x86/"
}Results: {
"error": "no matches"
} |
| 11/2 | 2026/09/29 19:21 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 17839 output: 49 thoughts: 27 Thoughts: Okay, let's dive into this. Here's my thought process on what I'd need to look at: **Investigating the `dwmac-intel.c` Driver's PCI Bindings** Alright, I need to get a handle on how this `dwmac-intel.c` driver is interacting with the hardware. My first instinct, and a standard debugging technique, is to figure out what specific PCI IDs it's designed to handle. Knowing this quickly narrows the scope of investigation when dealing with a networking driver like this. It helps confirm whether it's the correct driver for a given piece of hardware, or if there's a misconfiguration at play. So, I need to go straight to the code and check the bindings. I need to understand what's in the `dwmac-intel.c` file. Specifically, I need to understand what PCI IDs that the driver binds to. That will be my starting point. |
| 12/2 | 2026/09/29 19:21 | tool | read-file |
0mArgs:{
"File": "drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c",
"FirstLine": 1390,
"LineCount": 35
}Results: {
"Contents": "1390:\t#define PCI_DEVICE_ID_INTEL_ADLS_SGMII1G_0\t0x7aac\n1391:\t#define PCI_DEVICE_ID_INTEL_ADLS_SGMII1G_1\t0x7aad\n1392:\t#define PCI_DEVICE_ID_INTEL_ADLN_SGMII1G\t0x54ac\n1393:\t#define PCI_DEVICE_ID_INTEL_RPLP_SGMII1G\t0x51ac\n1394:\t\n1395:\tstatic const struct pci_device_id intel_eth_pci_id_table[] = {\n1396:\t\t{ PCI_DEVICE_DATA(INTEL, QUARK, \u0026quark_info) },\n1397:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_RGMII1G, \u0026ehl_rgmii1g_info) },\n1398:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_SGMII1G, \u0026ehl_sgmii1g_info) },\n1399:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_SGMII2G5, \u0026ehl_sgmii1g_info) },\n1400:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE0_RGMII1G, \u0026ehl_pse0_rgmii1g_info) },\n1401:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE0_SGMII1G, \u0026ehl_pse0_sgmii1g_info) },\n1402:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE0_SGMII2G5, \u0026ehl_pse0_sgmii1g_info) },\n1403:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE1_RGMII1G, \u0026ehl_pse1_rgmii1g_info) },\n1404:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE1_SGMII1G, \u0026ehl_pse1_sgmii1g_info) },\n1405:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE1_SGMII2G5, \u0026ehl_pse1_sgmii1g_info) },\n1406:\t\t{ PCI_DEVICE_DATA(INTEL, TGL_SGMII1G, \u0026tgl_sgmii1g_phy0_info) },\n1407:\t\t{ PCI_DEVICE_DATA(INTEL, TGLH_SGMII1G_0, \u0026tgl_sgmii1g_phy0_info) },\n1408:\t\t{ PCI_DEVICE_DATA(INTEL, TGLH_SGMII1G_1, \u0026tgl_sgmii1g_phy1_info) },\n1409:\t\t{ PCI_DEVICE_DATA(INTEL, ADLS_SGMII1G_0, \u0026adls_sgmii1g_phy0_info) },\n1410:\t\t{ PCI_DEVICE_DATA(INTEL, ADLS_SGMII1G_1, \u0026adls_sgmii1g_phy1_info) },\n1411:\t\t{ PCI_DEVICE_DATA(INTEL, ADLN_SGMII1G, \u0026adln_sgmii1g_phy0_info) },\n1412:\t\t{ PCI_DEVICE_DATA(INTEL, RPLP_SGMII1G, \u0026adln_sgmii1g_phy0_info) },\n1413:\t\t{}\n1414:\t};\n1415:\tMODULE_DEVICE_TABLE(pci, intel_eth_pci_id_table);\n1416:\t\n1417:\tstatic struct pci_driver intel_eth_pci_driver = {\n1418:\t\t.name = \"intel-eth-pci\",\n1419:\t\t.id_table = intel_eth_pci_id_table,\n1420:\t\t.probe = intel_eth_pci_probe,\n1421:\t\t.remove = intel_eth_pci_remove,\n1422:\t\t.driver = {\n1423:\t\t\t.pm = \u0026stmmac_simple_pm_ops,\n1424:\t\t},\n"
} |
| 13/2 | 2026/09/29 19:21 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 19183 output: 40 thoughts: 293 Thoughts: **Analyzing the Reachability of `stmmac` for Fuzzing** Okay, here's what's running through my head. Those Ethernet controller names – Quark, Elkhart Lake, Tiger Lake, Alder Lake, Raptor Lake – they're all Intel and integrated, right? And none of those are emulated by QEMU, which is a key consideration here. Wait, let's take another look at section 2 of the instructions because it's the negative criteria that are critical for determining if something is WorthFuzzing or not. It says that we should only return `WorthFuzzing=false` if *all* the modified code strictly falls into one of a few categories, and one of those is "structurally unreachable hardware". The key here is whether `stmmac` fits that "structurally unreachable hardware" category. Is `stmmac` truly unreachable from our QEMU setup? I need to figure out if it can be instantiated in a virtual environment. Can it be probed, initialized, and used without requiring an actual physical Ethernet card? I'll need to check for virtual bus or device support. I should see if there's any virtual driver or test driver specifically for `stmmac`. I need to search the `drivers/` and `tools/testing` directories for any clues. Let's see if we can instantiate it virtually, that's the deciding factor. |
| 14/2 | 2026/09/29 19:21 | tool | grepper |
0mArgs:{
"Expression": "stmmac_probe_config_dt|stmmac_dvr_probe",
"PathPrefix": "drivers/"
}Results: {
"Output": "drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c=93=static int anarion_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-103-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:104:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-105-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=283=static int dwc_eth_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-306-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:307:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-308-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-329-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:330:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-331-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c=167=static int eic7700_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-180-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:181:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-182-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c=19=static int dwmac_generic_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-29-\tif (pdev-\u003edev.of_node) {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c:30:\t\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-31-\t\tif (IS_ERR(plat_dat)) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c=293=static int imx_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-308-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:309:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-310-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c=154=static int ingenic_mac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-166-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c:167:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-168-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c=42=static int intel_eth_plat_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-53-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:54:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-55-\tif (IS_ERR(plat_dat)) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-117-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:118:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-119-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c=1263=static int intel_eth_pci_probe(struct pci_dev *pdev,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-1340-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:1341:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat, \u0026res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-1342-\tif (ret) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c=374=static int ipq806x_gmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-386-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c:387:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-388-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-482-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c:483:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-484-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c=498=static int loongson_dwmac_probe(struct pci_dev *pdev, const struct pci_device_id *id)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-561-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:562:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat, \u0026res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-563-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c=158=static int ls1x_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c-187-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c:188:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c-189-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c=42=static int lpc18xx_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-52-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c:53:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-54-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-67-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c:68:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-69-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c=599=static int mediatek_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-630-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c:631:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-632-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-641-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c:642:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-643-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c=47=static int meson6_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-57-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c:58:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-59-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-72-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c:73:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-74-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c=382=static int meson8b_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-392-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c:393:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-394-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-463-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c:464:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-465-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c=293=static int motorcomm_probe(struct pci_dev *pdev, const struct pci_device_id *id)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c-358-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c:359:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat, \u0026res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c-360-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c=82=static int nvt_gmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c-93-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c:94:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c-95-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c=684=static int qcom_ethqos_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c-698-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c:699:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c-700-\tif (IS_ERR(plat_dat)) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c=131=static int renesas_gbeth_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c-145-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c:146:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c-147-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c=1571=static int rk_gmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1587-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:1588:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1589-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c=48=static int rzn1_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-58-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c:59:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-60-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-67-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c:68:\tret = stmmac_dvr_probe(dev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-69-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c=144=static int s32_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c-162-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c:163:\tplat = devm_stmmac_probe_config_dt(pdev, res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c-164-\tif (IS_ERR(plat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c=596=static int socfpga_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-614-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c:615:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-616-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c=35=static int sophgo_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-47-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:48:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-49-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c=147=static int spacemit_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-168-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c:169:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-170-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-206-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c:207:\treturn stmmac_dvr_probe(dev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-208-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c=90=static int starfive_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-102-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c:103:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-104-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-152-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c:153:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-154-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c=249=static int sti_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c-266-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c:267:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c-268-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c=525=static int stm32_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-536-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c:537:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-538-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-578-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c:579:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-580-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c=105=static int sun55i_gmac200_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c-116-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c:117:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c-118-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c=1109=static int sun8i_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1177-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c:1178:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1179-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1205-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c:1206:\t/* the MAC is runtime suspended after stmmac_dvr_probe(), so we\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1207-\t * need to ensure the MAC resume back before other operations such\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1212-\t/* The mux must be registered after parent MDIO\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c:1213:\t * so after stmmac_dvr_probe()\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1214-\t */\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c=99=static int sun7i_gmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c-110-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c:111:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c-112-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c=214=static int tegra_mgbe_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-319-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c:320:\tplat = devm_stmmac_probe_config_dt(pdev, res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-321-\tif (IS_ERR(plat)) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-375-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c:376:\terr = stmmac_dvr_probe(\u0026pdev-\u003edev, plat, \u0026res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-377-\tif (err \u003c 0)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c=216=static int thead_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c-229-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c:230:\tplat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c-231-\tif (IS_ERR(plat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ultrarisc.c=13=static int ultrarisc_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ultrarisc.c-23-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ultrarisc.c:24:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ultrarisc.c-25-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c=205=static int visconti_eth_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-215-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c:216:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-217-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-236-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c:237:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-238-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac.h=422=void stmmac_dvr_remove(struct device *dev);\ndrivers/net/ethernet/stmicro/stmmac/stmmac.h:423:int stmmac_dvr_probe(struct device *device,\ndrivers/net/ethernet/stmicro/stmmac/stmmac.h-424-\t\t struct plat_stmmacenet_data *plat_dat,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c=7877=EXPORT_SYMBOL_GPL(stmmac_plat_dat_alloc);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7878-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7879:static int __stmmac_dvr_probe(struct device *device,\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7880-\t\t\t struct plat_stmmacenet_data *plat_dat,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8194-/**\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:8195: * stmmac_dvr_probe\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8196- * @dev: device pointer\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8203- */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:8204:int stmmac_dvr_probe(struct device *dev, struct plat_stmmacenet_data *plat_dat,\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8205-\t\t struct stmmac_resources *res)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8214-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:8215:\tret = __stmmac_dvr_probe(dev, plat_dat, res);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8216-\tif (ret \u0026\u0026 plat_dat-\u003eexit)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8220-}\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:8221:EXPORT_SYMBOL_GPL(stmmac_dvr_probe);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8222-\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c=118=static int stmmac_pci_probe(struct pci_dev *pdev,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-182-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:183:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat, \u0026res);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-184-}\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c=394=static const char * const stmmac_gmac4_compats[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-406-/**\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:407: * stmmac_probe_config_dt - parse device-tree driver parameters\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-408- * @pdev: platform_device structure\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c=414=static struct plat_stmmacenet_data *\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:415:stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-416-{\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c=642=static void devm_stmmac_remove_config_dt(void *data)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-652-/**\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:653: * devm_stmmac_probe_config_dt\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-654- * @pdev: platform_device structure\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-655- * @mac: MAC address to use\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:656: * Description: Devres variant of stmmac_probe_config_dt().\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-657- */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c=658=struct plat_stmmacenet_data *\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:659:devm_stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-660-{\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-663-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:664:\tplat = stmmac_probe_config_dt(pdev, mac);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-665-\tif (IS_ERR(plat))\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c=676=struct plat_stmmacenet_data *\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:677:devm_stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-678-{\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-681-#endif /* CONFIG_OF */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:682:EXPORT_SYMBOL_GPL(devm_stmmac_probe_config_dt);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-683-\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c=847=int stmmac_pltfr_probe(struct platform_device *pdev,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-865-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:866:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat, res);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-867-}\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.h=14=struct plat_stmmacenet_data *\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.h:15:devm_stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.h-16-\n"
} |
| 15/2 | 2026/09/29 19:21 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 29758 output: 125 thoughts: 1888 Thoughts: **Fuzzing Verdict: Structurally Unreachable Hardware** Okay, let's break this down systematically. My initial assessment is that this `stmmac` driver modification is *not* worth fuzzing. The key issue here is reachability, and it's looking like this is going to be a non-starter. First, I need to confirm how `stmmac` is probed. It appears to rely exclusively on physical device drivers – either platform devices identified through Device Tree or PCI devices with specific IDs (Intel, Loongson, Motorcomm, STMicro/Synopsys). None of these devices are present in the standard QEMU or GCE virtual machines typically used for fuzzing. I was momentarily curious if QEMU *might* have some stmmac or DWMAC emulation, but a quick check of its codebase and documentation confirmed my suspicion: QEMU doesn't emulate the Synopsys DesignWare MAC (DWMAC/STMMAC). Even if there was an ARM SoC with stmmac available in QEMU (e.g., some sun8i platform), our fuzzing target is amd64, which is irrelevant to any potential emulation. On amd64, the platform drivers rely on Device Tree or specific SoCs, and the PCI drivers are targeted at specific physical Intel, Loongson, Motorcomm, or STMicro silicon that QEMU does *not* emulate. QEMU's PC/Q35 machine offers emulation for other NICs but not these specific types. The instructions are clear. Section 2's "NEGATIVE CRITERIA" explicitly states to return `WorthFuzzing=false` if changes fall under "Structurally unreachable hardware: Vendor-specific PCIe switches, SmartNICs... requiring physical ASIC/PCIe cards not emulated in standard QEMU". This feels like a direct hit. The "REACHABILITY IS THE PRIMARY GATE" principle from section 1 reinforces that fuzzing is only valid for code that *can* execute in standard virtualized environments. I dug a bit deeper. I needed to know if there's any software mocking device that can probe `stmmac`. A check on the kernel source code showed that `stmmac_dvr_probe` is called by a specific set of platform and PCI drivers, each tied to particular hardware configurations that won't be instantiated in our QEMU/GCE setup. The patch files, specifically: `drivers/net/ethernet/stmicro/stmmac/stmmac.h`, `drivers/net/ethernet/stmicro/stmmac/stmmac_fpe.c`, `drivers/net/ethernet/stmicro/stmmac/stmmac_main.c`, and `drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c`, are *all* confined to the `drivers/net/ethernet/stmicro/stmmac/` directory. No other core kernel subsystems or other drivers are involved. This further solidifies the conclusion that we're dealing with driver code tightly bound to unavailable hardware. Therefore, the verdict is `WorthFuzzing: false`. There is no reason to enable any special configuration options for fuzzing. `EnableConfigs: []` and no symbols to focus on. `FocusSymbols: []`. The reasoning is straightforward: The patch modifies the STMicroelectronics Multi-Gigabit Ethernet driver (`stmmac`), which requires specific physical hardware (ASIC or SoC / PCIe device) that is not emulated in standard virtualized fuzzing environments (QEMU/GCE) on amd64. Hence, the modified code is structurally unreachable. I've reviewed the instructions again to ensure I'm adhering to the guidelines: The "Structurally unreachable hardware" clause is the deciding factor, and the instructions are unambiguous. I am ready to return the results. |
| 16/2 | 2026/09/29 19:21 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch exclusively modifies the STMicroelectronics Ethernet driver (stmmac: stmmac_main.c, stmmac_tc.c, stmmac_fpe.c, and stmmac.h). This driver targets specific physical hardware/SoCs and vendor-specific PCI devices that are not emulated in standard virtualized environments (QEMU/GCE) on amd64, making the modified code structurally unreachable for fuzzing.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch exclusively modifies the STMicroelectronics Ethernet driver (stmmac: stmmac_main.c, stmmac_tc.c, stmmac_fpe.c, and stmmac.h). This driver targets specific physical hardware/SoCs and vendor-specific PCI devices that are not emulated in standard virtualized environments (QEMU/GCE) on amd64, making the modified code structurally unreachable for fuzzing.",
"WorthFuzzing": false
} |
| 17/1 | 2026/09/29 19:21 | action | If |
0mArgs:{
"WorthFuzzing": false
}Results: null |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|