xcl run: make XCL_NETWORK=0 the default (the title's crash reporter uploads dumps when the network is on) #2992

Open
opened 2026-11-27 10:47:03 +00:00 by github-bot · 1 comment
Owner

@⁠spicbully-star on GitHub · 2026-11-27 09:33 UTC · original

What happens now. The network is open unless the user sets XCL_NETWORK=0. hle/netoff.rs turns the block on only for that exact value: std::env::var("XCL_NETWORK").is_ok_and(|v| v.trim() == "0"). Without it, the retail title's crash reporter uploads a minidump to an outside server on every crash. The developer notes cover this (HANDOFF.md, "Retail game bring-up, 2026-11-23": "Always run it with XCL_NETWORK=0"), and #702 shows what such a dump contained: the PC's whole environment block, with the user name, computer name, profile paths and the credentials in user variables.

The README doesn't mention XCL_NETWORK. So a new user who just runs xcl run <game> sends crash dumps without knowing it. Testers who follow the issues set it (it's in the env line of the reports in #2582, for example), but that is something you have to know first.

The network block itself is in good shape: #305 made it process-wide (db1ddb2), and ed56bca covers GetAddrInfoExW. The fix for #702 (#730 or #740) is still open, though, so a dump that does get out still carries the environment.

Proposal

  1. Block by default. xcl run behaves as if XCL_NETWORK=0, and XCL_NETWORK=1 opts in for anyone who needs the title's online calls.
  2. When the network is on, log a clear line at start, for example network: ON – the title can reach the internet and its crash reporter can upload dumps.
  3. Add one line to the README's run section.

I don't know of a feature that needs the network for single-player bring-up today. If there is one, (2) and (3) alone would already help.

I haven't tested a change for this. Our runs (RX 9070 XT, Windows 10, amd-dev) have all used XCL_NETWORK=0. I'm happy to test a PR.

Written with Claude Code (Claude Opus 5.5) from reading main (hle/netoff.rs, HANDOFF.md, README) and #702, and checked against the source before posting.

**@⁠spicbully-star** on GitHub · 2026-11-27 09:33 UTC · [original](https://github.com/xcl-dev/xcl/issues/2992) **What happens now.** The network is open unless the user sets `XCL_NETWORK=0`. `hle/netoff.rs` turns the block on only for that exact value: `std::env::var("XCL_NETWORK").is_ok_and(|v| v.trim() == "0")`. Without it, the retail title's crash reporter uploads a minidump to an outside server on every crash. The developer notes cover this (`HANDOFF.md`, "Retail game bring-up, 2026-11-23": "Always run it with `XCL_NETWORK=0`"), and #702 shows what such a dump contained: the PC's whole environment block, with the user name, computer name, profile paths and the credentials in user variables. The README doesn't mention `XCL_NETWORK`. So a new user who just runs `xcl run <game>` sends crash dumps without knowing it. Testers who follow the issues set it (it's in the env line of the reports in #2582, for example), but that is something you have to know first. The network block itself is in good shape: #305 made it process-wide (db1ddb2), and ed56bca covers GetAddrInfoExW. The fix for #702 (#730 or #740) is still open, though, so a dump that does get out still carries the environment. **Proposal** 1. Block by default. `xcl run` behaves as if `XCL_NETWORK=0`, and `XCL_NETWORK=1` opts in for anyone who needs the title's online calls. 2. When the network is on, log a clear line at start, for example `network: ON – the title can reach the internet and its crash reporter can upload dumps`. 3. Add one line to the README's run section. I don't know of a feature that needs the network for single-player bring-up today. If there is one, (2) and (3) alone would already help. I haven't tested a change for this. Our runs (RX 9070 XT, Windows 10, amd-dev) have all used `XCL_NETWORK=0`. I'm happy to test a PR. Written with Claude Code (Claude Opus 5.5) from reading main (`hle/netoff.rs`, `HANDOFF.md`, README) and #702, and checked against the source before posting.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:47:03 +00:00
Author
Owner

@⁠ettehn on GitHub · 2026-11-27 10:18 UTC · original

Windows before/after on 623d02e465a17497a757a4ce867f482b0a6c8f3b. I tested a local candidate that enables the existing title-network hooks by default, accepts only XCL_NETWORK=1 as an opt-in, and reports that opt-in in the host log. Registry-only inspection does not install the process-wide hooks.

The synthetic test used a deliberately invalid socket, which cannot transmit. With the variable unset, the original host returned native WSAENOTSOCK (10038). The candidate returned the detour’s WSAENETUNREACH (10051) for unset, 0, empty, and an invalid value. 1 and whitespace-padded 1 reached native Winsock. Loopback connected in all six cases. No outside endpoint was contacted.

On Windows 11 26200.9974, RTX 5070 Ti Laptop / 621.24, and Rust 1.97.1 MSVC, the candidate passed all 12 focused tests (e2e, launcher_e2e, and the new policy fixture). The separately built base passed the 11 existing tests with explicit XCL_NETWORK=0. WARP showed the same three synthetic title failures on both revisions. No retail launch or full workspace suite for this candidate.

AI use: OpenAI Codex (GPT-6) prepared the local candidate and fixture, ran the comparisons, and drafted this report.

**@⁠ettehn** on GitHub · 2026-11-27 10:18 UTC · [original](https://github.com/xcl-dev/xcl/issues/2992#issuecomment-7215720077) **Windows before/after on `623d02e465a17497a757a4ce867f482b0a6c8f3b`.** I tested a local candidate that enables the existing title-network hooks by default, accepts only `XCL_NETWORK=1` as an opt-in, and reports that opt-in in the host log. Registry-only inspection does not install the process-wide hooks. The synthetic test used a deliberately invalid socket, which cannot transmit. With the variable unset, the original host returned native `WSAENOTSOCK` (10038). The candidate returned the detour’s `WSAENETUNREACH` (10051) for unset, `0`, empty, and an invalid value. `1` and whitespace-padded `1` reached native Winsock. Loopback connected in all six cases. No outside endpoint was contacted. On Windows 11 26200.9974, RTX 5070 Ti Laptop / 621.24, and Rust 1.97.1 MSVC, the candidate passed all 12 focused tests (`e2e`, `launcher_e2e`, and the new policy fixture). The separately built base passed the 11 existing tests with explicit `XCL_NETWORK=0`. WARP showed the same three synthetic title failures on both revisions. No retail launch or full workspace suite for this candidate. **AI use:** OpenAI Codex (GPT-6) prepared the local candidate and fixture, ran the comparisons, and drafted this report.
This discussion has been locked. Commenting is limited to contributors.
No description provided.