Skip to content

verify: tcp-rx-counters reports lost frames as INCONCLUSIVE - #197

Merged
douglasmun merged 1 commit into
mainfrom
fix/rx-counters-transport-gate
Oct 21, 2026
Merged

douglasmun merged 1 commit into
mainfrom
fix/rx-counters-transport-gate

Conversation

@douglasmun

Copy link
Copy Markdown
Owner

verify-tcp-rx-counters.sh FAILed three times in a row on 2026-10-21, on main as well, then passed four times without any change. In each failing run the e1000's RX packets stayed at 0: the mcast netdev delivered none of the 27 injected frames, so no kernel code was exercised. The verdict still read as a TCP counter regression.

This adds a transport gate before the legs. If the RX packets delta (the driver's descriptor-harvest count) is below the number of frames injected, the result is INCONCLUSIVE (exit 2) with a rerun hint. The underlying intermittent mcast loss was not reproducible; host loopback and a QEMU filter-dump both delivered every frame when tested afterwards.

Run Result
main's harness, injector on a dead mcast port (fail-first) FAIL, rc 1
New harness, same dead port INCONCLUSIVE, rc 2
New harness, unmodified PASS
New harness, kernel mutant (validation-1 net_count_tcp_malformed() removed) FAIL, rc 1; RX packets 0 -> 27

The last row shows the gate doesn't hide a real kernel bug. Removing both counter sites trips the harness's existing source guard instead, so the mutant removes only one.

🤖 Generated with Claude Code

On 2026-10-21 the harness FAILed three runs in a row, on main as well,
then passed four. In every failing run the e1000's own `RX packets`
stayed 0 -> 0: the mcast netdev delivered nothing, so no kernel code
ran, yet the verdict read as a TCP counter regression.

Gate the legs on the `RX packets` delta (the driver's descriptor-harvest
count, the lowest layer the guest has). Fewer than the injected 27 means
the transport lost frames: exit 2 INCONCLUSIVE.

Checked:
- main's harness, injector on a dead mcast port: FAIL (rc 1)
- new harness, same dead port: INCONCLUSIVE (rc 2)
- new harness, unmodified: PASS
- new harness, kernel mutant with the validation-1 malformed counter
  removed: FAIL (rc 1), RX packets 0 -> 27, so the gate doesn't mask
  a real kernel bug

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@douglasmun
douglasmun merged commit 50c84a6 into main Oct 21, 2026
2 checks passed
@douglasmun
douglasmun deleted the fix/rx-counters-transport-gate branch October 21, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant