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

Upgrading from crossbeam-utils 0.7 #1318

Closed
SimonSapin opened this issue Jun 28, 2022 · 3 comments · Fixed by #1419
Closed

Upgrading from crossbeam-utils 0.7 #1318

SimonSapin opened this issue Jun 28, 2022 · 3 comments · Fixed by #1419
Assignees

Comments

@SimonSapin
Copy link
Contributor

Dependabots reports that we may be affected by GHSA-qc84-gqf4-9926. In order to remove crossbeam-utils 0.7.x from our dependency graph we would need for moka to upgrade its crossbeam-epoch dependency, which is unfortunately blocked at the moment.

https://github.com/moka-rs/moka/blob/v0.8.6/Cargo.toml#L52-L55
moka-rs/moka#34 (comment)

However this crossbeam-utils 0.7 issue only occurs on 32-bit platform. It is unlikely that any router user targets such a platform, but we could add something to artificially make compilation warn or fail in that case.

@tatsuya6502
Copy link

I did a bit of digging on this, and now I believe Apollo router is not affected by GHSA-qc84-gqf4-9926 at all, even for those target platforms. I am currently confirming this to the creators of crossbeam-* crates via crossbeam-rs/crossbeam#860.

Here is a summary:

  • Dependency graph:
    • routermoka v0.8.6 → crossbeam-epoch v0.8.2 → crossbeam-utils v0.7.2 with GHSA-qc84-gqf4-9926.
  • From the advisory:
    • Crates using fetch_* methods with AtomicCell<{i,u}64> are affected by this issue.

    • I found that crossbeam-epoch v0.8.2 does not use crossbeam_utils::AtomicCell, so it is not affected.

I am also asking the crossbeam creators if they can publish a new v0.8.x of crossbeam-epoch, which depends on a fixed version of crossbeam-utils (although crossbeam-epoch v0.8.2 is not affected). I think this will be an easy way to make GitHub Dependabot happy.

I will let you know if I get any response from them.

@tatsuya6502
Copy link

Hi. I fixed the blocking issue in moka (moka-rs/moka#34 (comment)). So I was able to upgrade moka's crossbeam-epoch dependency to the latest version to remove crossbeam-utils 0.7.x from the dependency graph.

I published moka v0.9.2 to crates.io with the fix for the issue and the upgraded dependency. Please upgrade your moka dependency to v0.9.2 when you have a chance.

@SimonSapin
Copy link
Contributor Author

This is great, thank you!

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 a pull request may close this issue.

2 participants