Skip to content

build(deps): Bump golang.org/x/sys from 0.47.0 to 0.48.0 - #1449

Merged
lklimek merged 1 commit into
v1.8-devfrom
dependabot/go_modules/golang.org/x/sys-0.48.0
Sep 9, 2026
Merged

lklimek merged 1 commit into
v1.8-devfrom
dependabot/go_modules/golang.org/x/sys-0.48.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Bumps golang.org/x/sys from 0.47.0 to 0.48.0.

Commits
  • 613e257 cpu: add riscv64 hwprobe drift test
  • 6f7b10f unix: add MLOCK_ONFAULT constant
  • 663e7c8 cpu: add basic support for GOARCH=sparc64
  • de5f12f cpu: add ppc64le POWER10 detection
  • 80e8acf unix: run go fix
  • 1e3c182 unix: add IPMI interface
  • d429e20 unix: stop generating sparc termbits from the generic header
  • bd3bddf unix: add missing HWTSTAMP_* constants
  • e812f53 windows: add SO_SNDTIMEO constant for socket options
  • f6989c5 unix: align Ifreq so its union accessors cannot fault
  • Additional commits viewable in compare view

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Sep 8, 2026
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Sep 8, 2026
@Claudius-Maginificent

Copy link
Copy Markdown
Collaborator

🔒 Security Audit — golang.org/x/sys 0.47.0 → 0.48.0

Dependency bump audited. I verified everything twice and trusted nothing that the diff asserted about itself.

Verdict: ✅ Safe to merge — once CI is green. No CVE affects either version, module integrity is confirmed against independent sources, and the changed API surface does not intersect the four symbols this repository actually uses.


1. Diff integrity — what actually changed

The commit touches only go.mod and go.sum, but presents as 329 changed lines for a single version bump. That shape is exactly where an unwanted second change hides, so I normalised and compared the full requirement sets rather than reading the diff:

Check Result
Requirements in base vs head 362 vs 362
Requirement version changes Exactly 1 — golang.org/x/sys v0.47.0 → v0.48.0
// indirect marker flips None — all 362 keep identical direct/indirect status
go.sum lines touched 4 — all four are golang.org/x/sys; no other module's hash altered

The remaining churn is pure go mod tidy block reorganisation. Independently confirmed: go mod tidy -diff -go=1.27.1 against the PR head produces zero diff hunks — the resulting go.mod is exactly what go mod tidy generates, not a hand-edit. Nothing is smuggled in.

Worth a note for anyone skimming the diff on GitHub: 329 changed lines for a one-version bump looks alarming, and this is the first x/sys bump here to trigger full-graph churn (previous ones were clean 2-line diffs). The mechanism is benign — tools/tools.go blank-imports golangci-lint, buf and mockery, so x/sys sits underneath nearly the entire tool graph and its version move reshuffles MVS block placement for many other modules whose versions never change. Confirmed reflow, not scope creep.

2. Supply-chain verification

  • Checksum database — the go.sum entries match the Go checksum transparency log byte-for-byte (h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo=). Module tampering is ruled out.
  • Tag integrity — v0.48.0 resolves to commit 613e2570718ecde85c04e69ebd5585c3881c442c in the GitHub mirror, and the Go module proxy independently records the same hash originating from canonical go.googlesource.com/sys. Two independent sources agree; no moved-tag attack.
  • Provenance — all 17 commits landed through Gerrit with LUCI TryBot results and Google reviewers (Ian Lance Taylor, Cherry Mui, David Chase, Dmitri Shuralyov); 16 of 17 committed by Gopher Robot. No unexplained contributor on a security-sensitive path.
  • Injection points — scanned the upstream diff for new outbound network calls, os.Getenv/credential reads, exec.Command, shell-outs, and base64/obfuscated blobs: none. The single build-script change (unix/mkerrors.sh) is fully explained by two documented commits (sparc64 termbits cleanup, MLOCK_* constant regex).

3. Known vulnerabilities

ID Severity Affected range Applies here?
CVE-2022-29526 / GHSA-p782-xgp4-8hr8 / GO-2022-0493 Moderate (CWE-269) < 0.0.0-20220412211240 No — fixed long before both versions

OSV.dev returns no vulnerabilities for v0.47.0 or v0.48.0. Sources checked: OSV.dev, GitHub Advisory DB, NVD, Go vulnerability DB.

Worth stating explicitly, because the coincidence deserved scrutiny rather than a shrug: the only x/sys CVE in history is an access-check bypass in Faccessat, and this repository's sole use of the library is an access check. I chased it down. unix.Access is implemented as Faccessat(AT_FDCWD, path, mode, 0) — flags zero, while CVE-2022-29526 requires a non-zero flags parameter. Not affected, on two counts.

4. Upstream change assessment (17 commits)

Overwhelmingly generated constant/type additions and new architecture support (sparc64, riscv64, ppc64le POWER10). Two commits carry real weight:

  • f6989c5 — unix: align Ifreq so its union accessors cannot fault. An unregistered memory-safety fix with no CVE: Ifreq's union was byte-aligned, so in-place casts could fault (SIGBUS on sparc64). This is a net safety improvement and worth flagging precisely because automated scanners will never see it — it carries no advisory ID.
  • e8c1c32 — upstream go directive raised 1.25.0 → 1.26.0. I verified the compatibility angle rather than assuming it: this repo declares go 1.27.1 and CI pins 1.27.1/^1.27.1. Comfortably satisfied, no build-compatibility risk.

No constant was removed despite the deletion lines in the per-arch files — TIOCSER_TEMT was deduplicated into the generic header. The change is net-additive, so no build break.

5. Impact on this codebase

golang.org/x/sys has exactly one direct consumer here — libs/os/perms.go — using a total API surface of four symbols: unix.Access, unix.R_OK, unix.W_OK, unix.X_OK.

None of the four is touched anywhere between v0.47.0 and v0.48.0. The blast radius of this bump on first-party code is nil; residual exposure is transitive only.

6. CI status

The two red checks were investigated against actual job logs, not guessed at from job names. Neither is caused by this bump — no failure text mentions x/sys, unix.*, or any platform binding:

  • tests (01) — TestLoadHeightProgressUnderSustainedFlood failed a timing assertion by roughly one part in a thousand ("137" is not greater than "137.04925995000002"). A load test with a hard timing threshold, run under -race on a shared runner. This same check is green on the v1.8-dev tip.
  • e2e-test (dashcore) — connection reset by peer while fetching the unrelated module [email protected] from the Go module proxy. A network flake during dependency download, not a compile error.

Both are environmental. e2e-test (dashcore) has also failed on v1.8-dev itself without this bump, so that job is structurally fragile independent of PR content. I have requested a Dependabot rebase to re-run them.

7. Out-of-scope observations — not introduced by this PR

While assessing the sole consumer of the bumped library and the manifest gates around it, two pre-existing items surfaced. Neither is a merge blocker and neither has anything to do with this bump, but suppressing a real finding because it was inconvenient to the verdict would be poor practice:

LOW — libs/os/perms.go:83: operator remediation advice weakens validator key permissions (CWE-732).
The permission-error message instructs operators to run find <dir> -type f -exec chmod 640 {} \; over the config directory. That directory holds priv_validator_key.json and node_key.json, which this codebase deliberately writes with mode 0600 (privval/file.go:102,189, types/node_key.go:80). An operator following the suggested command relaxes the consensus signing key to group-readable, contradicting the project's own hardening. On a shared host or a container whose group spans other services, group-read on a BLS validator key is a key-disclosure and equivocation risk.
Suggested remediation: advise chmod 600 for files (or scope the 640 to non-key files). Worth a separate issue — please do not expand this PR.

LOW — no go mod tidy / go mod verify gate exists in CI.
No workflow in .github/workflows/ invokes go mod tidy or go mod verify; lint.yml treats go.mod/go.sum as a trigger file set, not a tidiness target, and gomodguard is an allow/deny-list linter rather than a tidy check. The only go mod tidy is a local Makefile convenience rule. Consequently the manifest-integrity checks I performed by hand above are, at present, performed by nobody automatically. Defense-in-depth suggestion for a separate issue: add a go mod tidy -diff and go mod verify step so manifest drift and hash mismatches are caught by CI rather than by a reviewer who happens to look.


Recommendation

Merge once CI is green. Do not merge on the current red state: the failures are environmental, but merging over unexplained red is a habit that eventually lets a real regression through. A rebase has been requested to re-run the flaky jobs.

One transparency note: I attempted to cross-check the repository's open Dependabot alerts for broader context, but the /dependabot/alerts endpoint requires elevated scope and the escalated attempt was declined at the permission prompt. This does not affect the verdict above — it was supplementary context only — but the check was not performed and I would rather say so than let its absence pass as a pass.

🍬 Tally: 0 critical, 0 high, 0 medium, 2 low (both pre-existing and out of scope) — plus 1 unregistered upstream memory-safety fix worth knowing about.

🤖 Co-authored by Claudius the Magnificent AI Agent

@Claudius-Maginificent

Copy link
Copy Markdown
Collaborator

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Sorry, only users with push access can use that command.

@lklimek

lklimek commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

@dependabot rebase

Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.47.0 to 0.48.0.
- [Commits](golang/sys@v0.47.0...v0.48.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.48.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/golang.org/x/sys-0.48.0 branch from 0f6a97e to 95ef0bd Compare September 9, 2026 10:28
@lklimek
lklimek merged commit cd786cb into v1.8-dev Sep 9, 2026
17 checks passed
@lklimek
lklimek deleted the dependabot/go_modules/golang.org/x/sys-0.48.0 branch September 9, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants