| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/07/30 03:01 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": [
"E1000",
"IGBVF"
],
"FocusSymbols": [
"e1000_probe"
],
"Reasoning": "The patch modifies several Intel ethernet drivers. While ice, idpf, and igc are not emulated in standard QEMU, the e1000 and igbvf drivers are supported (QEMU emulates e1000 and igb with SR-IOV). The patch fixes an error handling path in e1000_probe and a logic bug in igbvf_tx_map_adv (which is inlined into the transmit hot-path). We can fuzz the e1000_probe function via PCI device initialization and fault injection.",
"WorthFuzzing": true
} |
| 1/1 | 2026/07/30 03:01 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit b47bfb5c54ab8ab0186339a59c877085220a7a87\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Thu Jul 30 03:01:30 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c\nindex 9b09eb144b811..d7f5c6f161420 100644\n--- a/drivers/net/ethernet/intel/e1000/e1000_main.c\n+++ b/drivers/net/ethernet/intel/e1000/e1000_main.c\n@@ -1222,11 +1222,11 @@ static int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent)\n \n \tif (hw-\u003eflash_address)\n \t\tiounmap(hw-\u003eflash_address);\n+err_mdio_ioremap:\n \tkfree(adapter-\u003etx_ring);\n \tkfree(adapter-\u003erx_ring);\n err_dma:\n err_sw_init:\n-err_mdio_ioremap:\n \tiounmap(hw-\u003ece4100_gbe_mdio_base_virt);\n \tiounmap(hw-\u003ehw_addr);\n err_ioremap:\ndiff --git a/drivers/net/ethernet/intel/ice/ice_dpll.c b/drivers/net/ethernet/intel/ice/ice_dpll.c\nindex 30c3a4db7d611..85a74cd6ea1f3 100644\n--- a/drivers/net/ethernet/intel/ice/ice_dpll.c\n+++ b/drivers/net/ethernet/intel/ice/ice_dpll.c\n@@ -793,7 +793,7 @@ ice_dpll_pin_state_update(struct ice_pf *pf, struct ice_dpll_pin *pin,\n \t\t\t\t ret,\n \t\t\t\t libie_aq_str(pf-\u003ehw.adminq.sq_last_status),\n \t\t\t\t pin_type_name[pin_type], pin-\u003eidx);\n-\telse\n+\telse if (pf-\u003ehw.adminq.sq_last_status != LIBIE_AQ_RC_EBUSY)\n \t\tdev_err_ratelimited(ice_pf_to_dev(pf),\n \t\t\t\t \"err:%d %s failed to update %s pin:%u\\n\",\n \t\t\t\t ret,\n@@ -3024,7 +3024,8 @@ static int ice_dpll_pps_update_phase_offsets(struct ice_pf *pf,\n \t*phase_offset_pins_updated = 0;\n \tret = ice_aq_get_cgu_input_pin_measure(\u0026pf-\u003ehw, DPLL_TYPE_PPS, meas,\n \t\t\t\t\t ARRAY_SIZE(meas));\n-\tif (ret \u0026\u0026 pf-\u003ehw.adminq.sq_last_status == LIBIE_AQ_RC_EAGAIN) {\n+\tif (ret \u0026\u0026 (pf-\u003ehw.adminq.sq_last_status == LIBIE_AQ_RC_EAGAIN ||\n+\t\t pf-\u003ehw.adminq.sq_last_status == LIBIE_AQ_RC_EBUSY)) {\n \t\treturn 0;\n \t} else if (ret) {\n \t\tdev_err(ice_pf_to_dev(pf),\n@@ -3086,10 +3087,12 @@ ice_dpll_update_state(struct ice_pf *pf, struct ice_dpll *d, bool init)\n \t\td-\u003edpll_idx, d-\u003eprev_input_idx, d-\u003einput_idx,\n \t\td-\u003edpll_state, d-\u003eprev_dpll_state, d-\u003emode);\n \tif (ret) {\n-\t\tdev_err(ice_pf_to_dev(pf),\n-\t\t\t\"update dpll=%d state failed, ret=%d %s\\n\",\n-\t\t\td-\u003edpll_idx, ret,\n-\t\t\tlibie_aq_str(pf-\u003ehw.adminq.sq_last_status));\n+\t\t/* EBUSY is expected during reset recovery, don't log error */\n+\t\tif (pf-\u003ehw.adminq.sq_last_status != LIBIE_AQ_RC_EBUSY)\n+\t\t\tdev_err(ice_pf_to_dev(pf),\n+\t\t\t\t\"update dpll=%d state failed, ret=%d %s\\n\",\n+\t\t\t\td-\u003edpll_idx, ret,\n+\t\t\t\tlibie_aq_str(pf-\u003ehw.adminq.sq_last_status));\n \t\treturn ret;\n \t}\n \tif (init) {\n@@ -3158,7 +3161,9 @@ static void ice_dpll_periodic_work(struct kthread_work *work)\n \t d-\u003eperiodic_counter % dp-\u003ephase_offset_monitor_period == 0)\n \t\tret = ice_dpll_pps_update_phase_offsets(pf, \u0026phase_offset_ntf);\n \tif (ret) {\n-\t\td-\u003ecgu_state_acq_err_num++;\n+\t\t/* EBUSY is expected during reset recovery */\n+\t\tif (pf-\u003ehw.adminq.sq_last_status != LIBIE_AQ_RC_EBUSY)\n+\t\t\td-\u003ecgu_state_acq_err_num++;\n \t\t/* stop rescheduling this worker */\n \t\tif (d-\u003ecgu_state_acq_err_num \u003e\n \t\t ICE_CGU_STATE_ACQ_ERR_THRESHOLD) {\ndiff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c\nindex 49371b0658458..7eb380be7ed27 100644\n--- a/drivers/net/ethernet/intel/ice/ice_ethtool.c\n+++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c\n@@ -1069,18 +1069,18 @@ static int ice_lbtest_prepare_rings(struct ice_vsi *vsi)\n \n \tstatus = ice_vsi_cfg_lan(vsi);\n \tif (status)\n-\t\tgoto err_setup_rx_ring;\n+\t\tgoto err_cfg_lan;\n \n \tstatus = ice_vsi_start_all_rx_rings(vsi);\n \tif (status)\n-\t\tgoto err_start_rx_ring;\n+\t\tgoto err_cfg_lan;\n \n \treturn 0;\n \n-err_start_rx_ring:\n-\tice_vsi_free_rx_rings(vsi);\n-err_setup_rx_ring:\n+err_cfg_lan:\n \tice_vsi_stop_lan_tx_rings(vsi, ICE_NO_RESET, 0);\n+err_setup_rx_ring:\n+\tice_vsi_free_rx_rings(vsi);\n err_setup_tx_ring:\n \tice_vsi_free_tx_rings(vsi);\n \ndiff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c\nindex e2fd2dab03e36..d88835482d3aa 100644\n--- a/drivers/net/ethernet/intel/ice/ice_main.c\n+++ b/drivers/net/ethernet/intel/ice/ice_main.c\n@@ -5637,6 +5637,16 @@ static int ice_resume(struct device *dev)\n \t/* Restart the service task */\n \tmod_timer(\u0026pf-\u003eserv_tmr, round_jiffies(jiffies + pf-\u003eserv_tmr_period));\n \n+\t/* Best-effort wait for the scheduled reset to finish so that the\n+\t * device is operational before returning. Without this, userspace\n+\t * (e.g. NetworkManager) may try to open the net device while the\n+\t * asynchronous reset is still in progress, hitting -EBUSY.\n+\t */\n+\tret = ice_wait_for_reset(pf, secs_to_jiffies(10));\n+\tif (ret)\n+\t\tdev_err(dev, \"Wait for reset timed out (10s) during resume: %d\\n\",\n+\t\t\tret);\n+\n \treturn 0;\n }\n \ndiff --git a/drivers/net/ethernet/intel/ice/ice_vf_lib.c b/drivers/net/ethernet/intel/ice/ice_vf_lib.c\nindex 9052e71e9c99e..a54cb2b8d3c76 100644\n--- a/drivers/net/ethernet/intel/ice/ice_vf_lib.c\n+++ b/drivers/net/ethernet/intel/ice/ice_vf_lib.c\n@@ -848,6 +848,30 @@ static void ice_notify_vf_reset(struct ice_vf *vf)\n \t\t\t NULL);\n }\n \n+/**\n+ * ice_reset_interrupts - clear all queue interrupt configuration for a VSI\n+ * @vsi: the VSI whose interrupt registers should be cleared\n+ *\n+ * Zero the QINT_RQCTL and QINT_TQCTL registers for all allocated queues\n+ * in the VSI. This clears the entire register including MSIX_INDX, ITR_INDX,\n+ * CAUSE_ENA and NEXTQ fields, unlike ice_vf_dis_rxq_interrupt() which only\n+ * clears the CAUSE_ENA bit.\n+ */\n+void ice_reset_interrupts(struct ice_vsi *vsi)\n+{\n+\tstruct ice_pf *pf = vsi-\u003eback;\n+\tstruct ice_hw *hw = \u0026pf-\u003ehw;\n+\tint i;\n+\n+\tice_for_each_alloc_rxq(vsi, i)\n+\t\twr32(hw, QINT_RQCTL(vsi-\u003erxq_map[i]), 0);\n+\n+\tice_for_each_alloc_txq(vsi, i)\n+\t\twr32(hw, QINT_TQCTL(vsi-\u003etxq_map[i]), 0);\n+\n+\tice_flush(hw);\n+}\n+\n /**\n * ice_reset_vf - Reset a particular VF\n * @vf: pointer to the VF structure\n@@ -919,6 +943,9 @@ int ice_reset_vf(struct ice_vf *vf, u32 flags)\n \n \tice_dis_vf_qs(vf);\n \n+\t/* cleanup interrupt registers */\n+\tice_reset_interrupts(vsi);\n+\n \t/* Call Disable LAN Tx queue AQ whether or not queues are\n \t * enabled. This is needed for successful completion of VFR.\n \t */\ndiff --git a/drivers/net/ethernet/intel/ice/ice_vf_lib_private.h b/drivers/net/ethernet/intel/ice/ice_vf_lib_private.h\nindex 5392b04049862..321d29c25b7c1 100644\n--- a/drivers/net/ethernet/intel/ice/ice_vf_lib_private.h\n+++ b/drivers/net/ethernet/intel/ice/ice_vf_lib_private.h\n@@ -26,6 +26,7 @@\n void ice_initialize_vf_entry(struct ice_vf *vf);\n void ice_deinitialize_vf_entry(struct ice_vf *vf);\n void ice_dis_vf_qs(struct ice_vf *vf);\n+void ice_reset_interrupts(struct ice_vsi *vsi);\n int ice_check_vf_init(struct ice_vf *vf);\n enum virtchnl_status_code ice_err_to_virt_err(int err);\n struct ice_port_info *ice_vf_get_port_info(struct ice_vf *vf);\ndiff --git a/drivers/net/ethernet/intel/ice/virt/queues.c b/drivers/net/ethernet/intel/ice/virt/queues.c\nindex 31be2f76181c0..431c9c546b04f 100644\n--- a/drivers/net/ethernet/intel/ice/virt/queues.c\n+++ b/drivers/net/ethernet/intel/ice/virt/queues.c\n@@ -224,6 +224,24 @@ void ice_vf_ena_rxq_interrupt(struct ice_vsi *vsi, u32 q_idx)\n \twr32(hw, QINT_RQCTL(pfq), reg | QINT_RQCTL_CAUSE_ENA_M);\n }\n \n+/**\n+ * ice_vf_dis_rxq_interrupt - disable Rx queue interrupt via QINT_RQCTL\n+ * @vsi: VSI of the VF to configure\n+ * @q_idx: VF queue index used to determine the queue in the PF's space\n+ */\n+static void ice_vf_dis_rxq_interrupt(struct ice_vsi *vsi, u32 q_idx)\n+{\n+\tstruct ice_hw *hw = \u0026vsi-\u003eback-\u003ehw;\n+\tu32 pfq = vsi-\u003erxq_map[q_idx];\n+\tu32 reg;\n+\n+\treg = rd32(hw, QINT_RQCTL(pfq));\n+\treg \u0026= ~QINT_RQCTL_CAUSE_ENA_M;\n+\twr32(hw, QINT_RQCTL(pfq), reg);\n+\n+\tice_flush(hw);\n+}\n+\n /**\n * ice_vc_ena_qs_msg\n * @vf: pointer to the VF info\n@@ -416,6 +434,8 @@ int ice_vc_dis_qs_msg(struct ice_vf *vf, u8 *msg)\n \t\t\tgoto error_param;\n \t\t}\n \n+\t\tfor_each_set_bit(vf_q_id, \u0026q_map, ICE_MAX_RSS_QS_PER_VF)\n+\t\t\tice_vf_dis_rxq_interrupt(vsi, vf_q_id);\n \t\tbitmap_zero(vf-\u003erxq_ena, ICE_MAX_RSS_QS_PER_VF);\n \t} else if (q_map) {\n \t\tfor_each_set_bit(vf_q_id, \u0026q_map, ICE_MAX_RSS_QS_PER_VF) {\n@@ -436,6 +456,7 @@ int ice_vc_dis_qs_msg(struct ice_vf *vf, u8 *msg)\n \t\t\t\tgoto error_param;\n \t\t\t}\n \n+\t\t\tice_vf_dis_rxq_interrupt(vsi, vf_q_id);\n \t\t\t/* Clear enabled queues flag */\n \t\t\tclear_bit(vf_q_id, vf-\u003erxq_ena);\n \t\t}\ndiff --git a/drivers/net/ethernet/intel/idpf/idpf_dev.c b/drivers/net/ethernet/intel/idpf/idpf_dev.c\nindex 1a0c71c95ef12..4079a787657f1 100644\n--- a/drivers/net/ethernet/intel/idpf/idpf_dev.c\n+++ b/drivers/net/ethernet/intel/idpf/idpf_dev.c\n@@ -87,7 +87,7 @@ static int idpf_intr_reg_init(struct idpf_vport *vport,\n \tif (!reg_vals)\n \t\treturn -ENOMEM;\n \n-\tnum_regs = idpf_get_reg_intr_vecs(adapter, reg_vals);\n+\tnum_regs = idpf_get_reg_intr_vecs(adapter, reg_vals, total_vecs);\n \tif (num_regs \u003c num_vecs) {\n \t\terr = -EINVAL;\n \t\tgoto free_reg_vals;\ndiff --git a/drivers/net/ethernet/intel/idpf/idpf_lib.c b/drivers/net/ethernet/intel/idpf/idpf_lib.c\nindex cf966fe6c759c..bb81e620c5c87 100644\n--- a/drivers/net/ethernet/intel/idpf/idpf_lib.c\n+++ b/drivers/net/ethernet/intel/idpf/idpf_lib.c\n@@ -139,7 +139,7 @@ static int idpf_mb_intr_req_irq(struct idpf_adapter *adapter)\n \tif (err) {\n \t\tdev_err(\u0026adapter-\u003epdev-\u003edev,\n \t\t\t\"IRQ request for mailbox failed, error: %d\\n\", err);\n-\n+\t\tkfree(name);\n \t\treturn err;\n \t}\n \ndiff --git a/drivers/net/ethernet/intel/idpf/idpf_txrx.c b/drivers/net/ethernet/intel/idpf/idpf_txrx.c\nindex 7f9056404f64f..c724d429a7aa9 100644\n--- a/drivers/net/ethernet/intel/idpf/idpf_txrx.c\n+++ b/drivers/net/ethernet/intel/idpf/idpf_txrx.c\n@@ -3097,10 +3097,7 @@ static netdev_tx_t idpf_tx_splitq_frame(struct sk_buff *skb,\n \n \t\ttx_params.dtype = IDPF_TX_DESC_DTYPE_FLEX_FLOW_SCHE;\n \t\ttx_params.eop_cmd = IDPF_TXD_FLEX_FLOW_CMD_EOP;\n-\t\t/* Set the RE bit to periodically \"clean\" the descriptor ring.\n-\t\t * MIN_GAP is set to MIN_RING size to ensure it will be set at\n-\t\t * least once each time around the ring.\n-\t\t */\n+\t\t/* Set the RE bit periodically to \"clean\" the descriptor ring */\n \t\tif (idpf_tx_splitq_need_re(tx_q)) {\n \t\t\ttx_params.eop_cmd |= IDPF_TXD_FLEX_FLOW_CMD_RE;\n \t\t\ttx_q-\u003etxq_grp-\u003enum_completions_pending++;\ndiff --git a/drivers/net/ethernet/intel/idpf/idpf_txrx.h b/drivers/net/ethernet/intel/idpf/idpf_txrx.h\nindex 4be5b3b6d3ed2..908dfa28674eb 100644\n--- a/drivers/net/ethernet/intel/idpf/idpf_txrx.h\n+++ b/drivers/net/ethernet/intel/idpf/idpf_txrx.h\n@@ -21,7 +21,7 @@\n /* Mailbox Queue */\n #define IDPF_MAX_MBXQ\t\t\t\t1\n \n-#define IDPF_MIN_TXQ_DESC\t\t\t64\n+#define IDPF_MIN_TXQ_DESC\t\t\t128\n #define IDPF_MIN_RXQ_DESC\t\t\t64\n #define IDPF_MIN_TXQ_COMPLQ_DESC\t\t256\n #define IDPF_MAX_QIDS\t\t\t\t256\ndiff --git a/drivers/net/ethernet/intel/idpf/idpf_vf_dev.c b/drivers/net/ethernet/intel/idpf/idpf_vf_dev.c\nindex a07d7e808ca9b..6726084f6cfa0 100644\n--- a/drivers/net/ethernet/intel/idpf/idpf_vf_dev.c\n+++ b/drivers/net/ethernet/intel/idpf/idpf_vf_dev.c\n@@ -86,7 +86,7 @@ static int idpf_vf_intr_reg_init(struct idpf_vport *vport,\n \tif (!reg_vals)\n \t\treturn -ENOMEM;\n \n-\tnum_regs = idpf_get_reg_intr_vecs(adapter, reg_vals);\n+\tnum_regs = idpf_get_reg_intr_vecs(adapter, reg_vals, total_vecs);\n \tif (num_regs \u003c num_vecs) {\n \t\terr = -EINVAL;\n \t\tgoto free_reg_vals;\ndiff --git a/drivers/net/ethernet/intel/idpf/idpf_virtchnl.c b/drivers/net/ethernet/intel/idpf/idpf_virtchnl.c\nindex dc5ad784f456f..8bd6cca64c9bf 100644\n--- a/drivers/net/ethernet/intel/idpf/idpf_virtchnl.c\n+++ b/drivers/net/ethernet/intel/idpf/idpf_virtchnl.c\n@@ -1318,11 +1318,12 @@ idpf_vport_init_queue_reg_chunks(struct idpf_vport_config *vport_config,\n * idpf_get_reg_intr_vecs - Get vector queue register offset\n * @adapter: adapter structure to get the vector chunks\n * @reg_vals: Register offsets to store in\n+ * @num_vecs: number of entries the @reg_vals array can hold\n *\n * Return: number of registers that got populated\n */\n int idpf_get_reg_intr_vecs(struct idpf_adapter *adapter,\n-\t\t\t struct idpf_vec_regs *reg_vals)\n+\t\t\t struct idpf_vec_regs *reg_vals, int num_vecs)\n {\n \tstruct virtchnl2_vector_chunks *chunks;\n \tstruct idpf_vec_regs reg_val;\n@@ -1346,7 +1347,7 @@ int idpf_get_reg_intr_vecs(struct idpf_adapter *adapter,\n \t\tdynctl_reg_spacing = le32_to_cpu(chunk-\u003edynctl_reg_spacing);\n \t\titrn_reg_spacing = le32_to_cpu(chunk-\u003eitrn_reg_spacing);\n \n-\t\tfor (i = 0; i \u003c num_vec; i++) {\n+\t\tfor (i = 0; i \u003c num_vec \u0026\u0026 num_regs \u003c num_vecs; i++) {\n \t\t\treg_vals[num_regs].dyn_ctl_reg = reg_val.dyn_ctl_reg;\n \t\t\treg_vals[num_regs].itrn_reg = reg_val.itrn_reg;\n \t\t\treg_vals[num_regs].itrn_index_spacing =\ndiff --git a/drivers/net/ethernet/intel/idpf/idpf_virtchnl.h b/drivers/net/ethernet/intel/idpf/idpf_virtchnl.h\nindex 6876e3ed9d1be..9b1c9c86f6eac 100644\n--- a/drivers/net/ethernet/intel/idpf/idpf_virtchnl.h\n+++ b/drivers/net/ethernet/intel/idpf/idpf_virtchnl.h\n@@ -104,7 +104,7 @@ int idpf_vc_core_init(struct idpf_adapter *adapter);\n void idpf_vc_core_deinit(struct idpf_adapter *adapter);\n \n int idpf_get_reg_intr_vecs(struct idpf_adapter *adapter,\n-\t\t\t struct idpf_vec_regs *reg_vals);\n+\t\t\t struct idpf_vec_regs *reg_vals, int num_vecs);\n int idpf_queue_reg_init(struct idpf_vport *vport,\n \t\t\tstruct idpf_q_vec_rsrc *rsrc,\n \t\t\tstruct idpf_queue_id_reg_info *chunks);\ndiff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c\nindex 0a3d0a1cba433..c686ee120a143 100644\n--- a/drivers/net/ethernet/intel/igbvf/netdev.c\n+++ b/drivers/net/ethernet/intel/igbvf/netdev.c\n@@ -2190,8 +2190,6 @@ static inline int igbvf_tx_map_adv(struct igbvf_adapter *adapter,\n \tbuffer_info-\u003etime_stamp = 0;\n \tbuffer_info-\u003elength = 0;\n \tbuffer_info-\u003emapped_as_page = false;\n-\tif (count)\n-\t\tcount--;\n \n \t/* clear timestamp and dma mappings for remaining portion of packet */\n \twhile (count--) {\ndiff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c\nindex 2c9e2dfd84991..b3883a5a7d7ae 100644\n--- a/drivers/net/ethernet/intel/igc/igc_main.c\n+++ b/drivers/net/ethernet/intel/igc/igc_main.c\n@@ -5352,9 +5352,8 @@ void igc_down(struct igc_adapter *adapter)\n \n \tfor (i = 0; i \u003c adapter-\u003enum_q_vectors; i++) {\n \t\tif (adapter-\u003eq_vector[i]) {\n-\t\t\tnapi_synchronize(\u0026adapter-\u003eq_vector[i]-\u003enapi);\n-\t\t\tigc_set_queue_napi(adapter, i, NULL);\n \t\t\tnapi_disable(\u0026adapter-\u003eq_vector[i]-\u003enapi);\n+\t\t\tigc_set_queue_napi(adapter, i, NULL);\n \t\t}\n \t}\n \n"
} |
| 2/1 | 2026/07/30 03:01 | agent | patch-evaluator |
0mModel:best-expensive Args: null Results: {
"EnableConfigs": [
"E1000",
"IGBVF"
],
"FocusSymbols": [
"e1000_probe"
],
"Reasoning": "The patch modifies several Intel ethernet drivers. While ice, idpf, and igc are not emulated in standard QEMU, the e1000 and igbvf drivers are supported (QEMU emulates e1000 and igb with SR-IOV). The patch fixes an error handling path in e1000_probe and a logic bug in igbvf_tx_map_adv (which is inlined into the transmit hot-path). We can fuzz the e1000_probe function via PCI device initialization and fault injection.",
"WorthFuzzing": true
}Instruction: You are an expert Linux kernel maintainer. Your job is to review a provided patch series and determine if it makes functional changes to the kernel that should be fuzzed. IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively use your code access tools to examine the actual source code and confirm any assumptions. Return WorthFuzzing=false if the patch only contains: - Modifications to Documentation/, Kconfig files, or code comments. - Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints. - Changes to numeric constants or macros that do not functionally alter execution flow. - Code paths that are impossible to reach in virtualized environments like GCE or QEMU, even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim). - Code in vendor-specific PCIe switch, SmartNIC, or GPU drivers (e.g., mlxsw, pds_core, qed, ionic, amdgpu) that require physical PCIe hardware cards not emulated in standard QEMU. - Driver .remove, .shutdown, or pci_unregister_driver teardown callbacks (e.g., igb_remove) that are executed only during PCI hot-unplug or sysfs driver unbind operations. If it modifies reachable core kernel logic, drivers, or architectures, use your code search tools to verify the code can be executed, then return WorthFuzzing=true. When returning WorthFuzzing=true, you MUST ALSO: 1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols. Avoid listing generic hot-path functions to prevent skewed test distributions. Prefer non-static, non-inlined API entrypoint functions over internal static helper functions (which are inlined by the compiler and do not have distinct symbol addresses). 2. Identify any specific CONFIG_ options required to properly test this new/modified feature. Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions. Also check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed for Kbuild to compile the code statically into vmlinux. List them in the EnableConfigs output array, and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4"). Prefer calling several tools at the same time to save round-trips. Use set-results tool to provide results of the analysis. It must be called exactly once before the final reply. Ignore results of this tool. Prompt: For your convenience, here is the diff of the changes:
commit b47bfb5c54ab8ab0186339a59c877085220a7a87
Author: syz-cluster <triage@syzkaller.com>
Date: Thu Jul 30 03:01:30 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c
index 9b09eb144b811..d7f5c6f161420 100644
--- a/drivers/net/ethernet/intel/e1000/e1000_main.c
+++ b/drivers/net/ethernet/intel/e1000/e1000_main.c
@@ -1222,11 +1222,11 @@ static int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
if (hw->flash_address)
iounmap(hw->flash_address);
+err_mdio_ioremap:
kfree(adapter->tx_ring);
kfree(adapter->rx_ring);
err_dma:
err_sw_init:
-err_mdio_ioremap:
iounmap(hw->ce4100_gbe_mdio_base_virt);
iounmap(hw->hw_addr);
err_ioremap:
diff --git a/drivers/net/ethernet/intel/ice/ice_dpll.c b/drivers/net/ethernet/intel/ice/ice_dpll.c
index 30c3a4db7d611..85a74cd6ea1f3 100644
--- a/drivers/net/ethernet/intel/ice/ice_dpll.c
+++ b/drivers/net/ethernet/intel/ice/ice_dpll.c
@@ -793,7 +793,7 @@ ice_dpll_pin_state_update(struct ice_pf *pf, struct ice_dpll_pin *pin,
ret,
libie_aq_str(pf->hw.adminq.sq_last_status),
pin_type_name[pin_type], pin->idx);
- else
+ else if (pf->hw.adminq.sq_last_status != LIBIE_AQ_RC_EBUSY)
dev_err_ratelimited(ice_pf_to_dev(pf),
"err:%d %s failed to update %s pin:%u\n",
ret,
@@ -3024,7 +3024,8 @@ static int ice_dpll_pps_update_phase_offsets(struct ice_pf *pf,
*phase_offset_pins_updated = 0;
ret = ice_aq_get_cgu_input_pin_measure(&pf->hw, DPLL_TYPE_PPS, meas,
ARRAY_SIZE(meas));
- if (ret && pf->hw.adminq.sq_last_status == LIBIE_AQ_RC_EAGAIN) {
+ if (ret && (pf->hw.adminq.sq_last_status == LIBIE_AQ_RC_EAGAIN ||
+ pf->hw.adminq.sq_last_status == LIBIE_AQ_RC_EBUSY)) {
return 0;
} else if (ret) {
dev_err(ice_pf_to_dev(pf),
@@ -3086,10 +3087,12 @@ ice_dpll_update_state(struct ice_pf *pf, struct ice_dpll *d, bool init)
d->dpll_idx, d->prev_input_idx, d->input_idx,
d->dpll_state, d->prev_dpll_state, d->mode);
if (ret) {
- dev_err(ice_pf_to_dev(pf),
- "update dpll=%d state failed, ret=%d %s\n",
- d->dpll_idx, ret,
- libie_aq_str(pf->hw.adminq.sq_last_status));
+ /* EBUSY is expected during reset recovery, don't log error */
+ if (pf->hw.adminq.sq_last_status != LIBIE_AQ_RC_EBUSY)
+ dev_err(ice_pf_to_dev(pf),
+ "update dpll=%d state failed, ret=%d %s\n",
+ d->dpll_idx, ret,
+ libie_aq_str(pf->hw.adminq.sq_last_status));
return ret;
}
if (init) {
@@ -3158,7 +3161,9 @@ static void ice_dpll_periodic_work(struct kthread_work *work)
d->periodic_counter % dp->phase_offset_monitor_period == 0)
ret = ice_dpll_pps_update_phase_offsets(pf, &phase_offset_ntf);
if (ret) {
- d->cgu_state_acq_err_num++;
+ /* EBUSY is expected during reset recovery */
+ if (pf->hw.adminq.sq_last_status != LIBIE_AQ_RC_EBUSY)
+ d->cgu_state_acq_err_num++;
/* stop rescheduling this worker */
if (d->cgu_state_acq_err_num >
ICE_CGU_STATE_ACQ_ERR_THRESHOLD) {
diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c
index 49371b0658458..7eb380be7ed27 100644
--- a/drivers/net/ethernet/intel/ice/ice_ethtool.c
+++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c
@@ -1069,18 +1069,18 @@ static int ice_lbtest_prepare_rings(struct ice_vsi *vsi)
status = ice_vsi_cfg_lan(vsi);
if (status)
- goto err_setup_rx_ring;
+ goto err_cfg_lan;
status = ice_vsi_start_all_rx_rings(vsi);
if (status)
- goto err_start_rx_ring;
+ goto err_cfg_lan;
return 0;
-err_start_rx_ring:
- ice_vsi_free_rx_rings(vsi);
-err_setup_rx_ring:
+err_cfg_lan:
ice_vsi_stop_lan_tx_rings(vsi, ICE_NO_RESET, 0);
+err_setup_rx_ring:
+ ice_vsi_free_rx_rings(vsi);
err_setup_tx_ring:
ice_vsi_free_tx_rings(vsi);
diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c
index e2fd2dab03e36..d88835482d3aa 100644
--- a/drivers/net/ethernet/intel/ice/ice_main.c
+++ b/drivers/net/ethernet/intel/ice/ice_main.c
@@ -5637,6 +5637,16 @@ static int ice_resume(struct device *dev)
/* Restart the service task */
mod_timer(&pf->serv_tmr, round_jiffies(jiffies + pf->serv_tmr_period));
+ /* Best-effort wait for the scheduled reset to finish so that the
+ * device is operational before returning. Without this, userspace
+ * (e.g. NetworkManager) may try to open the net device while the
+ * asynchronous reset is still in progress, hitting -EBUSY.
+ */
+ ret = ice_wait_for_reset(pf, secs_to_jiffies(10));
+ if (ret)
+ dev_err(dev, "Wait for reset timed out (10s) during resume: %d\n",
+ ret);
+
return 0;
}
diff --git a/drivers/net/ethernet/intel/ice/ice_vf_lib.c b/drivers/net/ethernet/intel/ice/ice_vf_lib.c
index 9052e71e9c99e..a54cb2b8d3c76 100644
--- a/drivers/net/ethernet/intel/ice/ice_vf_lib.c
+++ b/drivers/net/ethernet/intel/ice/ice_vf_lib.c
@@ -848,6 +848,30 @@ static void ice_notify_vf_reset(struct ice_vf *vf)
NULL);
}
+/**
+ * ice_reset_interrupts - clear all queue interrupt configuration for a VSI
+ * @vsi: the VSI whose interrupt registers should be cleared
+ *
+ * Zero the QINT_RQCTL and QINT_TQCTL registers for all allocated queues
+ * in the VSI. This clears the entire register including MSIX_INDX, ITR_INDX,
+ * CAUSE_ENA and NEXTQ fields, unlike ice_vf_dis_rxq_interrupt() which only
+ * clears the CAUSE_ENA bit.
+ */
+void ice_reset_interrupts(struct ice_vsi *vsi)
+{
+ struct ice_pf *pf = vsi->back;
+ struct ice_hw *hw = &pf->hw;
+ int i;
+
+ ice_for_each_alloc_rxq(vsi, i)
+ wr32(hw, QINT_RQCTL(vsi->rxq_map[i]), 0);
+
+ ice_for_each_alloc_txq(vsi, i)
+ wr32(hw, QINT_TQCTL(vsi->txq_map[i]), 0);
+
+ ice_flush(hw);
+}
+
/**
* ice_reset_vf - Reset a particular VF
* @vf: pointer to the VF structure
@@ -919,6 +943,9 @@ int ice_reset_vf(struct ice_vf *vf, u32 flags)
ice_dis_vf_qs(vf);
+ /* cleanup interrupt registers */
+ ice_reset_interrupts(vsi);
+
/* Call Disable LAN Tx queue AQ whether or not queues are
* enabled. This is needed for successful completion of VFR.
*/
diff --git a/drivers/net/ethernet/intel/ice/ice_vf_lib_private.h b/drivers/net/ethernet/intel/ice/ice_vf_lib_private.h
index 5392b04049862..321d29c25b7c1 100644
--- a/drivers/net/ethernet/intel/ice/ice_vf_lib_private.h
+++ b/drivers/net/ethernet/intel/ice/ice_vf_lib_private.h
@@ -26,6 +26,7 @@
void ice_initialize_vf_entry(struct ice_vf *vf);
void ice_deinitialize_vf_entry(struct ice_vf *vf);
void ice_dis_vf_qs(struct ice_vf *vf);
+void ice_reset_interrupts(struct ice_vsi *vsi);
int ice_check_vf_init(struct ice_vf *vf);
enum virtchnl_status_code ice_err_to_virt_err(int err);
struct ice_port_info *ice_vf_get_port_info(struct ice_vf *vf);
diff --git a/drivers/net/ethernet/intel/ice/virt/queues.c b/drivers/net/ethernet/intel/ice/virt/queues.c
index 31be2f76181c0..431c9c546b04f 100644
--- a/drivers/net/ethernet/intel/ice/virt/queues.c
+++ b/drivers/net/ethernet/intel/ice/virt/queues.c
@@ -224,6 +224,24 @@ void ice_vf_ena_rxq_interrupt(struct ice_vsi *vsi, u32 q_idx)
wr32(hw, QINT_RQCTL(pfq), reg | QINT_RQCTL_CAUSE_ENA_M);
}
+/**
+ * ice_vf_dis_rxq_interrupt - disable Rx queue interrupt via QINT_RQCTL
+ * @vsi: VSI of the VF to configure
+ * @q_idx: VF queue index used to determine the queue in the PF's space
+ */
+static void ice_vf_dis_rxq_interrupt(struct ice_vsi *vsi, u32 q_idx)
+{
+ struct ice_hw *hw = &vsi->back->hw;
+ u32 pfq = vsi->rxq_map[q_idx];
+ u32 reg;
+
+ reg = rd32(hw, QINT_RQCTL(pfq));
+ reg &= ~QINT_RQCTL_CAUSE_ENA_M;
+ wr32(hw, QINT_RQCTL(pfq), reg);
+
+ ice_flush(hw);
+}
+
/**
* ice_vc_ena_qs_msg
* @vf: pointer to the VF info
@@ -416,6 +434,8 @@ int ice_vc_dis_qs_msg(struct ice_vf *vf, u8 *msg)
goto error_param;
}
+ for_each_set_bit(vf_q_id, &q_map, ICE_MAX_RSS_QS_PER_VF)
+ ice_vf_dis_rxq_interrupt(vsi, vf_q_id);
bitmap_zero(vf->rxq_ena, ICE_MAX_RSS_QS_PER_VF);
} else if (q_map) {
for_each_set_bit(vf_q_id, &q_map, ICE_MAX_RSS_QS_PER_VF) {
@@ -436,6 +456,7 @@ int ice_vc_dis_qs_msg(struct ice_vf *vf, u8 *msg)
goto error_param;
}
+ ice_vf_dis_rxq_interrupt(vsi, vf_q_id);
/* Clear enabled queues flag */
clear_bit(vf_q_id, vf->rxq_ena);
}
diff --git a/drivers/net/ethernet/intel/idpf/idpf_dev.c b/drivers/net/ethernet/intel/idpf/idpf_dev.c
index 1a0c71c95ef12..4079a787657f1 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_dev.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_dev.c
@@ -87,7 +87,7 @@ static int idpf_intr_reg_init(struct idpf_vport *vport,
if (!reg_vals)
return -ENOMEM;
- num_regs = idpf_get_reg_intr_vecs(adapter, reg_vals);
+ num_regs = idpf_get_reg_intr_vecs(adapter, reg_vals, total_vecs);
if (num_regs < num_vecs) {
err = -EINVAL;
goto free_reg_vals;
diff --git a/drivers/net/ethernet/intel/idpf/idpf_lib.c b/drivers/net/ethernet/intel/idpf/idpf_lib.c
index cf966fe6c759c..bb81e620c5c87 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_lib.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_lib.c
@@ -139,7 +139,7 @@ static int idpf_mb_intr_req_irq(struct idpf_adapter *adapter)
if (err) {
dev_err(&adapter->pdev->dev,
"IRQ request for mailbox failed, error: %d\n", err);
-
+ kfree(name);
return err;
}
diff --git a/drivers/net/ethernet/intel/idpf/idpf_txrx.c b/drivers/net/ethernet/intel/idpf/idpf_txrx.c
index 7f9056404f64f..c724d429a7aa9 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_txrx.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_txrx.c
@@ -3097,10 +3097,7 @@ static netdev_tx_t idpf_tx_splitq_frame(struct sk_buff *skb,
tx_params.dtype = IDPF_TX_DESC_DTYPE_FLEX_FLOW_SCHE;
tx_params.eop_cmd = IDPF_TXD_FLEX_FLOW_CMD_EOP;
- /* Set the RE bit to periodically "clean" the descriptor ring.
- * MIN_GAP is set to MIN_RING size to ensure it will be set at
- * least once each time around the ring.
- */
+ /* Set the RE bit periodically to "clean" the descriptor ring */
if (idpf_tx_splitq_need_re(tx_q)) {
tx_params.eop_cmd |= IDPF_TXD_FLEX_FLOW_CMD_RE;
tx_q->txq_grp->num_completions_pending++;
diff --git a/drivers/net/ethernet/intel/idpf/idpf_txrx.h b/drivers/net/ethernet/intel/idpf/idpf_txrx.h
index 4be5b3b6d3ed2..908dfa28674eb 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_txrx.h
+++ b/drivers/net/ethernet/intel/idpf/idpf_txrx.h
@@ -21,7 +21,7 @@
/* Mailbox Queue */
#define IDPF_MAX_MBXQ 1
-#define IDPF_MIN_TXQ_DESC 64
+#define IDPF_MIN_TXQ_DESC 128
#define IDPF_MIN_RXQ_DESC 64
#define IDPF_MIN_TXQ_COMPLQ_DESC 256
#define IDPF_MAX_QIDS 256
diff --git a/drivers/net/ethernet/intel/idpf/idpf_vf_dev.c b/drivers/net/ethernet/intel/idpf/idpf_vf_dev.c
index a07d7e808ca9b..6726084f6cfa0 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_vf_dev.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_vf_dev.c
@@ -86,7 +86,7 @@ static int idpf_vf_intr_reg_init(struct idpf_vport *vport,
if (!reg_vals)
return -ENOMEM;
- num_regs = idpf_get_reg_intr_vecs(adapter, reg_vals);
+ num_regs = idpf_get_reg_intr_vecs(adapter, reg_vals, total_vecs);
if (num_regs < num_vecs) {
err = -EINVAL;
goto free_reg_vals;
diff --git a/drivers/net/ethernet/intel/idpf/idpf_virtchnl.c b/drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
index dc5ad784f456f..8bd6cca64c9bf 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
@@ -1318,11 +1318,12 @@ idpf_vport_init_queue_reg_chunks(struct idpf_vport_config *vport_config,
* idpf_get_reg_intr_vecs - Get vector queue register offset
* @adapter: adapter structure to get the vector chunks
* @reg_vals: Register offsets to store in
+ * @num_vecs: number of entries the @reg_vals array can hold
*
* Return: number of registers that got populated
*/
int idpf_get_reg_intr_vecs(struct idpf_adapter *adapter,
- struct idpf_vec_regs *reg_vals)
+ struct idpf_vec_regs *reg_vals, int num_vecs)
{
struct virtchnl2_vector_chunks *chunks;
struct idpf_vec_regs reg_val;
@@ -1346,7 +1347,7 @@ int idpf_get_reg_intr_vecs(struct idpf_adapter *adapter,
dynctl_reg_spacing = le32_to_cpu(chunk->dynctl_reg_spacing);
itrn_reg_spacing = le32_to_cpu(chunk->itrn_reg_spacing);
- for (i = 0; i < num_vec; i++) {
+ for (i = 0; i < num_vec && num_regs < num_vecs; i++) {
reg_vals[num_regs].dyn_ctl_reg = reg_val.dyn_ctl_reg;
reg_vals[num_regs].itrn_reg = reg_val.itrn_reg;
reg_vals[num_regs].itrn_index_spacing =
diff --git a/drivers/net/ethernet/intel/idpf/idpf_virtchnl.h b/drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
index 6876e3ed9d1be..9b1c9c86f6eac 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
+++ b/drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
@@ -104,7 +104,7 @@ int idpf_vc_core_init(struct idpf_adapter *adapter);
void idpf_vc_core_deinit(struct idpf_adapter *adapter);
int idpf_get_reg_intr_vecs(struct idpf_adapter *adapter,
- struct idpf_vec_regs *reg_vals);
+ struct idpf_vec_regs *reg_vals, int num_vecs);
int idpf_queue_reg_init(struct idpf_vport *vport,
struct idpf_q_vec_rsrc *rsrc,
struct idpf_queue_id_reg_info *chunks);
diff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c
index 0a3d0a1cba433..c686ee120a143 100644
--- a/drivers/net/ethernet/intel/igbvf/netdev.c
+++ b/drivers/net/ethernet/intel/igbvf/netdev.c
@@ -2190,8 +2190,6 @@ static inline int igbvf_tx_map_adv(struct igbvf_adapter *adapter,
buffer_info->time_stamp = 0;
buffer_info->length = 0;
buffer_info->mapped_as_page = false;
- if (count)
- count--;
/* clear timestamp and dma mappings for remaining portion of packet */
while (count--) {
diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
index 2c9e2dfd84991..b3883a5a7d7ae 100644
--- a/drivers/net/ethernet/intel/igc/igc_main.c
+++ b/drivers/net/ethernet/intel/igc/igc_main.c
@@ -5352,9 +5352,8 @@ void igc_down(struct igc_adapter *adapter)
for (i = 0; i < adapter->num_q_vectors; i++) {
if (adapter->q_vector[i]) {
- napi_synchronize(&adapter->q_vector[i]->napi);
- igc_set_queue_napi(adapter, i, NULL);
napi_disable(&adapter->q_vector[i]->napi);
+ igc_set_queue_napi(adapter, i, NULL);
}
}
|
| 3/2 | 2026/07/30 03:01 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 8325 output: 42 thoughts: 1303 Thoughts: **Patch Series Analysis for Fuzzing Potential**
Okay, so I've got this patch series touching several Intel ethernet drivers: `e1000`, `ice`, `idpf`, `igbvf`, and `igc`. My initial thought is to figure out if these are even *testable* in a virtualized environment, because that will influence my fuzzing strategy.
Here's the breakdown of the changes and my thoughts on their testability:
1. **`e1000`:** Fixes a memory leak in `e1000_probe`. Looks like a simple swap of error labels (`err_sw_init` and `err_mdio_ioremap`), which would have caused an issue with freeing resources on a failure. This could be triggered via fault injection, especially since it's in the probe function. And, importantly, `e1000` *is* emulated in QEMU. This makes it a potential target.
2. **`ice`:** A bunch of changes in `ice_dpll.c`, `ice_ethtool.c`, `ice_main.c`, and `ice_vf_lib.c`. These seem to be related to error handling, reset recovery, and interrupt clearing within a virtual function (VF). It's based on Intel's E800 series. I don't think standard QEMU emulates `ice` directly.
3. **`idpf`:** Tweaks in several files (`idpf_dev.c`, `idpf_vf_dev.c`, `idpf_virtchnl.c`, `idpf_lib.c`, `idpf_txrx.c`). This seems to include a bounds check in `idpf_get_reg_intr_vecs` to prevent out-of-bounds array accesses, a memory leak fix in `idpf_mb_intr_req_irq`, and a descriptor size change. `idpf` is Intel Infrastructure Data Path Function. It isn't emulated.
4. **`igbvf`:** A fix in `netdev.c` regarding logic in `igbvf_tx_map_adv`. Specifically, it removes a redundant `count--`. `igbvf` is the VF driver for `igb`. This is interesting. `igb` *is* emulated in QEMU, and QEMU has added SR-IOV support which makes `igbvf` potentially testable. This is a point to investigate further.
5. **`igc`:** A swap of `napi_disable` and `igc_set_queue_napi` in `igc_down` in `igc_main.c`. `igc` is the Intel 2.5G Ethernet (I225/I226) driver. It is not emulated in QEMU.
Given the prompt about emulated hardware, my initial hunch is to focus on `e1000` and `igbvf`, because they're the ones that *can* be tested.
Let me take a closer look at the key parts:
For `e1000`, the change in `e1000_probe` is very interesting: it modifies an error path. This could be an excellent candidate for fuzzing, potentially triggering the error with fault injection. I'll need to check the code again.
```c
if (hw->flash_address)
iounmap(hw->flash_address);
+err_mdio_ioremap:
kfree(adapter->tx_ring);
kfree(adapter->rx_ring);
err_dma:
err_sw_init:
-err_mdio_ioremap:
iounmap(hw->ce4100_gbe_mdio_base_virt);
iounmap(hw->hw_addr);
err_ioremap:
```
For `igbvf`, the change in `igbvf_tx_map_adv` is not a very exciting change, but it is in the critical transmit path.
```c
buffer_info->time_stamp = 0;
buffer_info->length = 0;
buffer_info->mapped_as_page = false;
- if (count)
- count--;
/* clear timestamp and dma mappings for remaining portion of packet */
while (count--) {
```
So, while the other drivers are interesting in their own right, the QEMU emulation of `e1000`
|
| 4/2 | 2026/07/30 03:01 | tool | grepper |
0mArgs:{
"Expression": "e1000_probe",
"PathPrefix": "drivers/net/ethernet/intel/e1000/"
}Results: {
"Output": "drivers/net/ethernet/intel/e1000/e1000_main.c=85=static void e1000_exit_module(void);\ndrivers/net/ethernet/intel/e1000/e1000_main.c:86:static int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent);\ndrivers/net/ethernet/intel/e1000/e1000_main.c-87-static void e1000_remove(struct pci_dev *pdev);\n--\ndrivers/net/ethernet/intel/e1000/e1000_main.c=180=static struct pci_driver e1000_driver = {\n--\ndrivers/net/ethernet/intel/e1000/e1000_main.c-182-\t.id_table = e1000_pci_tbl,\ndrivers/net/ethernet/intel/e1000/e1000_main.c:183:\t.probe = e1000_probe,\ndrivers/net/ethernet/intel/e1000/e1000_main.c-184-\t.remove = e1000_remove,\n--\ndrivers/net/ethernet/intel/e1000/e1000_main.c=851=static int e1000_init_hw_struct(struct e1000_adapter *adapter,\n--\ndrivers/net/ethernet/intel/e1000/e1000_main.c-904-/**\ndrivers/net/ethernet/intel/e1000/e1000_main.c:905: * e1000_probe - Device Initialization Routine\ndrivers/net/ethernet/intel/e1000/e1000_main.c-906- * @pdev: PCI device information struct\n--\ndrivers/net/ethernet/intel/e1000/e1000_main.c-910- *\ndrivers/net/ethernet/intel/e1000/e1000_main.c:911: * e1000_probe initializes an adapter identified by a pci_dev structure.\ndrivers/net/ethernet/intel/e1000/e1000_main.c-912- * The OS initialization, configuring of the adapter private structure,\n--\ndrivers/net/ethernet/intel/e1000/e1000_main.c-914- **/\ndrivers/net/ethernet/intel/e1000/e1000_main.c:915:static int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent)\ndrivers/net/ethernet/intel/e1000/e1000_main.c-916-{\n"
} |
| 5/2 | 2026/07/30 03:01 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 11458 output: 42 thoughts: 67 Thoughts: Here's my summary, as if I were thinking these things: **Analyzing Driver Initialization and Function Calls** Okay, so I'm looking at the `e1000_probe` function. Right, it's the PCI probe function for the `e1000` driver. That makes sense, so this function is the entry point when a matching PCI device is detected and the driver is loaded. Good, that establishes the context for that driver. Now, let's switch gears a bit. I need to check out the `igbvf_tx_map_adv` function. I remember that's within the `igbvf` module. Right, let me pull that code up and see what it does. I need to see how the TX mapping is handled in that particular scenario. |
| 6/2 | 2026/07/30 03:01 | tool | grepper |
0mArgs:{
"Expression": "igbvf_tx_map_adv",
"PathPrefix": "drivers/net/ethernet/intel/igbvf/"
}Results: {
"Output": "drivers/net/ethernet/intel/igbvf/netdev.c=2107=static int igbvf_maybe_stop_tx(struct net_device *netdev, int size)\n--\ndrivers/net/ethernet/intel/igbvf/netdev.c-2135-\ndrivers/net/ethernet/intel/igbvf/netdev.c:2136:static inline int igbvf_tx_map_adv(struct igbvf_adapter *adapter,\ndrivers/net/ethernet/intel/igbvf/netdev.c-2137-\t\t\t\t struct igbvf_ring *tx_ring,\n--\ndrivers/net/ethernet/intel/igbvf/netdev.c=2265=static netdev_tx_t igbvf_xmit_frame_ring_adv(struct sk_buff *skb,\n--\ndrivers/net/ethernet/intel/igbvf/netdev.c-2322-\t */\ndrivers/net/ethernet/intel/igbvf/netdev.c:2323:\tcount = igbvf_tx_map_adv(adapter, tx_ring, skb);\ndrivers/net/ethernet/intel/igbvf/netdev.c-2324-\n"
} |
| 7/2 | 2026/07/30 03:01 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 12058 output: 45 thoughts: 65 Thoughts: Here's my summary, as if I were thinking these things: **Analyzing the IGBVF Transmit Path** Okay, so `igbvf_tx_map_adv` is clearly a key function in the transmit process. I need to understand its role. It's called from `igbvf_xmit_frame_ring_adv`, which, of course, is the function that implements `ndo_start_xmit` – the network device operation for starting a transmit, so this is where the action happens. Therefore, `igbvf_xmit_frame_ring_adv` needs a closer look. I'll focus my attention there. |
| 8/2 | 2026/07/30 03:01 | tool | grepper |
0mArgs:{
"Expression": "igbvf_xmit_frame_ring_adv",
"PathPrefix": "drivers/net/ethernet/intel/igbvf/"
}Results: {
"Output": "drivers/net/ethernet/intel/igbvf/netdev.c=2206=static inline void igbvf_tx_queue_adv(struct igbvf_adapter *adapter,\n--\ndrivers/net/ethernet/intel/igbvf/netdev.c-2264-\ndrivers/net/ethernet/intel/igbvf/netdev.c:2265:static netdev_tx_t igbvf_xmit_frame_ring_adv(struct sk_buff *skb,\ndrivers/net/ethernet/intel/igbvf/netdev.c-2266-\t\t\t\t\t struct net_device *netdev,\n--\ndrivers/net/ethernet/intel/igbvf/netdev.c=2339=static netdev_tx_t igbvf_xmit_frame(struct sk_buff *skb,\n--\ndrivers/net/ethernet/intel/igbvf/netdev.c-2351-\ndrivers/net/ethernet/intel/igbvf/netdev.c:2352:\treturn igbvf_xmit_frame_ring_adv(skb, netdev, tx_ring);\ndrivers/net/ethernet/intel/igbvf/netdev.c-2353-}\n"
} |
| 9/2 | 2026/07/30 03:01 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 12629 output: 35 thoughts: 239 Thoughts: **Analyzing the Kernel Driver Code for Fuzzing Opportunities** Okay, so `igbvf_xmit_frame` definitely calls `igbvf_xmit_frame_ring_adv`, which means `igbvf_tx_map_adv` is indeed in the "hot path". But wait, the prompt specifically says to avoid listing generic hot-path functions to prevent skewed test distributions. That's a good point... oh, but `igbvf_tx_map_adv` is inlined, so that's probably less of a concern. Now, `e1000_probe` looks promising. Probe functions are always good targets for fuzzing, especially given PCI hotplug or driver loading possibilities. That's a solid candidate. What about other drivers like `ice`, `idpf`, or `igc`? Hm, those aren't typically emulated in standard QEMU. That's a limitation right there. But wait, I'm forgetting something. `e1000` *is* emulated, and `igbvf` is too (if QEMU supports `igb` SR-IOV, which it does as of QEMU 8.0). So the patch is introducing functional changes to both `e1000` and `igbvf` that are actually reachable via the emulator. This is very good news. Time to confirm this; I should probably quickly check the Kconfig files for both `e1000` and `igbvf` to make sure they're enabled by default, or at least easily configurable. |
| 10/2 | 2026/07/30 03:02 | tool | grepper |
0mArgs:{
"Expression": "config E1000",
"PathPrefix": "drivers/net/ethernet/intel/"
}Results: {
"Output": "drivers/net/ethernet/intel/Kconfig=22=config E100\n--\ndrivers/net/ethernet/intel/Kconfig-44-\ndrivers/net/ethernet/intel/Kconfig:45:config E1000\ndrivers/net/ethernet/intel/Kconfig-46-\ttristate \"Intel(R) PRO/1000 Gigabit Ethernet support\"\n--\ndrivers/net/ethernet/intel/Kconfig-60-\ndrivers/net/ethernet/intel/Kconfig:61:config E1000E\ndrivers/net/ethernet/intel/Kconfig-62-\ttristate \"Intel(R) PRO/1000 PCI-Express Gigabit Ethernet support\"\n--\ndrivers/net/ethernet/intel/Kconfig-80-\ndrivers/net/ethernet/intel/Kconfig:81:config E1000E_HWTS\ndrivers/net/ethernet/intel/Kconfig-82-\tbool \"Support HW cross-timestamp on PCH devices\"\n"
} |
| 11/2 | 2026/07/30 03:02 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 13507 output: 33 thoughts: 12 Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience: **Examining the Kconfig for `igbvf`** Okay, so I'm thinking about the `igbvf` Kconfig. I need to refresh my memory on the configuration options for that virtual function driver, and what dependencies it has. I'm probably looking for things like whether it's modular, if it requires specific hardware or firmware versions, what other drivers it might conflict with, and any platform-specific considerations. I'll be digging in to understand the conditions that enable or disable this. |
| 12/2 | 2026/07/30 03:02 | tool | grepper |
0mArgs:{
"Expression": "config IGBVF",
"PathPrefix": "drivers/net/ethernet/intel/"
}Results: {
"Output": "drivers/net/ethernet/intel/Kconfig=120=config IGB_DCA\n--\ndrivers/net/ethernet/intel/Kconfig-128-\ndrivers/net/ethernet/intel/Kconfig:129:config IGBVF\ndrivers/net/ethernet/intel/Kconfig-130-\ttristate \"Intel(R) 82576 Virtual Function Ethernet support\"\n"
} |
| 13/2 | 2026/07/30 03:02 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 13790 output: 38 thoughts: 13 Thoughts: Okay, let's dive into this. Here's my thought process on this: **Checking `e1000` Dependencies** Alright, the first thing that pops into my head is a methodical check. Time to get granular. Before I proceed, I need to thoroughly examine the dependencies of `e1000`. It's crucial to understand what other components, libraries, or even firmware rely on this element. This isn't just a casual glance; I need a detailed dependency map. That means diving deep into the code, configuration files, build systems...everything that touches `e1000`. I need to ensure that whatever adjustments or analysis I'm about to do won't trigger a cascade of unforeseen effects throughout the system. I'll need to know not only the direct dependencies, but also the indirect ones. Understanding the broader context around `e1000` is paramount. That's the baseline, the groundwork for any further analysis. Let's see what we've got. |
| 14/2 | 2026/07/30 03:02 | tool | read-file |
0mArgs:{
"File": "drivers/net/ethernet/intel/Kconfig",
"FirstLine": 45,
"LineCount": 15
}Results: {
"Contents": " 45:\tconfig E1000\n 46:\t\ttristate \"Intel(R) PRO/1000 Gigabit Ethernet support\"\n 47:\t\tdepends on PCI \u0026\u0026 HAS_IOPORT\n 48:\t\thelp\n 49:\t\t This driver supports Intel(R) PRO/1000 gigabit ethernet family of\n 50:\t\t adapters. For more information on how to identify your adapter, go\n 51:\t\t to the Adapter \u0026 Driver ID Guide that can be located at:\n 52:\t\n 53:\t\t \u003chttp://support.intel.com\u003e\n 54:\t\n 55:\t\t More specific information on configuring the driver is in\n 56:\t\t \u003cfile:Documentation/networking/device_drivers/ethernet/intel/e1000.rst\u003e.\n 57:\t\n 58:\t\t To compile this driver as a module, choose M here. The module\n 59:\t\t will be called e1000.\n"
} |
| 15/2 | 2026/07/30 03:02 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 14311 output: 39 thoughts: 11 Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience: **Dependency Check: `igbvf`** Alright, let's get down to brass tacks. I need to quickly ascertain the dependencies for this `igbvf` module or library. It's a fundamental step; I can't even *think* about modifying, debugging, or integrating it without knowing what it's leaning on and what it provides. This isn't just about a quick glance at a package manifest, either. I need a real, holistic understanding of the impact any change might have. Is it something simple, maybe just a handful of straightforward interfaces, or is it a sprawling web of complex, transitive dependencies? The answers will shape my approach from this point forward. Time to dig in and map it out. |
| 16/2 | 2026/07/30 03:02 | tool | read-file |
0mArgs:{
"File": "drivers/net/ethernet/intel/Kconfig",
"FirstLine": 129,
"LineCount": 15
}Results: {
"Contents": " 129:\tconfig IGBVF\n 130:\t\ttristate \"Intel(R) 82576 Virtual Function Ethernet support\"\n 131:\t\tdepends on PCI\n 132:\t\thelp\n 133:\t\t This driver supports Intel(R) 82576 virtual functions. For more\n 134:\t\t information on how to identify your adapter, go to the Adapter \u0026\n 135:\t\t Driver ID Guide that can be located at:\n 136:\t\n 137:\t\t \u003chttp://support.intel.com\u003e\n 138:\t\n 139:\t\t More specific information on configuring the driver is in\n 140:\t\t \u003cfile:Documentation/networking/device_drivers/ethernet/intel/igbvf.rst\u003e.\n 141:\t\n 142:\t\t To compile this driver as a module, choose M here. The module\n 143:\t\t will be called igbvf.\n"
} |
| 17/2 | 2026/07/30 03:02 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 14788 output: 51 thoughts: 304 Thoughts: **Analyzing the Target Functions for Testing** Okay, so I'm looking at these two configurations, `E1000` and `IGBVF`, and thinking about where the changes are in the patch. I see that the patch modifies `e1000_probe` and `igbvf_tx_map_adv`. `e1000_probe` seems like a good, focused symbol to target. It's a clear entry point. Now, `igbvf_tx_map_adv`... that's static inline, so it won't be a direct symbol. The caller is `igbvf_xmit_frame_ring_adv`, also static inline, meaning the real symbol is `igbvf_xmit_frame`. But wait, `igbvf_xmit_frame` is a hot-path function, likely the `ndo_start_xmit` entry point. The instructions say to avoid generic hot-path functions to get a better test distribution. So, I shouldn't include that. I need to make sure I haven't missed anything, are there any other functions to target? What about `idpf`, `ice`, or `igc`? Those aren't emulated. So, it looks like `e1000_probe` is the only focus symbol. Let me double-check about `igbvf_xmit_frame`. The instructions specifically tell me to "Avoid listing generic hot-path functions to prevent skewed test distributions." This seals it, I can't include that. Okay, let me check `e1000_probe` in `e1000_main.c` to confirm my findings. |
| 18/2 | 2026/07/30 03:02 | tool | grepper |
0mArgs:{
"Expression": "e1000_probe",
"PathPrefix": "drivers/net/ethernet/intel/e1000/e1000_main.c"
}Results: {
"Output": "drivers/net/ethernet/intel/e1000/e1000_main.c=85=static void e1000_exit_module(void);\ndrivers/net/ethernet/intel/e1000/e1000_main.c:86:static int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent);\ndrivers/net/ethernet/intel/e1000/e1000_main.c-87-static void e1000_remove(struct pci_dev *pdev);\n--\ndrivers/net/ethernet/intel/e1000/e1000_main.c=180=static struct pci_driver e1000_driver = {\n--\ndrivers/net/ethernet/intel/e1000/e1000_main.c-182-\t.id_table = e1000_pci_tbl,\ndrivers/net/ethernet/intel/e1000/e1000_main.c:183:\t.probe = e1000_probe,\ndrivers/net/ethernet/intel/e1000/e1000_main.c-184-\t.remove = e1000_remove,\n--\ndrivers/net/ethernet/intel/e1000/e1000_main.c=851=static int e1000_init_hw_struct(struct e1000_adapter *adapter,\n--\ndrivers/net/ethernet/intel/e1000/e1000_main.c-904-/**\ndrivers/net/ethernet/intel/e1000/e1000_main.c:905: * e1000_probe - Device Initialization Routine\ndrivers/net/ethernet/intel/e1000/e1000_main.c-906- * @pdev: PCI device information struct\n--\ndrivers/net/ethernet/intel/e1000/e1000_main.c-910- *\ndrivers/net/ethernet/intel/e1000/e1000_main.c:911: * e1000_probe initializes an adapter identified by a pci_dev structure.\ndrivers/net/ethernet/intel/e1000/e1000_main.c-912- * The OS initialization, configuring of the adapter private structure,\n--\ndrivers/net/ethernet/intel/e1000/e1000_main.c-914- **/\ndrivers/net/ethernet/intel/e1000/e1000_main.c:915:static int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent)\ndrivers/net/ethernet/intel/e1000/e1000_main.c-916-{\n"
} |
| 19/2 | 2026/07/30 03:02 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 16275 output: 174 thoughts: 968 Thoughts: **Analysis of the Patch for Fuzzing Suitability** Okay, let's break this down. First, I need to figure out if this patch introduces changes that are fuzzable within a standard QEMU environment. The prompt says to favor non-static, non-inlined API entrypoints. My initial thought was that `e1000_probe` is static, which is a PCI probe function, so it's not inlined, and it does have a distinct symbol address. Wait, the prompt says it is okay if this is an API entrypoint, which this is! Excellent, include it. Next, I need to run through the functions quickly to determine their status: `igbvf_tx_map_adv` is static inline; `igbvf_xmit_frame_ring_adv` is static inline; and, `igbvf_xmit_frame` is static as well because it's the `ndo_start_xmit` callback. I then went through a list of other potentially relevant functions to see if they were in emulated drivers. `igc_down`, `idpf_mb_intr_req_irq`, and `ice_dpll_pps_update_phase_offsets` are not emulated, so they can be ruled out. This leaves only `e1000` and `igbvf` as the emulated drivers. Therefore, the applicable configs are `E1000` and `IGBVF`. Now, the instructions indicate that we shouldn't fuzz if the code is in vendor-specific PCIe drivers that require physical PCIe hardware not emulated in standard QEMU. Since the patch deals with `e1000` and `igbvf`, both of which are emulated, we're good to go. I then revisited the focus function, `e1000_probe`. After a quick review, I concluded that `igbvf_xmit_frame` is in the hot path, and can be excluded, and the other function, `igbvf_tx_map_adv`, is inlined into the hot path. Then, confirming, there are no other modified functions in `e1000` or `igbvf`. Therefore, only `e1000_probe` is a focus symbol. My final thought was to confirm whether `E1000` or `IGBVF` depends on anything weird. Both `E1000` (`PCI && HAS_IOPORT`) and `IGBVF` (`PCI`) have standard dependencies. Just to be safe, I again verified that `igc`, `ice`, and `idpf` are not emulated, since they could throw off the analysis. In summary, this patch is fuzzable. The rationale is the patch modifies Intel ethernet drivers. While `ice`, `idpf`, and `igc` are not emulated in standard QEMU, `e1000` and `igbvf` are. The patch fixes `e1000_probe` and `igbvf_tx_map_adv`, which can be fuzzed through PCI device initialization/fault injection. Therefore, the results are: * WorthFuzzing = true * FocusSymbols = `["e1000_probe"]` * EnableConfigs = `["E1000", "IGBVF"]` |
| 20/2 | 2026/07/30 03:02 | tool | set-results |
0mArgs:{
"EnableConfigs": [
"E1000",
"IGBVF"
],
"FocusSymbols": [
"e1000_probe"
],
"Reasoning": "The patch modifies several Intel ethernet drivers. While ice, idpf, and igc are not emulated in standard QEMU, the e1000 and igbvf drivers are supported (QEMU emulates e1000 and igb with SR-IOV). The patch fixes an error handling path in e1000_probe and a logic bug in igbvf_tx_map_adv (which is inlined into the transmit hot-path). We can fuzz the e1000_probe function via PCI device initialization and fault injection.",
"WorthFuzzing": true
}Results: {
"EnableConfigs": [
"E1000",
"IGBVF"
],
"FocusSymbols": [
"e1000_probe"
],
"Reasoning": "The patch modifies several Intel ethernet drivers. While ice, idpf, and igc are not emulated in standard QEMU, the e1000 and igbvf drivers are supported (QEMU emulates e1000 and igb with SR-IOV). The patch fixes an error handling path in e1000_probe and a logic bug in igbvf_tx_map_adv (which is inlined into the transmit hot-path). We can fuzz the e1000_probe function via PCI device initialization and fault injection.",
"WorthFuzzing": true
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|