Skip to content

ci: room_calls.cpp's process-wide objects on the writable-data scan's allowlist - #1133

Merged
transfix merged 1 commit into
masterfrom
ci/scan-room-calls
Nov 11, 2026
Merged

transfix merged 1 commit into
masterfrom
ci/scan-room-calls

Conversation

@transfix

Copy link
Copy Markdown
Owner

Puts #1122's new process-wide objects on the writable-data scan's allowlist, so package-linux / libcvc-release-grpc's "Writable-data scan" step passes on master again. Allowlist only: no library code changes.

Why master fails

#1122 (room-call) added src/cvc/ariadne/conference/room_calls.cpp to libcvc. Its CI run (42762523982) was on a base from before #1107, so that run had no scan step, and the objects reached master unscanned. Every PR based on master since #1122 fails the step on them.

The earlier failure (8 symbols from #1109 and #1126, plus grid_nav's 2 stale edt_scratch lines; e.g. job 129893786890 on e65c17e) is already fixed on master: #1119 carries those edits, and its last PR run (42817120432) passed the scan on a tree identical to master's b9de118. This PR touches none of #1119's lines.

The new lines (cvc 455 → 462), all src/cvc/ariadne/conference/room_calls.cpp

kind object what it is
bss + guard (anonymous namespace)::clients()::c std::map<const cvc::app *, std::shared_ptr<room_call_client>>: the client each app's relay session installed (room_call_client::install, read by for_app when a room-call runs).
bss (anonymous namespace)::g_clients_mu The std::mutex around that map.
bss (anonymous namespace)::g_messages std::atomic<std::uint64_t>: the counter that makes each room-call message's message_id unique (call-<pid>-<n>). It's the same pattern as room_lane.cpp's g_lane_messages, which is already on the list.
bss + guard register_room_call_intrinsics(cvc::app&)::done std::vector<const cvc::app *>: the apps that already registered room-call's intrinsics. register_room_intrinsics and attach_relay both call it, and it registers only once per app.
bss register_room_call_intrinsics(cvc::app&)::mu The std::mutex around done (constant-initialised, so it has no guard, like engines_mutex()::m).

Why they stay for now: these objects belong to the process-wide action-intrinsics registry. register_room_call_intrinsics adds a provider that captures &app to register_action_intrinsics's registry (ariadne.cpp's action_intrinsics_registry(), already on the list), and done exists to keep that provider from being added twice. They should move onto the app when that registry does. Until then the client map is the only way a provider in that registry can find its app's client.

Not listed: kWire is a constant-initialised const aggregate (.rodata). relay_session.cpp, the moved value_cbor.cpp and #1122's other libcvc edits define no writable data.

How the lines were made

I wrote these lines from the source, because there's no Linux build here to scan. This PR's own package-linux / libcvc-release-grpc run is the check. If a symbol's text turns out different, I'll take it from that run's singleton-scan-libcvc artifact. Locally, the file parses with scan.parse_allowlist and scan.render_allowlist reproduces it byte for byte, which checks the sort order and the section count.

… allowlist

#1122 (room-call) added src/cvc/ariadne/conference/room_calls.cpp to
libcvc. Its CI ran on a base from before #1107, so the scan never saw it,
and every PR based on master now fails the package-linux scan step on its
seven objects: the per-app client map clients() and its mutex, the
once-per-app list in register_room_call_intrinsics and its mutex, and the
message counter g_messages (like room_lane.cpp's g_lane_messages).
@transfix
transfix merged commit d45ff26 into master Nov 11, 2026
29 of 33 checks passed
@transfix
transfix deleted the ci/scan-room-calls branch November 11, 2026 00:28
transfix added a commit that referenced this pull request Nov 11, 2026
#1133 allowlists the same seven room_calls.cpp objects this branch added in
78eccca and 94aaf52, so the only conflict was the cvc section's count. The
merged list is the three-way union of both sides (812 lines, cvc 464), as
scan.py renders it.
transfix added a commit that referenced this pull request Nov 11, 2026
Picks up #1133, which puts room_calls.cpp's seven objects on the writable-data scan's allowlist; the scan failed package-linux / libcvc-release-grpc on them.
transfix added a commit that referenced this pull request Nov 11, 2026
…1133)

package-linux's writable-data scan failed on seven room_calls.cpp symbols from #1122, which this
branch never touched; #1133 put them on master's allowlist.
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