-
Notifications
You must be signed in to change notification settings - Fork 18k
os.RemoveAll: openFdAt function without O_CLOEXEC and cause fd escape to child process [1.12 backport] #33424
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
Comments
Change https://golang.org/cl/188538 mentions this issue: |
Ping @ianlancetaylor |
There's a race here with fork/exec, enable the close-on-exec flag for the new file descriptor. Updates #33405 Fixes #33424 Change-Id: Ib1e405c3b48b11c867f183fd13eff8b73d95e3b4 Reviewed-on: https://go-review.googlesource.com/c/go/+/188537 Run-TryBot: Baokun Lee <nototon@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> (cherry picked from commit 2d6ee6e) Reviewed-on: https://go-review.googlesource.com/c/go/+/188538 Run-TryBot: Ian Lance Taylor <iant@golang.org>
Closed by merging 047a326 to release-branch.go1.12. |
This backport has been approved and merged to the release branch; updating label to CherryPickApproved to reflect that. The rationale was that this was a serious problem with no workaround. |
@dmitshur I was surprised that this fix is not in the 1.12.8 release. https://groups.google.com/forum/m/#!topic/golang-dev/CL4in60FCuA |
@oiooj It's because Go 1.12.8 was a security release, so its contents are just Go 1.12.7 with the security fixes applied. The next point release, Go 1.12.9, will include both the security fixes from 1.12.8 and all other changes that have been backported to the 1.12 release branch ( |
@dmitshur Thanks, but the users need to wait for another month? and some users thought that this fixed in v1.12.8 release, see kubernetes/minikube#5087 and kubernetes/kubernetes#79912. |
The Go 1.12.9 point release is coming out very soon after the security release. It's planned to be released today. |
@dmitshur I was thinking it is in the .8 point release. Is it good idea to have pre-release note about the coming point release? I checked https://groups.google.com/forum/#!topic/golang-nuts/-Ba7cHufTKc and considered the fd leaking is one of security issue. But it didn't. So if there is any pre-release note, it will be helpful! thanks |
For security releases, we can't include the details of the security fixes in the pre-announcement until the security release is available. For all other releases, you can look at the upcoming milestone, e.g., Go1.12.9, and see which cherry-pick candidates have been approved to get a sense what's coming in the next point release. See https://golang.org/wiki/MinorReleases and https://golang.org/security for more information about this process. If you'd like to discuss the release process further or make suggestions, please start a new thread in the golang-dev mailing list. |
@dmitshur thanks for the reply. |
@oiooj requested issue #33405 to be considered for backport to the next 1.12 minor release.
The text was updated successfully, but these errors were encountered: