-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Only use clone3
when needed for pidfd
#89924
Conversation
In rust-lang#89522 we learned that `clone3` is interacting poorly with Gentoo's `sandbox` tool. We only need that for the unstable pidfd extensions, so otherwise avoid that and use a normal `fork`.
|
This patch seems reasonable to me -- should be minimal and work around the issues with the sandbox tool for 1.56. I think we can likely just not do this for 1.57 given that it appears to be ultimately a bug in the sandbox tooling (that could trigger with other code as well, not specific to Rust). @bors r+ rollup=never |
📌 Commit de2e483 has been approved by |
I posted one suggestion to generalize the explanatory comment, but otherwise this LGTM as a workaround. |
The comment after the |
📌 Commit ad6e5e1 has been approved by |
⌛ Testing commit ad6e5e1 with merge 1135eff91c55a5ba56fc955647652883baec4b53... |
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
Should this land on nightly as well? |
@bors r=Mark-Simulacrum |
📌 Commit 74ef530 has been approved by |
This comment has been minimized.
This comment has been minimized.
⌛ Testing commit 74ef530 with merge 92b7da2cb7f50a496698996dd34a8dcadbd1b3cc... |
💥 Test timed out |
@bors retry seems stuck |
⌛ Testing commit 74ef530 with merge 16c2ad090fb360368b60cf606e41871d4f40c2a1... |
💥 Test timed out |
@bors retry timeout on dist-x86_64-musl, no logs |
This comment has been minimized.
This comment has been minimized.
☀️ Test successful - checks-actions |
Only use `clone3` when needed for pidfd In rust-lang#89522 we learned that `clone3` is interacting poorly with Gentoo's `sandbox` tool. We only need that for the unstable pidfd extensions, so otherwise avoid that and use a normal `fork`. This is a re-application of beta rust-lang#89924, now that we're aware that we need more than just a temporary release fix. I also reverted 12fbabd, as that was just fallout from using `clone3` instead of `fork`. r? `@Mark-Simulacrum` cc `@joshtriplett`
In #89522 we learned that
clone3
is interacting poorly with Gentoo'ssandbox
tool. We only need that for the unstable pidfd extensions, sootherwise avoid that and use a normal
fork
.r? @Mark-Simulacrum