-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
syscall: exec_linux: switch to F_DUPFD_CLOEXEC in clobber-prevention logic #61754
base: master
Are you sure you want to change the base?
Conversation
This PR (HEAD: b026d47) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/515799. Important tips:
|
b026d47
to
bb99daf
Compare
This PR (HEAD: bb99daf) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/515799. Important tips:
|
Message from Aleksa Sarai: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
Message from Ian Lance Taylor: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
Message from Aleksa Sarai: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
Message from Ian Lance Taylor: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
bce10eb
to
2f84f5d
Compare
This PR (HEAD: 2f84f5d) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/515799. Important tips:
|
Message from Aleksa Sarai: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
Message from Ian Lance Taylor: Patch Set 4: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
Message from Gopher Robot: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
Message from Gopher Robot: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
Message from Gopher Robot: Patch Set 4: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
Message from Aleksa Sarai: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
2f84f5d
to
959cbfe
Compare
This PR (HEAD: 959cbfe) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/515799. Important tips:
|
Message from Aleksa Sarai: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
…logic The existing clobber-prevention logic can end up clobbering random file descriptors, which can cause issues on Linux if a user wants to execute a /proc/self/fd/$n handle that isn't included in attr.Files. Similar logic already exists for the BSDs and Solaris. In addition, the F_DUPFD_CLOEXEC makes the clobber-prevention logic much simpler to follow. Closes golang#61751
959cbfe
to
db4bc63
Compare
This PR (HEAD: db4bc63) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/515799. Important tips:
|
Message from Ian Lance Taylor: Patch Set 6: Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
Message from Gopher Robot: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
Message from Gopher Robot: Patch Set 6: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
Message from Aleksa Sarai: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
Message from Ian Lance Taylor: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/515799. |
The existing clobber-prevention logic can end up clobbering random file
descriptors, which can cause issues on Linux if a user wants to execute
a /proc/self/fd/$n handle that isn't included in attr.Files. Similar
logic already exists for the BSDs and Solaris.
In addition, the F_DUPFD_CLOEXEC makes the clobber-prevention logic much
simpler to follow.
Closes #61751