Repository navigation
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
The DRBGs tell a child from its parent by the process ID. After a process with process ID 1 calls unshare(2) with CLONE_NEWPID, the child it creates by fork(2) is process 1 of the new PID namespace, so the check sees no change and the child continues its parent's generator. Say so beside the statement on fork(2), and tell applications that create such a child to reseed in it, with RAND_poll(3) as the call that does it.
231adc8 to
43e5ad3
Compare
|
This pull request is ready to merge |
|
Were ML-based tools used to create non-trivial portion of this patch? If that is the case, please annotate the commit message with a suitable |
|
Yes. Both commits were written with an AI tool: 43e5ad3 is the new paragraph, adbd3d4 applies the wording suggested in review. The trailer for both: If you would rather have it in the commit messages on the branch, I can amend and force-push; I have not done so because that would dismiss the approvals. |
The DRBGs tell a child from its parent by the process ID. After a process with process ID 1 calls unshare(2) with CLONE_NEWPID, the child it creates by fork(2) is process 1 of the new PID namespace, so the check sees no change and the child continues its parent's generator. Say so beside the statement on fork(2), and tell applications that create such a child to reseed in it, with RAND_poll(3) as the call that does it. Assisted-by: Claude Code:claude-opus-5-5 Reviewed-by: Eugene Syromiatnikov <[email protected]> Reviewed-by: Nikola Pajkovsky <[email protected]> Reviewed-by: Jakub Zelenka <[email protected]> Merge-date: Wed Nov 11 09:07:14 2026 Merged-from: #33508
The DRBGs tell a child from its parent by the process ID. After a process with process ID 1 calls unshare(2) with CLONE_NEWPID, the child it creates by fork(2) is process 1 of the new PID namespace, so the check sees no change and the child continues its parent's generator. Say so beside the statement on fork(2), and tell applications that create such a child to reseed in it, with RAND_poll(3) as the call that does it. Assisted-by: Claude Code:claude-opus-5-5 Reviewed-by: Eugene Syromiatnikov <[email protected]> Reviewed-by: Nikola Pajkovsky <[email protected]> Reviewed-by: Jakub Zelenka <[email protected]> Merge-date: Wed Nov 11 09:07:14 2026 Merged-from: #33508 (cherry picked from commit dcb9027)
The DRBGs tell a child from its parent by the process ID. After a process with process ID 1 calls unshare(2) with CLONE_NEWPID, the child it creates by fork(2) is process 1 of the new PID namespace, so the check sees no change and the child continues its parent's generator. Say so beside the statement on fork(2), and tell applications that create such a child to reseed in it, with RAND_poll(3) as the call that does it. Assisted-by: Claude Code:claude-opus-5-5 Reviewed-by: Eugene Syromiatnikov <[email protected]> Reviewed-by: Nikola Pajkovsky <[email protected]> Reviewed-by: Jakub Zelenka <[email protected]> Merge-date: Wed Nov 11 09:07:14 2026 Merged-from: #33508 (cherry picked from commit dcb9027)
The DRBGs tell a child from its parent by the process ID. After a process with process ID 1 calls unshare(2) with CLONE_NEWPID, the child it creates by fork(2) is process 1 of the new PID namespace, so the check sees no change and the child continues its parent's generator. Say so beside the statement on fork(2), and tell applications that create such a child to reseed in it, with RAND_poll(3) as the call that does it. Assisted-by: Claude Code:claude-opus-5-5 Reviewed-by: Eugene Syromiatnikov <[email protected]> Reviewed-by: Nikola Pajkovsky <[email protected]> Reviewed-by: Jakub Zelenka <[email protected]> Merge-date: Wed Nov 11 09:07:14 2026 Merged-from: #33508 (cherry picked from commit dcb9027)
|
Applied to |
The DRBGs tell a child from its parent by the process ID. After a process with process ID 1 calls unshare(2) with CLONE_NEWPID, the child it creates by fork(2) is process 1 of the new PID namespace, so the check sees no change and the child continues its parent's generator. Say so beside the statement on fork(2), and tell applications that create such a child to reseed in it, with RAND_poll(3) as the call that does it. Assisted-by: Claude Code:claude-opus-5-5 Reviewed-by: Eugene Syromiatnikov <[email protected]> Reviewed-by: Nikola Pajkovsky <[email protected]> Reviewed-by: Jakub Zelenka <[email protected]> Merge-date: Wed Nov 11 09:07:14 2026 Merged-from: openssl#33508
The RAND(7) paragraph from #33285 says that a child created by fork(2) does not continue its parent's generator. A child that keeps its parent's process ID does: after a process with process ID 1 calls unshare(2) with
CLONE_NEWPID, the child it creates by fork(2) is process 1 of the new PID namespace, and the DRBGs' fork check comparesgetpid(). This adds the case to the paragraph and to the advice to reseed.Checklist