Skip to content

fix(deps): update rustix for RUSTSEC-2026-0486 - #654

Merged
beardthelion merged 2 commits into
mainfrom
deps/rustix-rustsec-2026-0486
Dec 1, 2026
Merged

beardthelion merged 2 commits into
mainfrom
deps/rustix-rustsec-2026-0486

Conversation

@beardthelion

@beardthelion beardthelion commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Bump rustix from 1.1.4 to 1.1.6.

Motivation & context

1.1.6 fixes RUSTSEC-2026-0486.

Kind of change

  • Bug fix
  • Feature
  • Security fix
  • Docs
  • Tests / CI
  • Refactor (no behavior change)
  • Breaking or protocol change (issue required first)

What changed

  • Update the rustix pin in Cargo.lock. No workspace crate source changed.

How a reviewer can verify

Run from the repository root with DATABASE_URL set to a local Postgres test database and cargo-audit installed.

cargo fmt --all -- --check
cargo clippy --locked --workspace --all-targets -- -D warnings
cargo test --locked --workspace
cargo audit
cargo +1.91 check --locked --workspace --all-targets

Before you request review

  • Scope is one logical change; no unrelated churn
  • cargo test --workspace passes locally
  • New behavior is covered by tests (required for fixes)
  • cargo fmt --all and cargo clippy --workspace --all-targets -- -D warnings are clean
  • Commit titles use Conventional Commits (feat(...), fix(...), docs(...))
  • Docs / .env.example updated if behavior or config changed (or N/A)
  • Checked existing PRs so this isn't a duplicate

Notes for reviewers

Postgres workspace tests, fmt, audit, and the Rust 1.91 check passed locally. The hosted fmt + clippy job passed.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Usage-based billing could not be verified for over-limit reviews. Try again later or contact support.

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c9309cc1-ba7f-4d4d-873b-11a53b01e470
Commits

Reviewing files that changed from the base of the PR and between 03fe9c6 and c529b69.

Files ignored due to path filters: 1

  • Cargo.lock is excluded by !**/*.lock
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@jatmn jatmn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Thanks for the contribution. I do not see any actionable issues from my review.

Merge readiness

  • Rebase onto current main before merge. PR head bdeae363 branches from 1ba71bc; live origin/main is three commits ahead (d4cbdb3 and successors). GitHub reports the PR mergeable and the Cargo.lock hunk did not conflict in a local merge-tree check, but CI and review were anchored to the older parent — rebase (or merge main in) so the final green run matches the merge target.
  • Review gate: merge state is BLOCKED pending review from jatmn (not CI). All listed PR Checks passed, including cargo audit, test (stable/beta), MSRV, and Docker smoke.
  • Audit urgency (context only): merge-base cargo audit already exited 0 with RUSTSEC-2026-0486 classified as an allowed unsound warning (not a hard fail). This PR still correctly clears that warning and pins the patched rustix — it is hygiene and soundness, not unblocking a red audit job.

Needs maintainer decision

Pair xattr 1.7.0 with this rustix 1.1.6 bump?

Independent probes (runtime/missing-contract/probe-114.txt vs probe-116.txt) show xattr 1.6.1 round-trips attributes >4KiB against rustix 1.1.4, but returns empty payloads against rustix 1.1.6 (the 1.1.6 zero-length getxattr fix; upstream addresses this in xattr 1.7.0 with *_query helpers). The lockfile still pins xattr 1.6.1 on the tar → twigpine-node chain.

Today's tree does not call xattr:: directly and does not enable tar SCHILY xattr restore, so no current production path hits this regression. If maintainers expect future xattr restore or other large-xattr reads, bumping xattr to ≥1.7.0 in the same lockfile pass is a one-command follow-up (cargo update -p xattr --precise 1.7.0, ~9 lock lines in a local dry-run). If the goal is scanner-only RUSTSEC-2026-0486 closure, the present diff is sufficient.

@beardthelion

Copy link
Copy Markdown
Collaborator Author

Merged current main into the branch (c529b69). The diff against main is still only the rustix 1.1.4 to 1.1.6 lock change.

On xattr: I'm leaving it out of this PR. Nothing in the workspace calls xattr directly, and the only tar reads are the two tar::Archive::unpack sites in git/tigris.rs, which never set unpack_xattrs, so it stays at its default of false. tar 0.4.46 calls xattr only through xattr::set on that path, so no code here reads an xattr and the zero-length getxattr change is not reachable.

I couldn't find probe-114.txt or probe-116.txt in the repo, so I haven't reproduced the empty-payload result myself, but xattr 1.7.0 requiring rustix ^1.1.6 fits what you describe. If we start reading xattrs I'll take xattr 1.7.0 in its own PR, which keeps this one to the single advisory.

@beardthelion
beardthelion added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit e4e5f36 Dec 1, 2026
21 checks 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.

2 participants