| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/09/03 21:53 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The patch modifies the Broadcom NetXtreme-C/E (bnxt) network device driver, which controls vendor-specific physical PCIe NIC hardware not emulated in standard virtualized fuzzing environments (QEMU/GCE). Therefore, the modified code is structurally unreachable for syzkaller fuzzing.",
"WorthFuzzing": false
} |
| 1/1 | 2026/09/03 21:53 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 9d6ed8e95c56df9b42fdcfa23da83cc275c95078\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Thu Sep 3 21:53:41 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c\nindex d59bcca73a2b8..8c6e2ee6bee49 100644\n--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c\n+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c\n@@ -462,6 +462,16 @@ u16 bnxt_xmit_get_cfa_action(struct sk_buff *skb)\n static void bnxt_txr_db_kick(struct bnxt *bp, struct bnxt_tx_ring_info *txr,\n \t\t\t u16 prod)\n {\n+\t/* If the most recent BD has its completion suppressed, unset the bit\n+\t * so that a completion is generated, otherwise nothing is left to\n+\t * clean the ring and wake the queue.\n+\t */\n+\tif (txr-\u003ekick_txbd0) {\n+\t\ttxr-\u003ekick_txbd0-\u003etx_bd_len_flags_type \u0026=\n+\t\t\tcpu_to_le32(~TX_BD_FLAGS_NO_CMPL);\n+\t\ttxr-\u003ekick_txbd0 = NULL;\n+\t}\n+\n \t/* Sync BD data before updating doorbell */\n \twmb();\n \tbnxt_db_write(bp, \u0026txr-\u003etx_db, prod);\n@@ -485,7 +495,6 @@ static netdev_tx_t bnxt_start_xmit(struct sk_buff *skb, struct net_device *dev)\n \tstruct bnxt_sw_tx_bd *tx_buf;\n \t__le32 lflags = 0;\n \tskb_frag_t *frag;\n-\tnetdev_tx_t ret;\n \n \ti = skb_get_queue_mapping(skb);\n \tif (unlikely(i \u003e= bp-\u003etx_nr_rings)) {\n@@ -509,11 +518,22 @@ static netdev_tx_t bnxt_start_xmit(struct sk_buff *skb, struct net_device *dev)\n \tif (skb_is_gso(skb) \u0026\u0026\n \t (skb_shinfo(skb)-\u003egso_type \u0026 SKB_GSO_UDP_L4) \u0026\u0026\n \t !(bp-\u003eflags \u0026 BNXT_FLAG_UDP_GSO_CAP)) {\n-\t\tret = bnxt_sw_udp_gso_xmit(bp, txr, txq, skb);\n-\t\tif (txr-\u003ekick_pending)\n+\t\tint rc = bnxt_sw_udp_gso_xmit(bp, txr, txq, skb);\n+\n+\t\t/* if SW USO queued a packet, the doorbell will be written\n+\t\t * below and there is no reason to track the last BD with\n+\t\t * suppressed completions\n+\t\t */\n+\t\tif (rc \u003e 0)\n+\t\t\ttxr-\u003ekick_txbd0 = NULL;\n+\n+\t\t/* if a packet was queued by SW USO or a doorbell was pending\n+\t\t * from a previous xmit that was deferred, write the doorbell.\n+\t\t */\n+\t\tif (rc \u003e 0 || txr-\u003ekick_pending)\n \t\t\tbnxt_txr_db_kick(bp, txr, txr-\u003etx_prod);\n \n-\t\treturn ret;\n+\t\treturn rc \u003c 0 ? NETDEV_TX_BUSY : NETDEV_TX_OK;\n \t}\n \n \tfree_size = bnxt_tx_avail(bp, txr);\n@@ -751,23 +771,23 @@ static netdev_tx_t bnxt_start_xmit(struct sk_buff *skb, struct net_device *dev)\n \tprod = NEXT_TX(prod);\n \tWRITE_ONCE(txr-\u003etx_prod, prod);\n \n+\ttxr-\u003ekick_txbd0 = NULL;\n \tif (!netdev_xmit_more() || netif_xmit_stopped(txq)) {\n \t\tbnxt_txr_db_kick(bp, txr, prod);\n \t} else {\n-\t\tif (free_size \u003e= bp-\u003etx_wake_thresh)\n+\t\tif (free_size \u003e= bp-\u003etx_wake_thresh) {\n \t\t\ttxbd0-\u003etx_bd_len_flags_type |=\n \t\t\t\tcpu_to_le32(TX_BD_FLAGS_NO_CMPL);\n+\t\t\ttxr-\u003ekick_txbd0 = txbd0;\n+\t\t}\n \t\ttxr-\u003ekick_pending = 1;\n \t}\n \n tx_done:\n \n \tif (unlikely(bnxt_tx_avail(bp, txr) \u003c= MAX_SKB_FRAGS + 1)) {\n-\t\tif (netdev_xmit_more() \u0026\u0026 !tx_buf-\u003eis_push) {\n-\t\t\ttxbd0-\u003etx_bd_len_flags_type \u0026=\n-\t\t\t\tcpu_to_le32(~TX_BD_FLAGS_NO_CMPL);\n+\t\tif (txr-\u003ekick_pending)\n \t\t\tbnxt_txr_db_kick(bp, txr, prod);\n-\t\t}\n \n \t\tnetif_txq_try_stop(txq, bnxt_tx_avail(bp, txr),\n \t\t\t\t bp-\u003etx_wake_thresh);\n@@ -5427,6 +5447,8 @@ static void bnxt_clear_ring_indices(struct bnxt *bp)\n \t\t\ttxr-\u003etx_prod = 0;\n \t\t\ttxr-\u003etx_cons = 0;\n \t\t\ttxr-\u003etx_hw_cons = 0;\n+\t\t\ttxr-\u003ekick_pending = 0;\n+\t\t\ttxr-\u003ekick_txbd0 = NULL;\n \t\t}\n \n \t\trxr = bnapi-\u003erx_ring;\n@@ -11772,6 +11794,8 @@ static int bnxt_tx_queue_start(struct bnxt *bp, int idx)\n \t\ttxr-\u003etx_prod = 0;\n \t\ttxr-\u003etx_cons = 0;\n \t\ttxr-\u003etx_hw_cons = 0;\n+\t\ttxr-\u003ekick_pending = 0;\n+\t\ttxr-\u003ekick_txbd0 = NULL;\n start_tx:\n \t\tWRITE_ONCE(txr-\u003edev_state, 0);\n \t\tsynchronize_net();\ndiff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h\nindex ab894f8addef5..dc5a16ec5943c 100644\n--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h\n+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h\n@@ -993,6 +993,7 @@ struct bnxt_tx_ring_info {\n \tu16\t\t\ttxq_index;\n \tu8\t\t\ttx_napi_idx;\n \tu8\t\t\tkick_pending;\n+\tstruct tx_bd\t\t*kick_txbd0;\n \tstruct bnxt_db_info\ttx_db;\n \n \tstruct tx_bd\t\t*tx_desc_ring[MAX_TX_PAGES];\ndiff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c\nindex f7e18bea0fb84..6c1060fa2ea5c 100644\n--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c\n+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c\n@@ -31,10 +31,14 @@ static u32 bnxt_sw_gso_lhint(unsigned int len)\n \t\treturn TX_BD_FLAGS_LHINT_2048_AND_LARGER;\n }\n \n-netdev_tx_t bnxt_sw_udp_gso_xmit(struct bnxt *bp,\n-\t\t\t\t struct bnxt_tx_ring_info *txr,\n-\t\t\t\t struct netdev_queue *txq,\n-\t\t\t\t struct sk_buff *skb)\n+/* Transmit an skb requiring software UDP segmentation.\n+ *\n+ * Returns 1 if the skb was queued and new BDs were produced, 0 if the skb\n+ * was dropped, or -1 if the ring is full and the skb should be retried.\n+ * The caller owns the doorbell for all three cases.\n+ */\n+int bnxt_sw_udp_gso_xmit(struct bnxt *bp, struct bnxt_tx_ring_info *txr,\n+\t\t\t struct netdev_queue *txq, struct sk_buff *skb)\n {\n \tunsigned int last_unmap_len __maybe_unused = 0;\n \tdma_addr_t last_unmap_addr __maybe_unused = 0;\n@@ -69,7 +73,7 @@ netdev_tx_t bnxt_sw_udp_gso_xmit(struct bnxt *bp,\n \tif (unlikely(bnxt_tx_avail(bp, txr) \u003c bds_needed)) {\n \t\tnetif_txq_try_stop(txq, bnxt_tx_avail(bp, txr),\n \t\t\t\t bp-\u003etx_wake_thresh);\n-\t\treturn NETDEV_TX_BUSY;\n+\t\treturn -1;\n \t}\n \n \t/* BD backpressure alone cannot prevent overwriting in-flight\n@@ -77,7 +81,7 @@ netdev_tx_t bnxt_sw_udp_gso_xmit(struct bnxt *bp,\n \t */\n \tif (!netif_txq_maybe_stop(txq, bnxt_inline_avail(txr),\n \t\t\t\t num_segs, num_segs))\n-\t\treturn NETDEV_TX_BUSY;\n+\t\treturn -1;\n \n \tif (unlikely(tso_dma_map_init(\u0026map, \u0026pdev-\u003edev, skb, hdr_len)))\n \t\tgoto drop;\n@@ -223,16 +227,15 @@ netdev_tx_t bnxt_sw_udp_gso_xmit(struct bnxt *bp,\n \tnetdev_tx_sent_queue(txq, skb-\u003elen);\n \n \tWRITE_ONCE(txr-\u003etx_prod, prod);\n-\ttxr-\u003ekick_pending = 1;\n \n \tif (unlikely(bnxt_tx_avail(bp, txr) \u003c= bp-\u003etx_wake_thresh))\n \t\tnetif_txq_try_stop(txq, bnxt_tx_avail(bp, txr),\n \t\t\t\t bp-\u003etx_wake_thresh);\n \n-\treturn NETDEV_TX_OK;\n+\treturn 1;\n \n drop:\n \tdev_kfree_skb_any(skb);\n \tdev_core_stats_tx_dropped_inc(bp-\u003edev);\n-\treturn NETDEV_TX_OK;\n+\treturn 0;\n }\ndiff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.h b/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.h\nindex 47528c20f311b..77d9af97cc22a 100644\n--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.h\n+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.h\n@@ -38,9 +38,7 @@ static inline int bnxt_min_tx_desc_cnt(struct bnxt *bp,\n \treturn BNXT_MIN_TX_DESC_CNT;\n }\n \n-netdev_tx_t bnxt_sw_udp_gso_xmit(struct bnxt *bp,\n-\t\t\t\t struct bnxt_tx_ring_info *txr,\n-\t\t\t\t struct netdev_queue *txq,\n-\t\t\t\t struct sk_buff *skb);\n+int bnxt_sw_udp_gso_xmit(struct bnxt *bp, struct bnxt_tx_ring_info *txr,\n+\t\t\t struct netdev_queue *txq, struct sk_buff *skb);\n \n #endif\n"
} |
| 2/1 | 2026/09/03 21:53 | agent | patch-evaluator |
0mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the Broadcom NetXtreme-C/E (bnxt) network device driver, which controls vendor-specific physical PCIe NIC hardware not emulated in standard virtualized fuzzing environments (QEMU/GCE). Therefore, the modified code is structurally unreachable for syzkaller 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 9d6ed8e95c56df9b42fdcfa23da83cc275c95078
Author: syz-cluster <triage@syzkaller.com>
Date: Thu Sep 3 21:53:41 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
index d59bcca73a2b8..8c6e2ee6bee49 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
@@ -462,6 +462,16 @@ u16 bnxt_xmit_get_cfa_action(struct sk_buff *skb)
static void bnxt_txr_db_kick(struct bnxt *bp, struct bnxt_tx_ring_info *txr,
u16 prod)
{
+ /* If the most recent BD has its completion suppressed, unset the bit
+ * so that a completion is generated, otherwise nothing is left to
+ * clean the ring and wake the queue.
+ */
+ if (txr->kick_txbd0) {
+ txr->kick_txbd0->tx_bd_len_flags_type &=
+ cpu_to_le32(~TX_BD_FLAGS_NO_CMPL);
+ txr->kick_txbd0 = NULL;
+ }
+
/* Sync BD data before updating doorbell */
wmb();
bnxt_db_write(bp, &txr->tx_db, prod);
@@ -485,7 +495,6 @@ static netdev_tx_t bnxt_start_xmit(struct sk_buff *skb, struct net_device *dev)
struct bnxt_sw_tx_bd *tx_buf;
__le32 lflags = 0;
skb_frag_t *frag;
- netdev_tx_t ret;
i = skb_get_queue_mapping(skb);
if (unlikely(i >= bp->tx_nr_rings)) {
@@ -509,11 +518,22 @@ static netdev_tx_t bnxt_start_xmit(struct sk_buff *skb, struct net_device *dev)
if (skb_is_gso(skb) &&
(skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) &&
!(bp->flags & BNXT_FLAG_UDP_GSO_CAP)) {
- ret = bnxt_sw_udp_gso_xmit(bp, txr, txq, skb);
- if (txr->kick_pending)
+ int rc = bnxt_sw_udp_gso_xmit(bp, txr, txq, skb);
+
+ /* if SW USO queued a packet, the doorbell will be written
+ * below and there is no reason to track the last BD with
+ * suppressed completions
+ */
+ if (rc > 0)
+ txr->kick_txbd0 = NULL;
+
+ /* if a packet was queued by SW USO or a doorbell was pending
+ * from a previous xmit that was deferred, write the doorbell.
+ */
+ if (rc > 0 || txr->kick_pending)
bnxt_txr_db_kick(bp, txr, txr->tx_prod);
- return ret;
+ return rc < 0 ? NETDEV_TX_BUSY : NETDEV_TX_OK;
}
free_size = bnxt_tx_avail(bp, txr);
@@ -751,23 +771,23 @@ static netdev_tx_t bnxt_start_xmit(struct sk_buff *skb, struct net_device *dev)
prod = NEXT_TX(prod);
WRITE_ONCE(txr->tx_prod, prod);
+ txr->kick_txbd0 = NULL;
if (!netdev_xmit_more() || netif_xmit_stopped(txq)) {
bnxt_txr_db_kick(bp, txr, prod);
} else {
- if (free_size >= bp->tx_wake_thresh)
+ if (free_size >= bp->tx_wake_thresh) {
txbd0->tx_bd_len_flags_type |=
cpu_to_le32(TX_BD_FLAGS_NO_CMPL);
+ txr->kick_txbd0 = txbd0;
+ }
txr->kick_pending = 1;
}
tx_done:
if (unlikely(bnxt_tx_avail(bp, txr) <= MAX_SKB_FRAGS + 1)) {
- if (netdev_xmit_more() && !tx_buf->is_push) {
- txbd0->tx_bd_len_flags_type &=
- cpu_to_le32(~TX_BD_FLAGS_NO_CMPL);
+ if (txr->kick_pending)
bnxt_txr_db_kick(bp, txr, prod);
- }
netif_txq_try_stop(txq, bnxt_tx_avail(bp, txr),
bp->tx_wake_thresh);
@@ -5427,6 +5447,8 @@ static void bnxt_clear_ring_indices(struct bnxt *bp)
txr->tx_prod = 0;
txr->tx_cons = 0;
txr->tx_hw_cons = 0;
+ txr->kick_pending = 0;
+ txr->kick_txbd0 = NULL;
}
rxr = bnapi->rx_ring;
@@ -11772,6 +11794,8 @@ static int bnxt_tx_queue_start(struct bnxt *bp, int idx)
txr->tx_prod = 0;
txr->tx_cons = 0;
txr->tx_hw_cons = 0;
+ txr->kick_pending = 0;
+ txr->kick_txbd0 = NULL;
start_tx:
WRITE_ONCE(txr->dev_state, 0);
synchronize_net();
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h
index ab894f8addef5..dc5a16ec5943c 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h
@@ -993,6 +993,7 @@ struct bnxt_tx_ring_info {
u16 txq_index;
u8 tx_napi_idx;
u8 kick_pending;
+ struct tx_bd *kick_txbd0;
struct bnxt_db_info tx_db;
struct tx_bd *tx_desc_ring[MAX_TX_PAGES];
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c
index f7e18bea0fb84..6c1060fa2ea5c 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c
@@ -31,10 +31,14 @@ static u32 bnxt_sw_gso_lhint(unsigned int len)
return TX_BD_FLAGS_LHINT_2048_AND_LARGER;
}
-netdev_tx_t bnxt_sw_udp_gso_xmit(struct bnxt *bp,
- struct bnxt_tx_ring_info *txr,
- struct netdev_queue *txq,
- struct sk_buff *skb)
+/* Transmit an skb requiring software UDP segmentation.
+ *
+ * Returns 1 if the skb was queued and new BDs were produced, 0 if the skb
+ * was dropped, or -1 if the ring is full and the skb should be retried.
+ * The caller owns the doorbell for all three cases.
+ */
+int bnxt_sw_udp_gso_xmit(struct bnxt *bp, struct bnxt_tx_ring_info *txr,
+ struct netdev_queue *txq, struct sk_buff *skb)
{
unsigned int last_unmap_len __maybe_unused = 0;
dma_addr_t last_unmap_addr __maybe_unused = 0;
@@ -69,7 +73,7 @@ netdev_tx_t bnxt_sw_udp_gso_xmit(struct bnxt *bp,
if (unlikely(bnxt_tx_avail(bp, txr) < bds_needed)) {
netif_txq_try_stop(txq, bnxt_tx_avail(bp, txr),
bp->tx_wake_thresh);
- return NETDEV_TX_BUSY;
+ return -1;
}
/* BD backpressure alone cannot prevent overwriting in-flight
@@ -77,7 +81,7 @@ netdev_tx_t bnxt_sw_udp_gso_xmit(struct bnxt *bp,
*/
if (!netif_txq_maybe_stop(txq, bnxt_inline_avail(txr),
num_segs, num_segs))
- return NETDEV_TX_BUSY;
+ return -1;
if (unlikely(tso_dma_map_init(&map, &pdev->dev, skb, hdr_len)))
goto drop;
@@ -223,16 +227,15 @@ netdev_tx_t bnxt_sw_udp_gso_xmit(struct bnxt *bp,
netdev_tx_sent_queue(txq, skb->len);
WRITE_ONCE(txr->tx_prod, prod);
- txr->kick_pending = 1;
if (unlikely(bnxt_tx_avail(bp, txr) <= bp->tx_wake_thresh))
netif_txq_try_stop(txq, bnxt_tx_avail(bp, txr),
bp->tx_wake_thresh);
- return NETDEV_TX_OK;
+ return 1;
drop:
dev_kfree_skb_any(skb);
dev_core_stats_tx_dropped_inc(bp->dev);
- return NETDEV_TX_OK;
+ return 0;
}
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.h b/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.h
index 47528c20f311b..77d9af97cc22a 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.h
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.h
@@ -38,9 +38,7 @@ static inline int bnxt_min_tx_desc_cnt(struct bnxt *bp,
return BNXT_MIN_TX_DESC_CNT;
}
-netdev_tx_t bnxt_sw_udp_gso_xmit(struct bnxt *bp,
- struct bnxt_tx_ring_info *txr,
- struct netdev_queue *txq,
- struct sk_buff *skb);
+int bnxt_sw_udp_gso_xmit(struct bnxt *bp, struct bnxt_tx_ring_info *txr,
+ struct netdev_queue *txq, struct sk_buff *skb);
#endif
|
| 3/2 | 2026/09/03 21:53 | llm | patch-evaluator |
0mModel:gemini-3.7-flash Args: null Results: null Tokens: input: 5756 output: 33 thoughts: 286 Thoughts: **Analyzing this Patch: A Quick Assessment** Okay, let's dive into this patch. I see the modifications are touching the `drivers/net/ethernet/broadcom/bnxt/bnxt.c`, `bnxt.h`, `bnxt_gso.c`, and `bnxt_gso.h` files. Hmm, `bnxt`... that's Broadcom's NetXtreme-C/NetXtreme-E drivers for those BCM573xx, BCM574xx, and BCM575xx PCI Ethernet NICs, if I recall correctly. So, in essence, it’s a driver for a physical PCIe network card. Now, the critical question: can this be fuzzed effectively? I'm immediately thinking about the "WHEN TO RETURN WorthFuzzing=false" criteria. Specifically, that second bullet point: "Structurally unreachable hardware... requiring physical ASIC/PCIe cards not emulated in standard QEMU." That's the key. Are we dealing with hardware that *requires* a physical Broadcom card or some special QEMU setup that's not standard? I'm going to have to verify whether the `bnxt_en` driver has a dependency on actual Broadcom hardware for this specific test case. I need to clarify what the environment setup will be. |
| 4/2 | 2026/09/03 21:53 | tool | grepper |
0mArgs:{
"Expression": "config BNXT",
"PathPrefix": "drivers/net/ethernet/broadcom/"
}Results: {
"Output": "drivers/net/ethernet/broadcom/Kconfig=195=config SYSTEMPORT\n--\ndrivers/net/ethernet/broadcom/Kconfig-206-\ndrivers/net/ethernet/broadcom/Kconfig:207:config BNXT\ndrivers/net/ethernet/broadcom/Kconfig-208-\ttristate \"Broadcom NetXtreme-C/E support\"\n--\ndrivers/net/ethernet/broadcom/Kconfig-221-\ndrivers/net/ethernet/broadcom/Kconfig:222:config BNXT_SRIOV\ndrivers/net/ethernet/broadcom/Kconfig-223-\tbool \"Broadcom NetXtreme-C/E SR-IOV support\"\n--\ndrivers/net/ethernet/broadcom/Kconfig-230-\ndrivers/net/ethernet/broadcom/Kconfig:231:config BNXT_FLOWER_OFFLOAD\ndrivers/net/ethernet/broadcom/Kconfig-232-\tbool \"TC Flower offload support for NetXtreme-C/E\"\n--\ndrivers/net/ethernet/broadcom/Kconfig-239-\ndrivers/net/ethernet/broadcom/Kconfig:240:config BNXT_DCB\ndrivers/net/ethernet/broadcom/Kconfig-241-\tbool \"Data Center Bridging (DCB) Support\"\n--\ndrivers/net/ethernet/broadcom/Kconfig-249-\ndrivers/net/ethernet/broadcom/Kconfig:250:config BNXT_HWMON\ndrivers/net/ethernet/broadcom/Kconfig-251-\tbool \"Broadcom NetXtreme-C/E HWMON support\"\n"
} |
| 5/2 | 2026/09/03 21:53 | llm | patch-evaluator |
0mModel:gemini-3.7-flash Args: null Results: null Tokens: input: 6790 output: 94 thoughts: 517 Thoughts: **Analysis of BNXT Driver Patch for Fuzzing Suitability** Okay, let's break this down. We're looking at a patch related to `BNXT`, which I know is Broadcom's NetXtreme-C/E series (BCM5730x, BCM5740x, BCM5750x, etc.) PCI ethernet cards. These are physical PCIe devices, not something you'd find emulated in a standard QEMU or syzkaller setup. We're talking real hardware here, unlike virtio-net, e1000, or even software devices like `tun` or `mac80211_hwsim`. First, a quick scan of the diff confirms the changes are isolated within the `drivers/net/ethernet/broadcom/bnxt/` directory. Specifically, it seems to be touching `bnxt.c`, `bnxt.h`, `bnxt_gso.c`, and `bnxt_gso.h`. Excellent, that keeps the scope clean, confirming we're solely dealing with the `bnxt` driver. Now, we need to check the criteria. We are looking for reasons NOT to fuzz, and specifically, one of the negative criteria is "Structurally unreachable hardware." It clearly states that vendor-specific PCIe hardware like "SmartNICs" or those requiring physical ASICs not emulated in standard QEMU should be excluded. And that's precisely what we have here. The Broadcom NetXtreme-C/E NICs *require* physical hardware. This code isn't reachable within our standard QEMU or syzkaller environments. The hardware dependencies are just too restrictive for meaningful fuzzing. Therefore, the `WorthFuzzing` flag needs to be set to `false`. Let's prepare the arguments for the `set-results` command: * `WorthFuzzing: false` - because the code is structurally unreachable without specific hardware. * `EnableConfigs: []` or `EnableConfigs: [BNXT]` - Because it's a driver, enabling is a possibility. * `FocusSymbols: []` - No specific symbols jump out as needing targeted fuzzing. * `Reasoning: The patch modifies the Broadcom NetXtreme-C/E (`bnxt`) Ethernet driver (`bnxt.c`, `bnxt_gso.c`), which requires physical Broadcom PCIe NIC hardware not available or emulated in standard QEMU/syzkaller virtual environments, making the code structurally unreachable for fuzzing.` That should cover it. |
| 6/2 | 2026/09/03 21:53 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch modifies the Broadcom NetXtreme-C/E (bnxt) network device driver, which controls vendor-specific physical PCIe NIC hardware not emulated in standard virtualized fuzzing environments (QEMU/GCE). Therefore, the modified code is structurally unreachable for syzkaller fuzzing.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the Broadcom NetXtreme-C/E (bnxt) network device driver, which controls vendor-specific physical PCIe NIC hardware not emulated in standard virtualized fuzzing environments (QEMU/GCE). Therefore, the modified code is structurally unreachable for syzkaller fuzzing.",
"WorthFuzzing": false
} |
| 7/1 | 2026/09/03 21:53 | 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) |
|---|