Skip to content

genl clones: devlink, vdpa, fou, mptcp, tipc read-only clones + iproute2 findings - #309

Merged
randomizedcoder merged 22 commits into
mainfrom
goip/genl-clones
Nov 23, 2026
Merged

randomizedcoder merged 22 commits into
mainfrom
goip/genl-clones

Conversation

@randomizedcoder

Copy link
Copy Markdown
Owner

Summary

This branch adds read-only clones for five generic-netlink tools, each built in the same four steps:

  1. Capture: generated command rows, captured on the workbench VM.
  2. Parse: an xtcpnl parser with table, fuzz and corpus tests.
  3. Clone: replays every captured row and must match the real tool's stdout, stderr and exit code byte for byte.
  4. Bug hunt: iproute2 findings recorded in docs/netlink/upstream/. None have been submitted to netdev.
# Tool Capture Parser Clone Findings
1 devlink V079 V080 godevlink (V081) 2 (DOC026)
2 vdpa V082 V083 govdpa (V084) 8 (DOC027)
3 ip fou V085 V086 gofou (V087), since retired into goip (V092) 3 (DOC028)
4 ip mptcp V089 V090 replayed through goip (V091) 7 (DOC029)
5 tipc V093 V094 gotipc (V095) 16 (DOC030)

TIPC (increment 5)

  • Capture: 93 rows, captured on two fresh boots. They cover 40 read-only commands, each plain and with -j, across six setups (bare, identity, eth, udp, a peer node, a bound socket), plus 13 negatives.
  • Parser: ParseTIPC and the request builders rebuild all 193 captured requests byte for byte, including the follow-up queries that socket list and link monitor list send.
  • Clone: gotipc matches all 93 rows byte for byte, including the row where tipc itself crashes (rc 139).
  • Findings: two crashes on a default single node (-j link get broadcast, -h node get identity), an unbounded tb[type] write in parse_attrs, "kernel answers: Success" printed with exit 0, the invalid JSON ["threshold":32], and -j ignored by four objects.

Status and ledger: docs/netlink/genl-clones-status.md.

Test plan

  • go test ./...
  • nix build --no-link .#checks.x86_64-linux.test-go-race
  • lint-baseline, netlink-audit, kernel-citation-audit, gofmt, nix-fmt, statix, deadnix
  • nix build .#gotipc; the built binary reproduces a captured row

🤖 Generated with Claude Code

randomizedcoder and others added 22 commits November 13, 2026 17:45
First increment of the genl-clones arc (devlink/vdpa/fou, each
capture→parser→table tests→read-only render clone).

matrix_devlink.go generates 22 rows: ten read-only devlink dumps
(dev/port/sb/resource/param/region/info/health/trap/trap-group show),
each plain and -j, plus two negatives (unknown object; ENODEV device
handle). Each row creates one netdevsim device with a fixed bus id 0 and
runs serial, so the printed handle and netdevsim's index counter are
deterministic.

Captured on two fresh workbench boots; the batches agree row-for-row
(file lists identical, cmd.json and all sidecars byte-identical, pcap
sizes match), so no normalization is needed. Corpus committed at
pkg/xtcpnl/testdata/7_3_1/ws/devlink/.

Adds the plan doc docs/netlink/genl-clones.md and status doc
docs/netlink/genl-clones-status.md (ledger continues from V078).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…V080)

ParseDevlink decodes the devlink generic-netlink reply by attribute
presence, not command number: the capture kernel renumbers the
DEVLINK_CMD enum (resource show is 36 here, 40 upstream; the ten reply
commands shift likewise), while the DEVLINK_ATTR_* tree is append-only
and stable, so the parser keys its one typed section off the marker
attribute.

Table tests (xtcpnl_devlink_test.go) cover positive (one row per
section), negative (short hdr, partial attr, len zero/overflow, dup
singleton, wrong-width index, NLA_F_NESTED on a scalar), and
boundary/corner (bodiless, empty-dump member, unlimited u64 sentinel,
unknown attr/command/param-type, request flag), each with description
and expected; FuzzParseDevlink runs clean.

O3/O4 corpus (xtcpnl_ws_devlink_test.go) ties each of the 22 rows to its
operation by the decoded reply section (keyed off the words axis, so the
command-number skew is irrelevant): each dump goes over the devlink
family (id 24, resolved from the capture) with NLM_F_DUMP, each reply
decodes to its section, and each -j stdout is keyed by that section and
carries every decoded identifier.

Nine manual mutations under the 6G cap: seven killed; two teeth gaps
closed here (u32 param value widened past 16 bits; fixed/running/stored
info versions given distinct values).

Corrects V079: the nosuch negative (ng-001) resolves the family (one
acknowledged CTRL_CMD_GETFAMILY) before rejecting the object locally —
ack-then-fail, not an iproute2 pre-wire refusal. Relabeled in the
matrix, rows.jsonl and the committed ng-001 sidecar; wire bytes
untouched.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…us (1R, V081)

cmd/godevlink + internal/godevlink on the gordma template, but replaying
the nlmon (ws) pcap corpus since devlink is NETLINK_GENERIC and tappable:
source.go segments the pcap into request->reply transactions and matches
requests byte-for-byte with nlmsg_seq/pid and the genl command/version
byte zeroed (devlink renumbers its command enum per kernel; command
correctness stays 1P's O3). print.go is iproute2's json_writer/json_print
plus devlink's g_indent/pr_out_* machinery; render.go has the ten show
renderers (dev, port, sb, resource, region, info, health, trap, trap
group); param.go/names.go the raw-attr walks and name tables.

corpus_test.go replays every row's own args and asserts stdout/stderr/rc
byte-exact (22/22, JSON-valid for -j, every recorded request consumed)
plus replay guards; imports_test.go the hygiene guard. nix/binaries.nix
registers .#godevlink.

Two ParseDevlink gaps are filled from raw attrs via ParseNetlinkAttributes
(region snapshot list, param value default) — candidate additive 1P
follow-ups. .golangci{,-comprehensive}.yml gain a devlink-scoped misspell
exclusion for the DEVLINK_PORT_FLAVOUR UAPI token "flavour", mirroring the
neighbour precedent.

resource show splits the netdevsim tree across two RESOURCE_DUMP replies,
each preceded by a fresh GETFAMILY + DPIPE_TABLE_GET on a new socket; the
clone reproduces this (netdevsim maps no dpipe table, so dpipe_tables is
none).

Gates pass: go test ./internal/godevlink/, CGO_ENABLED=0 go build ./...,
gofmt, nix build .#godevlink, lint-baseline, netlink-audit,
kernel-citation-audit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Audited devlink/devlink.c's read-only print paths against ParseDevlink.
Two findings, recorded only, never sent to netdev:

1. resource_show prints the u64 occ/size_min/size_gran through print_uint,
   whose value parameter is unsigned int, truncating any value >= 2^32 —
   while the sibling size/size_max correctly use pr_out_u64. Reachable on a
   driver with a multi-gigabyte resource; netdevsim stays small.
2. pr_out_param_value_print's value-type switch omits the
   DEVLINK_VAR_ATTR_TYPE_U64 arm its siblings handle, so a u64 param value
   would print its label with no number. Latent: no kernel param type is
   u64 today.

Both verified against the ~/Downloads/iproute2 checkout a3c19931 with exact
line numbers and the print_uint signature. Increment 1 (devlink) is now
complete (1C/1P/1R/1B).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The vdpa genl family is registered with netnsok false, so it answers
only in init_net and the per-row namespace every other space uses
cannot reach it. Add an initns row mode: the helper's new ns-init binds
pid 1's namespace as wsinit with nlmon0 there, so write/capio/pre run
unchanged through ip netns exec, and ns-del removes nlmon0 first so no
tap outlives the row. initns rows must be serial (both validators).

The workbench kernel gains VDPA_SIM/VDPA_SIM_NET (forcing
RUNTIME_TESTING_MENU on, TEST_KALLSYMS off for the sandbox). Rows load
vdpa_sim_net and virtio_vdpa (vstats needs negotiated features) and mark
the bound netdev Unmanaged so its counters stay 0.

20 rows: seven shows x plain/-j, plus nosuch, ENODEV, qidx 3/32768
(EINVAL), 32769 (ERANGE) and a missing qidx (EINVAL). Two fresh boots
agree row-for-row; batch 1 committed under testdata/7_3_1/ws/vdpa.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…4 corpus (2P, V083)

ParseVdpa decodes the handle on every message and classifies a reply
by attributes into one section (mgmtdev, dev, net config, vstats),
since replies do not echo the request's command. Widths follow the
wire: NET_STATUS is u16 and QUEUE_INDEX u32, whatever the uapi comment
and iproute2 read. vstats' repeated vendor name/value pairs are walked
in order.

BuildGetVdpaRequest builds vdpa's exact request (version 1, ACK, DUMP
when no device, libmnl padding), including the vstats-without-qidx
request vdpa sends.

The O3 rebuilds every captured request byte for byte from the row's
command (19/19); O4 holds each -j object's numbers, MAC and counters
to the decode. Table tests cover positive/negative/boundary/corner;
the fuzz target runs clean, and twelve manual mutants are all killed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, V084)

cmd/govdpa + internal/govdpa, on the godevlink template: replaying vdpa's
nlmon pcap corpus reproduces vdpa's stdout, stderr and rc byte for byte
(20/20 rows). Requests are matched byte for byte with only seq/pid
masked; vdpa's command enum is append-only, so the command byte is
matched too.

The clone covers mgmtdev show, dev show [DEV], dev config show [DEV] and
dev vstats show DEV [qidx N], over xtcpnl's ParseVdpa and
BuildGetVdpaRequest. It reproduces vdpa's quirks: the queue_type taken
from a MAX_VQP the kernel omits, the "link " JSON keys, the NEXT_ARG_OK
trailing word, the silent get_u32 failure, and the jsonw_destroy newline
after a failure. Writes and a targeted mgmtdev show are refused.

Table tests cover dispatch, refusals, get_u32, the vstats walk, the
libmnl reply/extack layer, print_features and the mgmtdev renderer.
nix/binaries.nix registers .#govdpa.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…DOC027)

Audit of vdpa/vdpa.c's read-only print and argument paths against
ParseVdpa and the vdpa_sim_net corpus. Recorded only, never sent to
netdev; no patch, PR or sign-off.

Headline: print_queue_type derives queue_type from max_vqp, which
defaults to 0 because the kernel omits VDPA_ATTR_DEV_NET_CFG_MAX_VQP
from the vstats reply unless MQ/RSS is negotiated, so on a
single-queue-pair device queue 0 prints control_vq (it is rx) and queue
2 prints rx (it is the control vq). The corpus demonstrates it: the
queue_type label and the kernel's own stat names disagree.

Seven more: u16 read of the u32 QUEUE_INDEX; "link "/"link_announce "
trailing-space JSON keys; qidx optional in iproute2 but required by the
kernel (EINVAL); max_supported_vqs %d on a u32; min_vq_size sent by the
kernel but absent from the policy and print; a failing -j vstats still
printing {"vstats":{}}; and unbounded sprintf into fixed handle buffers
(root-only, not demonstrated live).

Verified against iproute2 a3c19931 and Linux 46fec1c3029b with exact
line numbers. Status doc: 2B done, increment 2 complete.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
matrix_fou.go generates fou.rows.jsonl (13 rows): `ip fou show`, plain and
-j, over five namespace fixtures (empty, direct, gue, multi, v6) plus three
negatives (help, show junk, badobj). Registered in nlcapgen/main.go and
TestFouSpace.

The fou genl family is netnsok=true and per-netns (net/ipv4/fou_core.c,
fou_nl_family), so each row runs in its own fresh namespace with its own
`ip fou add` setup in pre, outside the capture window; the dump sees only
that namespace's ports. No initns, no serial. The base workbench kernel
already builds fou as a module, so no mkVm.nix kernel patch is needed
(the devlink/netdevsim precedent).

local/peer are kept out of the fixtures: the kernel connect()s a peer,
which needs a route; every reply already carries zero LOCAL/PEER/PEER_PORT
attributes (ip suppresses them when zero), so non-zero values belong in
3P's unit tests. The multi dump is reverse insertion order (list_add
prepends), deterministic.

Two fresh boots agree: all ip.out/ip.err/ip.rc byte-identical, all pcap
sizes identical (bytes differ only in seq/pid). Corpus committed at
pkg/xtcpnl/testdata/7_3_1/ws/fou/ (13 row dirs, 65 files).

The existing TestParseFOUCorpus walks the whole corpus, so the new fou
dumps raised its GET-request count 11->21 and GET-reply count 10->22; the
two hardcoded expectations were updated (the full 3P grid is still to come).

Gates: go test ./tools/nlcapgen/ ./pkg/xtcpnl/, checks.nlcap-ws, gofmt.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The fou parser (ParseFOU) already decoded the full FOU_ATTR_* set with its
positive/negative/boundary/corner grid (TestParseFOU, 22 rows) and corpus
tally; 3P adds what was missing.

BuildGetFOURequest builds `ip fou show`'s dump (ip/ipfou.c do_show):
FOU_CMD_GET, genl version 1, NLM_F_REQUEST|NLM_F_DUMP, no attributes, no
ACK (ip uses rtnl_send + rtnl_dump_filter).

FuzzParseFOU (no crashers; accepted addresses are v4-or-v6-or-absent).

O3/O4 (xtcpnl_ws_fou_test.go, plus TestFouParseCmd): each `ip fou show`
row's command is classified, the family resolved from the capture's
CTRL_CMD_NEWFAMILY reply, and BuildGetFOURequest with the captured seq
rebuilds the request byte for byte (10/10; help/show junk/badobj send none,
two after resolving the family). Each reply decodes to one FOU_CMD_GET
mapping with a port (12 replies). Each -j stdout is a JSON array, one object
per mapping in the kernel's dump order, with port/gue/ipproto/family equal
to the decode (5 JSON dumps).

Three manual mutants of BuildGetFOURequest (GET->ADD, dropped NLM_F_DUMP,
version 1->0) all killed by the O3 byte comparison.

Gates: go test ./pkg/xtcpnl/ ./tools/nlcapgen/, CGO_ENABLED=0 go build
./..., gofmt, go vet, lint-baseline, netlink-audit, kernel-citation-audit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…R, V087)

cmd/gofou (thin) + internal/gofou on the govdpa template, replaying the ws
pcap. source.go matches each request byte for byte with only nlmsg_seq/pid
zeroed; both the GETFAMILY and the fixed FOU_CMD_GET header-only dump are
matched.

gofou.go is ip's top level cut to fou: it eats -j/-p, takes the fou object,
then do_ipfou. help is refused by usage() (rc 255) before genl_init_handle,
so it sends nothing; add/delete are refused read-only; an unknown
sub-command exits 255; show dumps. initFamily uses
BuildGetFamilyRequestVersion("fou", 0, seq) — libnetlink's genl version 0,
NLM_F_REQUEST only, no ACK (unlike vdpa's libmnl resolve) — verified
byte-identical to the capture. doShow refuses a stray argument before the
wire, else sends BuildGetFOURequest, wraps the replies in the outer JSON
array new_json_obj opens, prints each mapping, ends on NLMSG_DONE, and on
NLMSG_ERROR prints "Dump terminated" with the array still closed.

render.go's printFouMapping is print_fou_mapping: port, gue/ipproto, the
JSON-only family plus the text-only " -6", then the non-zero
local/peer/peer_port and dev (none exercised by the corpus). print.go is the
json_writer port with new_json_obj's outer array and print_null.

Tests: TestGofouCorpus 13/13 byte-exact; TestGofouReplayGuards (5);
TestGofouDispatch (7); TestGofouShow (8, scripted source);
TestGofouDumpTerminated (2); TestGofouImports (4). nix/binaries.nix
registers .#gofou. Six mutants, all killed.

Gates: go test ./internal/gofou/, CGO_ENABLED=0 go build ./..., gofmt,
go vet, nix build .#gofou, lint-baseline, nix-fmt, statix, deadnix,
netlink-audit, kernel-citation-audit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Audit of ip/ipfou.c's print_fou_mapping and fou_parse_opt against ParseFOU,
the kernel's fou_fill_info, and the fou corpus. Recorded only, never sent to
netdev; no patch, PR or sign-off.

(1) ip fou can neither set nor show FOU_ATTR_REMCSUM_NOPARTIAL: the kernel
reads it (fou_core.c:703) and dumps it (794) and it is policy-backed
(fou_nl.c:20), but fou_parse_opt has no keyword for it and
print_fou_mapping never prints it, so a port created with the flag by a
non-iproute2 client shows nothing of it (like the vdpa min_vq_size finding).

(2) the local/peer zero-check uses byte_len = af_bit_len(family)/8
(ipfou.c:260) for its memcmp, trusting the attribute's length and the
family; af_bit_len returns 0 for an unknown family, so a non-INET family
silently drops the address and a short address attribute is over-read,
while the sibling format_host_rta correctly uses RTA_PAYLOAD.

(3) the scalars are read at fixed widths with no length check (the shared
iproute2 pattern), and a non-zero unresolvable IFINDEX prints no dev.

Findings 2 and 3 are latent on well-formed replies; finding 1 is reachable
by a non-iproute2 creator. Verified against iproute2 a3c19931 and Linux
46fec1c3029b with exact line numbers. This closes the three-family arc
(devlink, vdpa, fou): increment 3 and the whole arc are done.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…realloc)

The unit_test.go newFamilyMsg/fouMapMsg helpers built their byte slices
with append chains, which lint-baseline's prealloc tier flagged. Build
them as single []byte composite literals instead: no appends to
preallocate, and the on-wire layout reads in one block.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…089)

Increment 4 of the genl-clones arc: `ip mptcp` over generic netlink's
mptcp_pm family. matrix_mptcp.go generates mptcp.rows.jsonl (26 rows):
nine read-only fixtures, each plain and -j: endpoint show (empty, one,
four endpoints), show id 2, bare endpoint, limits show (default, set in
pre), bare limits, and `limits show subflows 3`. Eight negatives cover
help, unknown objects/sub-commands, a non-address show argument, id 0,
an absent id (kernel EINVAL, rc 2) and a bad limit. mptcp_pm is netnsok
with per-netns state, so every row gets its own namespace. MPTCP is
built in, so no module is loaded.

ip's endpoint paths call ll_init_map, an RTM_GETLINK dump on its
rtnetlink socket, to name an endpoint's dev. A generic-only capture
lost it, so the capture helper's nl_filter now takes an expression, and
a new protocol, generic+route, keeps NETLINK_GENERIC and NETLINK_ROUTE
together. The change is additive; existing protocols are unchanged.

Two fresh boots agree byte for byte (26/26). TestParseMPTCPPMCorpus
walks the whole corpus, and its counts were reconciled against the new
rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Increment 4 is re-scoped with the user: goip already clones ip mptcp
(obj_mptcp.go), so no gomptcp; the ws corpus holds goip and xtcpnl
instead.

TestWsMptcpCorpus: every request-sending row's mptcp_pm request equals
BuildGenlRequest at the captured seq byte for byte (GET_ADDR dump,
GET_ADDR by id, GET_LIMITS with or without SUBFLOWS); refusals send
none; each answer decodes; -j endpoint JSON and the limits text (under
-j too) match the decoded answers, dev named from the capture's own
link dump. Genl messages are kept by pcap protocol, since RTM_NEWLINK
shares GENL_ID_CTRL's number. FuzzParseMPTCPPM seeds from the rows'
answer shapes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TestWsMptcpCorpus runs all 26 rows of the genl-clones mptcp space through
runMptcp over each row's own generic+route pcap: exit status and stdout
byte for byte (the -j limits' text, the empty array, dev from the
captured link dump), every genl exchange replayed and nothing written,
and ip's RTM_GETLINK dump request, where ip made one. Refusals keep
goip's own text; ip's message must appear in it. goip needed no change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Audit of ip/ipmptcp.c's endpoint and limits paths against the kernel's
mptcp_nl_fill_addr and GET/SET_LIMITS handlers, with the mptcp ws corpus
as the oracle. Recorded only, never sent to netdev; no patch, PR or
sign-off.

(1) ip -j mptcp limits show prints text: mptcp_limit_get_set never calls
new_json_obj (pw-006..009). (2) limits show runs the set's parser, so
"limits show subflows 3" sends SUBFLOWS in a GET_LIMITS the kernel
accepts and ignores, exit 0 (ec-009). (3) the kernel's u16 FAMILY is
read with rta_getattr_u8, wrong on big-endian. (4) the limits block has
no goto unknown, so "limits monitor" runs the monitor. (5) get_addr
exits 1 itself, so invarg("unknown argument") is dead and an unknown
endpoint word exits 1 (ng-004). (6) eight invarg messages end in \n,
doubling the newline (ng-005). (7) u32 limits print with %d (latent,
capped at 64).

Increment 4 is done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gofou duplicated internal/goip/obj_fou.go. goip now replays all 13 fou
ws rows (TestWsFouCorpus): ip's stdout, exit status and genl exchanges,
no write or route request, with no goip change. The ws replay helpers
move to ws_genl_test.go, shared with TestWsMptcpCorpus.

gofou's unit cases were already covered by goip's fou tests. Its
dump-error case expected exit 1, but ip exits 255 (do_show's 1 is
negated), which goip's TestFouExitCodes pins.

Delete cmd/gofou, internal/gofou and the nix binaries entry; update the
plan/status docs and the comments that named gofou.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tipc(8) over genl TIPCv2: 40 read-only commands across six namespace
fixtures (bare, ident, eth, udp, peer, sock), each plain and -j, plus 13
negatives. The workbench kernel already has CONFIG_TIPC=m.

The peer node is an unnamed `unshare -n` namespace named by pid, set up
in one pre step: each step's `ip netns exec` has a private mount
namespace, which hides an `ip netns add` mount from the next step.

Two fresh boots agree on rc, stderr, message types and flags for every
row. Socket ports are random and the peer link's counters timed, so
the nametable/socket rows and one stats row may differ in their replies
(and the socket rows in their per-socket PUBL_GET), as recorded in
V093. `tipc -j link get broadcast` segfaults (rc 139), kept for 5B.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…5P, V094)

ParseTIPC decodes each top-level TIPC nest (bearer, sock, publ, link with
stats, media, node, net, name table, monitor, monitor peer) under the
house genl rules. It accepts a repeated property of equal value: the
kernel puts a unicast link's PROP_PRIO twice (net/tipc/link.c:2708, 2715).

BuildTIPCRequest and BuildTIPCFamilyRequest lay out tipc(8)'s requests
(NLA_F_NESTED top nests; GETFAMILY at version 1 with an ack). The corpus
test rebuilds all 193 captured requests byte for byte, including the
follow-up queries socket list and link monitor list derive from their
replies, and decodes all 104 replies; O4 checks the -j link list and
name-table output. Table tests, builder tests against captured bytes,
FuzzParseTIPC; five mutants, each caught.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cmd/gotipc and internal/gotipc clone tipc's read-only commands (bearer,
link incl. statistics and monitor, media, nametable, node, socket) on
pkg/xtcpnl's ParseTIPC and BuildTIPCRequest: GNU getopt, cmdl.c's prefix
dispatch with verbatim help, the libmnl layer, and json_print's
per-command writer with its NULL rules. All 93 ws rows replay byte for
byte, including tipc's crash (rc 139) on -j link get broadcast.

The node's own address and hash2nodestr's identities come from a TIPC
socket, not netlink, so the Source carries them; the corpus test derives
them from each row's setup. Unit tests cover the crashes, SIGFPE, the
follow-up queries, refusals and map_get's C arithmetic; seven mutants,
each caught. Lint findings fixed in code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Not submitted to netdev. Headed by two crashes on a default node
(-j link get broadcast; -h node get identity/netid/clusterid calling a
NULL help), an unbounded tb[type] write in parse_attrs, invalid JSON
from -j link monitor get threshold, and callback errors reported as
"kernel answers: Success" with exit 0. Also records a kernel quirk: a
unicast link's PROP nest holds PRIO twice.

Finding 9 corrected gotipc, which exited 255 where tipc exits 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@randomizedcoder
randomizedcoder merged commit 679468c into main Nov 23, 2026
1 check passed
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