Skip to content

redteam: Phase 4 part 3 — the delivery-outage suite - #346

Merged
randomizedcoder merged 2 commits into
mainfrom
redteam/phase4-part3
Nov 26, 2026
Merged

randomizedcoder merged 2 commits into
mainfrom
redteam/phase4-part3

Conversation

@randomizedcoder

Copy link
Copy Markdown
Owner

Phase 4 part 3 — the delivery-outage suite

Rows rt-4-7, rt-11-4, rt-11-5. All three green solo; the full-matrix regression (33 scenarios) runs alongside this PR.

Verdicts

row verdict headline
rt-4-7 BLOCKED (15/15) the split verdict: the s3 queue sink holds (RSS slope 70 KiB/s, the outage counted, recovery on endpoint return) while the tcp half's permanent blind is measured — a catcher restart changes nothing, only a daemon restart re-dials (#339)
rt-11-4 BLOCKED (14/14) 300,008 thief sockets, victim coverage lag 0 s (parallel per-netns dumps + the 1 s poll-timeout valve); the walkable budget engages xtcp_poll_degraded_total{level="sample"} with victims still unlagged; the amplifier at scale: 211,244 lines/6 s ≈ 100× baseline
rt-11-5 CONFIRMED (16/16) the L2 freeze: a CAP_NET_RAW sibling ARP-blackholes the sink → the poller FREEZES in the blocked Write (no deadline, sync on the poll goroutine) for the retransmit window (~15.4 min at the prod default) with zero error counters and scrape 200; de-poison mid-window = full catch-up with no loss; window closed = permanent delivery blind

The pinned product finding (S2, #345)

flushEnvelope runs on the poll goroutine and tcpDest.Send is a blocking conn.Write with no write deadline. A delivery-path stall (ARP blackhole, wedged broker, stalled switch) therefore freezes collection, not just delivery — silently. Fix direction: SetWriteDeadline + decouple the flush from the poll goroutine.

Harness

  • arppoison — new static tool (gratuitous-ARP blackhole, golden-frame tests) in the attacker tools tar
  • XTCP2_MAX_RECORDS deploy axis — a walkable -maxRecordsPerPoll budget (rt-11-4's valve half)
  • XTCP2_SINK_IP deploy axis — a dedicated docker0 sink alias so the L2 kill leaves the gateway path clean (poisoning 172.17.0.1 itself takes the docker-proxy scrape replies down with it — measured, probe 2026-11-25)
  • sockfill's -perPort default (50000) exceeds a stock container's ephemeral range — the scenario pins 20000

Rows rt-4-7, rt-11-4, rt-11-5 (docs/redteam-plan.md), all three green
solo:

- rt-4-7 BLOCKED (15/15, the split verdict): the s3 queue sink holds
  (RSS slope 70 KiB/s with Garage down 45 s, the outage counted —
  destS3Parquet/upload/error + s3_dropped_total=8 — and recovery on
  return, objects 1270 -> 2375); the tcp half's permanent blind
  measured: counters light immediately, polling continues, the catcher
  restart changes nothing, only a daemon restart re-dials (#339).
- rt-11-4 BLOCKED (14/14): 300,008 thief sockets, victim coverage lag
  0 s (parallel per-netns dumps + the 1 s poll-timeout valve),
  PollTimeout firing every cycle, RSS 29 -> 31 MiB; the amplifier at
  scale: 211,244 lines/6 s ~ 100x baseline. The walkable budget
  (XTCP2_MAX_RECORDS=50000) engaged xtcp_poll_degraded_total
  {level=sample} with victims still at 0 s lag.
- rt-11-5 CONFIRMED (16/16): the L2 freeze — a CAP_NET_RAW sibling
  ARP-blackholes the sink; the Writes keep succeeding locally while
  SO_SNDBUF absorbs envelopes, then the Write blocks and the whole
  POLLER FREEZES (no deadline, sync on the poll goroutine) for the
  retransmit window (~15.4 min at the prod default) with zero error
  counters and scrape 200. De-poison mid-window = full catch-up, no
  loss; window closed = counters light + delivery permanently dead.
  Finding filed as #345.

Harness: new static tool arppoison (gratuitous-ARP blackhole, golden
frame tests); new deploy axes XTCP2_MAX_RECORDS (the walkable record
budget) and XTCP2_SINK_IP (a dedicated docker0 sink alias — poisoning
the gateway takes the docker-proxy scrape replies down with it,
measured); sockfill's -perPort default (50000) exceeds a stock
container's ephemeral range, the scenario pins 20000.
The 20261126 matrix run failed rt-4-3's leg B (admin-cred oversize) with
status=OK 3/3 while hand retries answered ResourceExhausted 12/12: a
race. The transport's recv-limit kill is arrival-based, but the RPC
headers precede the 8MB DATA on a fresh slow-start conn — the handler
dispatches on the headers, stores the stream, and a fanned-out record
(PollFlatRecords pushes to every stored stream) can beat the frame to
the client's first Recv. The kill always follows, so the probe now Recvs
until the terminal error instead of sampling the first message.

Re-verified solo 11/11; the matrix stands at 32/33 + this fix.
@randomizedcoder
randomizedcoder merged commit 209ab06 into main Nov 26, 2026
1 check passed
@randomizedcoder
randomizedcoder deleted the redteam/phase4-part3 branch November 26, 2026 04:58
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