Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo,clippy,rustc,rustfmt: 1.80.1 -> 1.81.0 #339854

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Conversation

alyssais
Copy link
Member

@alyssais alyssais commented Sep 5, 2024

Description of changes

Fixes: CVE-2024-24576

Built:

  • fd.aarch64-darwin
  • fd.aarch64-linux
  • fd.x86_64-darwin
  • fd.x86_64-linux
  • firefox.x86_64-linux
  • thunderbird.x86_64-linux

Please help test Darwin.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@emilazy
Copy link
Member

emilazy commented Sep 5, 2024

Successfully built fd on aarch64-darwin. My local machine is too weird right now to confirm x86_64-darwin.

@emilazy
Copy link
Member

emilazy commented Sep 5, 2024

Confirmed fd on x86_64-darwin too.

@alyssais alyssais marked this pull request as draft September 6, 2024 12:51
@alyssais
Copy link
Member Author

alyssais commented Sep 6, 2024

This breaks fastCross cross compilation. I'm investigating, but worst case we can just disable that, and cross compiling will mean having to compile a whole new rustc again.

@alyssais alyssais marked this pull request as ready for review September 6, 2024 13:16
@alyssais
Copy link
Member Author

alyssais commented Sep 6, 2024

Bisected to rust-lang/rust#127866.

@alyssais
Copy link
Member Author

alyssais commented Sep 6, 2024

One of rust-lang/rust@c3d3d6f, rust-lang/rust@c15469a fixes this. I'll figure out which one tomorrow.

@alyssais
Copy link
Member Author

alyssais commented Sep 7, 2024

It's the latter, so I guess once rust-lang/rust#130034 is merged I'll apply it and we can re-enable fastCross.

@freyacodes freyacodes mentioned this pull request Sep 8, 2024
13 tasks
@alyssais alyssais merged commit 5f125d5 into NixOS:staging Sep 10, 2024
24 of 26 checks passed
@alyssais alyssais deleted the rust-1.81 branch September 10, 2024 13:02
@chayleaf
Copy link
Contributor

to clarify for anyone else confused about this, this fixes CVE-2024-43402, not CVE-2024-24576 (which got fixed in 1.77.2). Both are Windows-only, so the impact for Nix is zero, or at least very close to zero.

@alyssais
Copy link
Member Author

Nixpkgs supports building Rust programs for Windows.

@alyssais
Copy link
Member Author

Sorry for the wrong CVE ID though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants