From 81bea3af5611a4031f271e4e620a59523f1d1761 Mon Sep 17 00:00:00 2001 From: randomizedcoder Date: Fri, 4 Dec 2026 23:44:11 -0800 Subject: [PATCH] docs(upstream): the bridge monitor note's index row, and the DOC035 collision (PR #388's gap) The gobridge monitor arc's note (increment 25, PR #388) landed without its upstream index row - the same shape as PR #379's flower-write gap. The row is added with the note's own facts: B58-B76 and K10-K17, the ws/brmonitor corpus (25C/V111), the gobridge monitor clone (25R/V113). And the arc took DOC035 for its 25B - an ID the events plan has held since 2026-11-13 (goip-parity-events-status.md, DOC035-DOC037). The evidence IDs are repo-unique, so 25B is renumbered to DOC038 (the next free): seven references across gobridge.md, gobridge-status.md and the note. The events-export status doc's next-free line moves to DOC039. Gates: the docs check (67 documents, 34 artifacts, 26 notes linked), test-goip-docs, netlink-audit. Generated with [pi](https://github.com/badlogic/pi-mono) --- docs/netlink/events-export-status.md | 2 +- docs/netlink/gobridge-status.md | 6 +++--- docs/netlink/gobridge.md | 4 ++-- docs/netlink/upstream/README.md | 1 + docs/netlink/upstream/iproute2-bridge-monitor.md | 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/netlink/events-export-status.md b/docs/netlink/events-export-status.md index 854960c99..858429d45 100644 --- a/docs/netlink/events-export-status.md +++ b/docs/netlink/events-export-status.md @@ -36,7 +36,7 @@ - States are `not started`, `in progress`, `blocked`, `done` or `deferred`. There are no percentages. - A task is `done` only when its gates have passed and the evidence is in the [ledger](#verification-ledger). -- Evidence IDs (`V###` for code and VM runs, `DOC###` for docs) are immutable and append-only. The next free ID is V403; the next free DOC is DOC038. +- Evidence IDs (`V###` for code and VM runs, `DOC###` for docs) are immutable and append-only. The next free ID is V405; the next free DOC is DOC039 (DOC038 is the gobridge monitor arc's 25B, renumbered from its landed DOC035 — a collision with the events plan's DOC035 — by the events export arc's index-row fix). - Task IDs (`EXM`, `EXP`, `EXD`, `EXC`, `EXU` with `-Tmm` suffixes) are never renumbered. ## Phase states diff --git a/docs/netlink/gobridge-status.md b/docs/netlink/gobridge-status.md index 791937e35..17daf5f8a 100644 --- a/docs/netlink/gobridge-status.md +++ b/docs/netlink/gobridge-status.md @@ -85,7 +85,7 @@ 25R is done: gobridge clones `bridge monitor`, live and file, and replays all 44 `brmonitor` rows; only the writes are still refused (V113). 25B is done: the HEAD check finds every B lead still present and every K note's kernel code - unchanged; the doc's checklist passes (DOC035). + unchanged; the doc's checklist passes (DOC038). 25L is done: on the workbench, gobridge beside `bridge` 7.2.0 on every `brmonitor` row, live rows side by side, is identical on 44 of 44 in two batches, and `bridge` matches its corpus on 44 of 44 (V114). @@ -141,7 +141,7 @@ | [x] | 25C | `matrix_brmonitor.go`, live, offline, negative and batch rows, two batches | done | V111 | | [x] | 25P | `BrEventKind`; `TestWsBrMonitor` decodes every notification | done | V112 | | [x] | 25R | gobridge `monitor.go`, `source_monitor.go`; corpus, unit, fuzz, mutants | done | V113 | -| [x] | 25B | B58+ and K10+ completed, HEAD checked | done | DOC035 | +| [x] | 25B | B58+ and K10+ completed, HEAD checked | done | DOC038 | | [x] | 25L | live diff of every `brmonitor` row | done | V114 | ## Verification ledger @@ -170,7 +170,7 @@ | V111 | 25C | **Space:** `tools/nlcapgen/matrix_brmonitor.go`, `brmonitor`, 44 rows in `nix/microvms/workbench/brmonitor.rows.jsonl`, outside gobridge's `ws/bridge*` glob. 18 live rows run `bridge monitor` under `xtcp2-nl-brmon-ws` over five fixtures (br0 with d1 and d2 on vid 10, the same with per-VLAN snooping, br0 snooping with IPv6 off, vx0 over d5, the VNI-filtering vx1); each fixture and each trigger's work ends with a 1.5 s settle for the link watcher, then one marker event (mk0, 0f:ff, 239.9.9.9, vid 3999, vni 999999) that the row's ERE waits for. They cover each selector with a NEW and a DEL, two selectors, bare, `all`, `all link`, `link all`, `v`, `fd`, a plain dummy's MTU and down, `-t`, `-j`, `-d` and `-s`. 12 file and batch rows read `m.bin`, 19 records cut from batch 1's own notifications (every NEW and DEL of link, neigh, mdb, vlan and tunnel, an AF_UNSPEC link, an AF_INET neighbour, a TSTAMP, an RTM_NEWROUTE), plain, `link`, `all`, `-t`, `-j`, `-d -s`, one record and empty, and four batches (a show's filter, `all`'s banner, a show zeroing `-t`, file then file). 14 negatives: help, `h`, `f`, `fdbx`, `a`, `vn`, a bare `file`, no such file, a truncated and a malformed record, an ifindex the host lacks (rc 0, ENODEV ignored), and three batches (a show after monitor, the banner before a show, `-force` with a missing file). **Captures:** workbench guest 7.3.1, iproute2 7.2.0. Batch 1 (26 rows, live and argument rows only) on one boot; batches 4 and 5 (44 rows) on a second boot, identical with `Timestamp: … usec` masked, and batch 1's 26 rows identical to batch 4's across the boots. The corpus is batch 5. Two earlier full batches were discarded: one lost its VM mid-run (the guest was restarted at 23:58 by another workbench user, so 22 rows failed NS_FAIL/PRE_FAIL), and one ran with two record bodies cut to 200 bytes by my extraction (bridge printed `!!!Deficit 140, rta_len=344` on the port record), now replaced by the full bodies and guarded by the test below. Two rows' expectation was corrected after the capture, not their observations: the B63 batches are ack-then-fail (rc 1, every request on the wire acknowledged; the EBADF send never leaves the process), as bridgex's B30 rows are. **Test:** `TestBrMonitorSpace` (positive 11, negative 14, boundary 2, corner 17 cases, one per row: kind, rc, refused-by, mode, ERE count), plus: only live rows run the helper and no negative does; no `-netns`, `dev lo`, host device or sysfs; every selector's NEW and DEL among the triggers; each record file written by a row, its record count (19, 1), each record's attributes ending at its body's end, every NEW/DEL type, TSTAMP and RTM_NEWROUTE present; two generations byte-identical. **Corpus checks:** `TestWsCorpusRows` accepts all 44 rows; 25R's `TestGobridgeMonitorCorpus` replays them. **Bugs found:** in [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md), 20 leads confirmed with their rows; B62 corrected (a show after `monitor … all` fails on B63's EBADF before printing, so only a later `monitor` line shows the banner, ec-028, ng-013); K11 corrected (a port add is two AF_UNSPEC and three AF_BRIDGE RTM_NEWLINKs for the port, two byte-identical, plus br0's); B71 dropped (unreachable while B61 holds); B68 and B74 source only; new **B76** (an RTM_DELVLAN entry has no STATE, and vlan.c prints `state disabled` from its default 0, ec-005, ec-019) and **K17** (a vlan add on a port notifies the port's local fdb entry in that vid, br_vlan.c:364, ec-008). [upstream/iproute2-bridge-print-paths.md](upstream/iproute2-bridge-print-paths.md) gains "Extended in increment 25" lines on B28/B29 (B69, B62) and B30 (B63). Guest left with no namespaces and no core files. Gates: `go test ./tools/nlcapgen/ ./internal/gobridge/ ./pkg/xtcpnl/`. | | V112 | 25P | **Decoder:** `pkg/xtcpnl/xtcpnl_br_event.go`, `BrEventKind(typ) (BrObj, isDel)` for the NEW and DEL types of link, neigh, mdb, vlan and tunnel, plus NLMSG_TSTAMP (15, iproute2's `include/libnetlink.h`, not a kernel type), each value cited to `include/uapi/linux/rtnetlink.h`. Every GET and SET type is none, as accept_msg has no arm for them. `IsRtnetlinkEventType` is unchanged (a change from the plan): its contract is the set `ParseRtnetlinkEvent` decodes, which linkmonitor's rdmanative source filters on through `IsRtnetlinkNotification`, and MDB, VLAN and TUNNEL have no arm there. **Tests:** `TestBrEventKind` (positive 10: each NEW and DEL; negative 5: RTM_NEWROUTE, NEWADDR, NEWQDISC, NLMSG_DONE, NLMSG_ERROR; boundary 12: each object's GET, the type below each NEW, 14, 0xffff; corner 2: NLMSG_TSTAMP is its own kind, type 0). `TestWsBrMonitor` reads all 44 rows' pcaps (bridge events with no REQUEST or MULTI flag) and the ec rows' `m.bin` records, and decodes each with the existing parsers: `ParseBridgeLink` for AF_BRIDGE, `ParseNewLink` otherwise, `ParseNeigh`, `ParseMdbDumpRouters`, `ParseBrVlan`, `ParseTunnelMsg`, and a TSTAMP must be 8 bytes. Events seen by kind (NEW/DEL): link 93/12, neigh 53/12, mdb 36/11, vlan 43/11, tunnel 15/11, tstamp 10; none rejected. Its 11 table rows: positive 5 (all five objects' NEW and DEL decode; K12, one RTM_NEWVLAN with vid 30 and range 32; K13, one RTM_NEWTUNNEL per VNI 600-602; K17, the port's local fdb entry before the RTM_NEWLINK; K15, the AF_INET neighbour arrives and decodes), negative 3 (K16, no RTM_DELNEIGH on an fdb replace; K14, the router port has no timer and no type; B76, the RTM_DELVLAN entry has no STATE), boundary 1 (the empty and one-record files), corner 2 (K11's two AF_UNSPEC then three AF_BRIDGE messages; the event file's 19 records, every NEW/DEL type, a TSTAMP and an RTM_NEWROUTE). **Benchmarks:** `BenchmarkWsBrMonitor` 307 events, about 1.0 µs and 2.4 allocations per event, 224 MB/s; `BenchmarkBrEventKind` about 10 ns for six types, no allocation. The benchmark first read the ng rows' truncated files too and failed (`record of 84 bytes in 76`); it now takes only the ec rows' files, as the test does. **Bugs found:** none rejected by the decoders. One detail added to K11 in [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md): the first AF_BRIDGE message differs from the other two only in `IFLA_BRPORT_FORWARD_DELAY_TIMER`, 0 and then 1500. Gates: `go test ./pkg/xtcpnl/`, `go vet`, `gofmt -s`, netlink-audit and no-write-encoders at `5a55cd098`. kernel-citation-audit failed there on five "neighbour" spellings, three from 25C's `matrix_brmonitor*.go` (the audit was not run in 25C) and two from this task's test; `2cfd0d936` changes them to US spelling (comments and descriptions only, rows unchanged) and the audit passes at that commit. | | V113 | 25R | **Code:** `internal/gobridge/monitor.go` is bridge/monitor.c. `doMonitor` first closes the socket main or batch opened (B63: `closeRth` swaps in a source whose every send is EBADF, and a later dump prints `Cannot send dump request: Bad file descriptor` and exits 1). `monitorArgs` is do_monitor's loop in its order: file, link, fdb, mdb and vlan by prefix, vni and all exactly, help by prefix (B59). A selector zeroes the mask, `all` restores ~RTMGRP_TC and sets vlan, vni and the banner, so the last of them wins (B60); the usage exits -1 and hides `file`'s argument (B72). `monitorFile` is fopen (`Cannot fopen: `, exit -1) then `nlmon.ReadFile` with every record handed to acceptMsg and no ll_init_map, so a name the cache lacks is an RTM_GETLINK on the main source (B66) and the selectors are ignored (B65). `monitorLive` is rtnl_open on the mask (exit 1), the BRVLAN and TUNNEL joins (`Failed to add bridge vlan group to list` or `Failed to add bridge vni group to list`, exit 1), ll_init_map on the monitor's socket, then `Listen`, flushing after each message. `acceptMsg` dispatches on `xtcpnl.BrEventKind` to `printLinkinfo`, `printFdb`, the new `printMdbMon` (one parse, the header, one "Deleted ", the entries then the router ports), `printVlanRtm(m, true, false)` and `printVnifilterRtm`; NLMSG_TSTAMP prints `nlmon.TstampText`, anything else is dropped (B73). `printHeaders` (the `-t` stamp, then the label once `prefixBanner` is set) is called by each printer after its filters (B62, B64, B69, B75); `-j` prints text, as no JSON object is opened (B61); `printVlanRtm`'s monitor flag resets the current port without closing it (B70). **Runner state:** `timestamp` is a counter that `-t` raises and every show zeroes (B64), `prefixBanner` is never reset (B62), `now` is `nlmon.NowFunc("GOBRIDGE_NOW")`, and `mainSrc` keeps main's source for ll_link_get once rth is closed. `out.flush` is rtnl_listen's fflush. **Source:** `source_monitor.go` has a live `Subscribe` (rtnl_open's buffers, extended acks, `NETLINK_ADD_MEMBERSHIP` for groups past 32) and a replay one that plays a capture's notifications and answers the monitor's own dump from it; `ReplaySource` keeps its capture path. `imports_test.go` allows `internal/nlmon`. The package doc, gobridge.md and `errNotImplemented` drop monitor. **Tests:** `TestGobridgeMonitorCorpus` replays all 44 rows (18 live through the replay `Subscribe`, each first checked to have its trigger after the dump's NLMSG_DONE; the rest as they ran, in their own directory), stdout, stderr and rc equal with stamps masked, with `GOBRIDGE_NOW` fixed and `time.Local` set to UTC for the TSTAMP's ctime, the counts (44, 18) pinned. `TestGobridgeMonitorUnit` 31 rows over a fake subscription: positive 8 (a bare monitor's NEW and DEL of each object, `all`'s banners, the masks and joins of `link`, `vlan`, `fdb mdb vni`, `all link`, `link all`, a file of every object), negative 11 (`f`, `a`, `vn`, `fdbx`, `help`, `h`, a bare `file`, a missing file, the socket failing to open, BRVLAN or TUNNEL failing to join), boundary 4 (an empty file, one record, a record cut short, a length under the header's), corner 8 (B65, B61, B75, B67 with B73, B69, B62, B63, B64). **Fuzz:** `FuzzGobridgeMonitorFile` (file bytes and a selector index), 60 s twice under `systemd-run --user --scope -p MemoryMax=6G` with `-timeout 300s`: 90,345 and 44,340 executions, no failure. The rate dropped to 0/s for stretches while the host's load average was 87; the 105 cached inputs each run in at most 0.32 s, so no input hangs. Its seed `8ef34ef20cf93c8e` is the B20 crash below; the oracle accepts rc 0, 1, 2, 255, 134 and 139. **Mutants:** 8 of 8 killed, each under the memory cap: a bare monitor joining BRVLAN, `f` as fdb, the banner reset per line, a show not zeroing `-t`, file mode honouring the selectors, AF_UNSPEC links dropped, the vlan monitor flag ignored, the stamp printed before the filters. **Coverage:** `internal/gobridge` 82.6%; the live socket's methods are 0%, as gotc's are. **Bugs found:** B20 extended: `bridge monitor file F` reaches print_vlan_rtm's NULL read from a 36-byte crafted RTM_NEWVLAN with no `ENTRY_INFO`; the fuzz found it, and nixpkgs' `bridge` 7.2.0 exits 139 on it with no output. Recorded in [upstream/iproute2-bridge-print-paths.md](upstream/iproute2-bridge-print-paths.md) (an "Extended in increment 25" line on B20) and [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md) (B65's section). No corpus mismatch turned out to be bridge's. Gates: `go test ./internal/gobridge/ ./internal/nlmon/ ./internal/goip/ ./internal/gotc/ ./pkg/xtcpnl/ ./tools/nlcapgen/`, `go vet`, `gofmt -s`, `CGO_ENABLED=0 go build ./...`, `nix build .#gobridge`. | -| DOC035 | 25B | **Doc:** [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md), still "Not submitted to netdev", is completed. A new "HEAD check" section covers both trees. **iproute2:** the mirror's `main` is `d7e038f99479` (2026-12-02), 98 commits past v7.2.0. `bridge/monitor.c`, `link.c`, `fdb.c`, `mdb.c`, `vlan.c`, `lib/ll_map.c` and `man/man8/bridge.8` are byte-identical. In `lib/utils.c`, the print_timestamp functions are unchanged. `include/libnetlink.h` changes only in an unrelated helper and a cast. Each of `lib/libnetlink.c`'s four commits was checked against every lead: `255cac0a` (connect), `9a5e7be5` (sequence counter), `9bfcf248` (non-kernel senders dropped) and `c6d58ffb` (rtnl_listen's malformed message becomes `!!!Remnant of size N`, still exit 1; that path is live only and no row reaches it). `rtnl_close` still sets fd -1. Every B lead is present; B71 stays dropped. The one `bridge/` commit, `1392041d`, fixes vni.c's "Dump ternminated". That is half of B3, so print-paths.md's B3 and its "Still present" section now say so; `mst.c`'s "Cannon send" remains. **Linux:** torvalds `master` is `007722b8211f` (2026-12-03). Since v7.4-rc4, `net/bridge/` has `da4a53461d46` (br_mdb.c source-list rollback on a failed add or replace; K14's rows are successful operations) and `75dc1bad7897` (netfilter). `vxlan_vnifilter.c` and the two uapi headers have no commits. Every K note is unchanged. **Summary:** the "At HEAD" column is filled: 18 present, B71 —, 8 unchanged. The status block now covers 25P and 25R. [upstream/iproute2-bridge-print-paths.md](upstream/iproute2-bridge-print-paths.md) points to the new doc from its contents and its reachability list. Its extension lines are on B20 (25R) and B28/B29 and B30 (25C). **Checklist** (`doc035chk.py`, grep over both docs), 12 checks, all passing. Positive 1: every B58-B76 and K10-K17 has a summary row and an entry. Negative 3: each confirmed, corrected or new lead names an ec or ng row; no row is outside the range; every row has its At HEAD answer. Boundary 3: B and K are contiguous; the dropped lead gives a reason. Corner 5: B20, B28, B29 and B30 each have their "Extended in increment 25" line, and print-paths points to the new doc. Four mutated copies of the doc (a removed row, a row with no pinning row, a dropped lead without a reason, an unfilled At HEAD) each fail it. **Docs:** [gobridge.md](gobridge.md) gains "Increment 25": the task table and how the clone is put together. **Bug-class candidates** for the user are unchanged: the shared-handle close (B63), the mode switch that drops selectors (B65) and an absent attribute printed as zero (B76). bug-classes.md is untouched. Gates: the checklist, kernel-citation-audit at `2cfd0d936`. | +| DOC038 | 25B | **Doc:** [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md), still "Not submitted to netdev", is completed. A new "HEAD check" section covers both trees. **iproute2:** the mirror's `main` is `d7e038f99479` (2026-12-02), 98 commits past v7.2.0. `bridge/monitor.c`, `link.c`, `fdb.c`, `mdb.c`, `vlan.c`, `lib/ll_map.c` and `man/man8/bridge.8` are byte-identical. In `lib/utils.c`, the print_timestamp functions are unchanged. `include/libnetlink.h` changes only in an unrelated helper and a cast. Each of `lib/libnetlink.c`'s four commits was checked against every lead: `255cac0a` (connect), `9a5e7be5` (sequence counter), `9bfcf248` (non-kernel senders dropped) and `c6d58ffb` (rtnl_listen's malformed message becomes `!!!Remnant of size N`, still exit 1; that path is live only and no row reaches it). `rtnl_close` still sets fd -1. Every B lead is present; B71 stays dropped. The one `bridge/` commit, `1392041d`, fixes vni.c's "Dump ternminated". That is half of B3, so print-paths.md's B3 and its "Still present" section now say so; `mst.c`'s "Cannon send" remains. **Linux:** torvalds `master` is `007722b8211f` (2026-12-03). Since v7.4-rc4, `net/bridge/` has `da4a53461d46` (br_mdb.c source-list rollback on a failed add or replace; K14's rows are successful operations) and `75dc1bad7897` (netfilter). `vxlan_vnifilter.c` and the two uapi headers have no commits. Every K note is unchanged. **Summary:** the "At HEAD" column is filled: 18 present, B71 —, 8 unchanged. The status block now covers 25P and 25R. [upstream/iproute2-bridge-print-paths.md](upstream/iproute2-bridge-print-paths.md) points to the new doc from its contents and its reachability list. Its extension lines are on B20 (25R) and B28/B29 and B30 (25C). **Checklist** (`doc035chk.py`, grep over both docs), 12 checks, all passing. Positive 1: every B58-B76 and K10-K17 has a summary row and an entry. Negative 3: each confirmed, corrected or new lead names an ec or ng row; no row is outside the range; every row has its At HEAD answer. Boundary 3: B and K are contiguous; the dropped lead gives a reason. Corner 5: B20, B28, B29 and B30 each have their "Extended in increment 25" line, and print-paths points to the new doc. Four mutated copies of the doc (a removed row, a row with no pinning row, a dropped lead without a reason, an unfilled At HEAD) each fail it. **Docs:** [gobridge.md](gobridge.md) gains "Increment 25": the task table and how the clone is put together. **Bug-class candidates** for the user are unchanged: the shared-handle close (B63), the mode switch that drops selectors (B65) and an absent attribute printed as zero (B76). bug-classes.md is untouched. Gates: the checklist, kernel-citation-audit at `2cfd0d936`. | | V114 | 25L | **Live diff:** on the running workbench VM (kernel 7.3.1, `bridge` 7.2.0 at `/nix/store/x1pwsbz5…-iproute2-7.2.0`; boot `335e7396`, started 2026-12-03 23:58 by another workbench user; not rebooted, the VM being shared), the nix-built `gobridge` (`/nix/store/q793jqi3…-gobridge-0.2.1`, built from `112dd7576`) beside `bridge`, as root over the workbench's ssh key. The script is generated from `brmonitor.rows.jsonl`. Each row gets a fresh netns with `lo` up and `nlmon0` up at ifindex 2, as the capture's namespaces have, then the row's `pre` steps in its own directory. **Live rows (18):** both monitors start in the netns; the script waits until each pid has a NETLINK_ROUTE socket (found by inode in `/proc//net/netlink`) with Dump 0 and Rmem 0 and a thread blocked in recvmsg (gobridge's link dump reads with recvfrom, so recvmsg is its listen), then 0.5 s, then runs the trigger once with `bash -c`, waits for the row's ERE in both outputs, then 0.3 s, then SIGTERMs both. Both exit 143. **File, batch and negative rows (26):** `bridge`, then `gobridge`, with the row's own `m.bin` and `b.txt`. **Result:** stdout, stderr and rc identical on 44 of 44, `Timestamp: … usec` masked, in two batches (C and D); every live row passed the readiness check, and no trigger failed. Batch D's outputs equal batch C's. `bridge` against the 25C corpus: 44 of 44 identical (live rows' rc aside, which the helper reports as 0), in both batches. That corpus is batch 5, captured on this same boot, so this repeats it on one boot rather than confirming the K notes on a second boot as the plan asked; a second boot would have meant rebooting the shared VM. V111's batch 1 is the cross-boot check for the 26 live and argument rows. **Earlier batches:** batch A's readiness check read the root namespace's `/proc/net/netlink`, so it never passed and each live row ran on the 0.5 s sleep alone (44 of 44 identical anyway); A2 and B, with the check fixed, ran without `nlmon0`, so every ifindex was one lower than in the corpus: gobridge and `bridge` still agreed on 44 of 44, and `bridge` differed from the corpus on 20 rows, all through ifindexes. Those 20 include B66 live: in file mode a record's br0 (ifindex 3) is named `d1`, the netns's ifindex 3, so `bridge monitor file m.bin` prints `master d1`, and gobridge does the same. **Guest:** its system closure had been garbage-collected on the host under the running VM (no `sed`, `awk`, `seq`, `readlink`, `sort`, `timeout` or `bash` on its PATH), so the script put host-built coreutils, gawk, gnused, bash, gnugrep and diffutils store paths first on PATH (the guest shares the host's /nix/store). Left as found: no namespaces, no core files, the script's result directories removed, no module loaded or removed (bridge, vxlan, nlmon, dummy were already loaded), VM still running as it was. **Bugs found:** none new. B66 is also seen with the ifindexes shifted, recorded in [upstream/iproute2-bridge-monitor.md](upstream/iproute2-bridge-monitor.md) (B66's entry and the status block); no lead or K note behaved differently live. | | V402 | 6C | **Fresh-boot batches — the 6C gate's last task (and 7C's conditional).** Two batches, each on its own fresh boot of the workbench VM (kernel 7.3.1, iproute2 7.2.0; `nlcap-ws down` then `up`, the guest's `is-system-running` running before the first row), each running all four `ws/bridge*` row files through `nlcap-ws batch`, the committed corpus untouched. **Boot 1:** the batch the boot's own start rejected, re-run once the boot settled — 113 (`bridge`), 63 (`bridgex`), 94 (`bridgefdb`), 74 (`bridgemdb`), 344 of 344 OK. **Boot 2:** a second down+up — 344 of 344. **`nlcapgen verdiff` against the corpus:** `bridge` 0 differences (113 rows), `bridgex` 6 (the `brrtr -s` timer rows ec-021/022/023, pw-021/022/023, V101's allow-list), `bridgefdb` 0 (94), `bridgemdb` 6 (the temp-entry timer rows ec-005/006/008, pw-005/006/008 — V108's rows and their `-j -s`/`-s -o` twins). Boot 1 against boot 2 directly: the same profile, 0/6/0/6, the same rows. **A body-level pass** (a throwaway `tmp-bodydiff`, deleted; the corpus vs each boot's pcaps, message by message, seq and pid zeroed): every differing message is one of V097's two named classes — the `br` fixture's link replies at `IFLA_BRPORT_FORWARD_DELAY_TIMER` (offsets 360/364 of the 420-488-byte messages, 33 rows), and the NLMSG_ERROR bodies' echoed request seq (offsets 24, 28-30 and 60 in the 40-, 72- and 96-byte error shapes; `0x6b03d2bc` against `0x6b129194`, minutes apart; 28 rows). 58 rows (boot 1) and 61 rows (boot 2) differ in any body at all; every other byte of every other message is identical. The stats counters and the vxlan random source port, the 6C gate's own expected exceptions, never moved. **The first fresh-boot attempt failed 34 of 113 rows:** the batch fired 24 s after qemu started, `up` returning at ssh and the guest's systemd still settling, and the first wave's rows crosstalked at their ns lifecycle ("Cannot open network namespace" immediately after `NLCAP_NS_OK wsN"; "Cannot create namespace file: File exists" after ns-add's own cleanup; ec-010's pre step 0 creating br0 and pre step 1 finding it gone; "Cannot find device nlmon0"; `NLCAP_CAP_NOBIND`, datagrams=0). The mechanism was not pinned down; the wait is measured. A batch the same boot ran two hours later was 113 of 113, and a concurrent session's batch on the same boot (a `brmonitor` corpus, 44 rows, all OK) confirms the settled guest. `xtcp2-nlcap-ws up` now waits for `is-system-running` (running or degraded) before `NLCAP_WS_UP`, warning past the timeout. **The arc's disk:** the kernel closure was GC'd twice mid-arc (nothing pinned `nix build --no-link`, the store 98-99% full; the `linux-7.3.1` build needs ~35 GB and failed twice at 31-36 GB free), and two CLI attempts were killed at their own command timeouts (600 s and 2400 s against the ~45-min kernel rebuild); the closure is now rooted at `/tmp/gobridge-vm-root`. Gates: the batch's own, and `nlcap-ws`, `nix-fmt`, `test-goip-docs`, `netlink-audit`, `lint-baseline`. | diff --git a/docs/netlink/gobridge.md b/docs/netlink/gobridge.md index a42d2af34..b19c9af0d 100644 --- a/docs/netlink/gobridge.md +++ b/docs/netlink/gobridge.md @@ -671,7 +671,7 @@ Run gobridge next to `bridge` in a named netns in the guest, over the `fdbF`, `f fixtures: every 7C read command plus batch. The target is all identical, with exceptions named. A divergence is fixed with a unit row added. -## Increment 25 — `bridge monitor` (V110–V114, DOC035) +## Increment 25 — `bridge monitor` (V110–V114, DOC038) `bridge monitor`, live and `file F`, with `-t`, `-j`, `-d`, `-s` and the batch forms, byte for byte. This finishes gobridge's read side; only the writes are still refused. Planned 2026-12-03, after tc's increment 24, going @@ -684,7 +684,7 @@ K10-K17), not submitted to netdev. The ledger rows in [gobridge-status.md](gobri | 25C | `ws/brmonitor`, 44 rows: 18 live over five fixtures, 12 file and batch rows over the live rows' own notifications, 14 negatives | V111 | | 25P | `xtcpnl.BrEventKind`; `TestWsBrMonitor` decodes all 307 bridge events | V112 | | 25R | `monitor.go` and `source_monitor.go`; corpus replay, 31 unit rows, a file fuzz, 8 mutants | V113 | -| 25B | the doc's HEAD check, summary and checklist; extension lines in [upstream/iproute2-bridge-print-paths.md](upstream/iproute2-bridge-print-paths.md) | DOC035 | +| 25B | the doc's HEAD check, summary and checklist; extension lines in [upstream/iproute2-bridge-print-paths.md](upstream/iproute2-bridge-print-paths.md) | DOC038 | | 25L | gobridge next to `bridge` 7.2.0 on the workbench, every `brmonitor` row | V114 | **How the clone is put together:** diff --git a/docs/netlink/upstream/README.md b/docs/netlink/upstream/README.md index 33ba1a8eb..c33229d75 100644 --- a/docs/netlink/upstream/README.md +++ b/docs/netlink/upstream/README.md @@ -22,6 +22,7 @@ found by a capture, reproduced, fixed, tested, reviewed — and ready to send. | [iproute2-mptcp-show-paths.md](iproute2-mptcp-show-paths.md) | `ip -j mptcp limits show` prints text, not JSON; `limits show` accepts `subflows`/`add_addr_accepted` and silently reads the other; four more | ≤ HEAD | no | the 26-row mptcp ws corpus (findings 1, 2, 5, 6 demonstrated) | not yet; drafts | | [iproute2-tipc-print-paths.md](iproute2-tipc-print-paths.md) | `tipc -j link get broadcast` dies of SIGSEGV, `tipc -h node get identity` calls a NULL help, `parse_attrs` writes `tb[type]` unbounded; thirteen more, two more crashes | ≤ HEAD | no | the 93-row tipc ws corpus (pw-022, exit 139) | not yet; drafts | | [iproute2-bridge-print-paths.md](iproute2-bridge-print-paths.md) | `bridge fdb show` cannot filter a port name, a dump stops at the first port, four NULL reads, filters that leak between batch lines, and inconsistent exits and JSON — B1-B57 and K1-K9 | ≤ HEAD | no | the bridge ws corpus (6C/V097, 6X-C/V101, 7C/V108) and the `gobridge` unit rows | not yet; drafts | +| [iproute2-bridge-monitor.md](iproute2-bridge-monitor.md) | `bridge monitor` joins groups its bare form never joins (fdb, mdb, vlan, vni — the plain command silently misses them), a word order that decides which tool printed a line, `-j` ignored in monitor mode, `file` mode that ignores its selectors, and statics that outlive their command — B58–B76 and K10–K17 | ≤ HEAD | no | the `ws/brmonitor` corpus (25C/V111) and the `gobridge` monitor clone (25R/V113) | not yet; drafts | | [iproute2-tunnel-tuntap.md](iproute2-tunnel-tuntap.md) | `ip tunnel show` overflows the stack on a long name, `ip tuntap` double-fcloses its file, text inside `-j`, an uninitialized byte, filters that match the wrong tunnels — T1-T25 | 7.2.0, ≤ HEAD | no | the 217-row tunnel corpus (8C/V002) and the `tnlsys` sidecars | not yet; drafts | | [iproute2-tc-qdisc-class.md](iproute2-tc-qdisc-class.md) | `tc qdisc show`'s `-g` walks a freed graph, a double free across batch lines, text inside `-j`, JSON keys that differ by path, filters that stick between commands — Q1-Q36 | 7.2.0, ≤ HEAD | Q14 only — `9dd1bec6b863` (2026-11-09, untagged) | the tc corpus (`ws/tcqdisc/` 142 rows, `ws/tcclass/` 82; 9C/V002), replayed byte for byte by `gotc` | not yet; drafts | | [iproute2-tc-filter.md](iproute2-tc-filter.md) | Filter and chain JSON, overflowing preferences, sticky filters, handle parsers and exit statuses | 7.2.0; later status in note | see note | `ws/tcfilter/`, increment 10 | not yet; drafts | diff --git a/docs/netlink/upstream/iproute2-bridge-monitor.md b/docs/netlink/upstream/iproute2-bridge-monitor.md index 3428668c6..afa5e4d45 100644 --- a/docs/netlink/upstream/iproute2-bridge-monitor.md +++ b/docs/netlink/upstream/iproute2-bridge-monitor.md @@ -9,7 +9,7 @@ `bridge/link.c`, `bridge/fdb.c`, `bridge/mdb.c`, `bridge/vlan.c`, `bridge/vni.c`, `lib/libnetlink.c`, `lib/ll_map.c` and `lib/utils.c`, read with `git show v7.2.0:`. That is the version the corpus is captured with. - - **"At HEAD"** is the [HEAD check](#head-check) (25B, DOC035): every B lead is still present, and every K + - **"At HEAD"** is the [HEAD check](#head-check) (25B, DOC038): every B lead is still present, and every K note's kernel code is unchanged. - **How they were found:** in increment 25 ([gobridge.md](../gobridge.md), [gobridge-status.md](../gobridge-status.md)). - The plan's bug-class sweep listed leads B58–B75 and kernel notes K10–K16. The numbers continue @@ -43,7 +43,7 @@ ## HEAD check -Checked 2026-12-04 (25B, DOC035). +Checked 2026-12-04 (25B, DOC038). - **iproute2:** the GitHub mirror's `main`, `d7e038f99479` (2026-12-02), is 98 commits past v7.2.0. - `bridge/monitor.c`, `bridge/link.c`, `bridge/fdb.c`, `bridge/mdb.c`, `bridge/vlan.c`, `lib/ll_map.c` and