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

Backport changes necessary for mio 0.8 #413

Closed
wants to merge 1 commit into from

Conversation

upsuper
Copy link

@upsuper upsuper commented Jun 7, 2022

This PR backports necessary changes for mio 0.8 support to notify 4.0 branch.

This is because mio 0.6 depends on miow 0.2.2 which has an open security issue: https://rustsec.org/advisories/RUSTSEC-2020-0080.html and thus it's triggering warnings for packages using notify 4.x.

Since 5.0 is still in pre-release, and seemingly has been in the status for a long time, it might be better backporting mio 0.8 to 4.x branch and release a new version.

@JohnTitor
Copy link
Member

I'm hesitant to introduce a breaking change. And I'm currently considering making 5.0 release in the next few months and I'd go for it.

@JohnTitor
Copy link
Member

Btw did you mean 4.0 not 0.4?

@upsuper
Copy link
Author

upsuper commented Jun 7, 2022

Oh yep, I mean 4.0, sorry. I don't think this is a breaking change as I'm not changing any API of this package as far as I can see?

@upsuper
Copy link
Author

upsuper commented Jun 7, 2022

But if you are planning to release 5.0 sometime soon, that would be the best!

@JohnTitor
Copy link
Member

I don't think this is a breaking change as I'm not changing any API of this package as far as I can see?

Oh sorry, I didn't check your changes carefully.

MSRV CI failure is unrelated, but other failures are related?

@JohnTitor
Copy link
Member

@0xpr03 This would bump our MSRV up to 1.46 (https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md#080) It makes some sense to resolve the security advisory issue and 1.46 is old enough, so I think it's an acceptable breakage. Thoughts?

@upsuper
Copy link
Author

upsuper commented Jun 7, 2022

MSRV CI failure is unrelated, but other failures are related?

This PR touches only Linux-specific code, so I don't think any failure on macOS or Windows is related.

@JohnTitor
Copy link
Member

Well, I just realized ubuntu-latest's failure was only on MSRV check, I shouldn't work on serious things tonight...

@KamilaBorowska
Copy link

KamilaBorowska commented Jun 7, 2022

miow 0.2.2 had a patch for CVE-2020-35921 backported. I assume you came here from GHSA-jrcf-4jp8-m28v (Dependabot alerts), as that one doesn't seem to actually mention that 0.2.2 had this fixed.

I submitted a correction to GitHub (github/advisory-database#365) to hopefully remove this alert.

@0xpr03
Copy link
Member

0xpr03 commented Jun 7, 2022

to resolve the security advisory issue and 1.46 is old enough

In itself yeah.
But as @xfix said, there is a backport for mio: yoshuawuyts/miow#40 rendering a breaking change for this unnecessary

@upsuper
Copy link
Author

upsuper commented Jun 7, 2022

Oh, wasn't aware that it has a fix backported. We probably don't need this then.

@upsuper upsuper closed this Jun 7, 2022
@upsuper upsuper deleted the backport-mio-08 branch June 7, 2022 20:47
@0xpr03
Copy link
Member

0xpr03 commented Jun 7, 2022

Still thank your for taking the time.

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.

4 participants