Skip to content

third_party/musl: Add support for __NR_getrandom, plug it to getrandom(2) - #13351

Merged
andrewsavage1 merged 1 commit into
youtube:mainfrom
rakuco:musl/implement-getrandom
Oct 14, 2026
Merged

andrewsavage1 merged 1 commit into
youtube:mainfrom
rakuco:musl/implement-getrandom

Conversation

@rakuco

@rakuco rakuco commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

This will be required in the staging branch by the 147.7703 rebase, which includes https://boringssl-review.googlesource.com/c/boringssl/+/89508

Bug: 573480706

…m(2)

This will be required in the staging branch by the 147.7703 rebase, which
includes https://boringssl-review.googlesource.com/c/boringssl/+/89508

Bug: 573480706
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor
Context State Description
CI / All Pass ❌ FAIL Some checks failed
CI / android ❌ FAIL Failed
CI / evergreen ✅ PASS Passed
CI / linux ✅ PASS Passed
@rakuco

rakuco commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Gemini Suggested Commit Message


starboard: Add getrandom syscall support to musl

Add support for the getrandom syscall to the musl Starboard
implementation. This change maps __NR_getrandom to the libc
getrandom function via the syscall wrapper.

This is required for the upcoming 147.7703 rebase to support new
BoringSSL requirements for random number generation.

Bug: 573480706

💡 Pro Tips for a Better Commit Message:

  1. Influence the Result: Want to change the output? You can write custom prompts or instructions directly in the Pull Request description. The model uses that text to generate the message.
  2. Re-run the Generator: Post a comment with: /generate-commit-message

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for the getrandom system call by defining the necessary macros in syscall_arch.h and handling the __NR_getrandom case in syscall.c. The feedback suggests reordering the libc_wrapper_SYS_getrandom definition in syscall_arch.h to maintain alphabetical order in accordance with the repository's style guidelines.

@andrewsavage1
andrewsavage1 enabled auto-merge (squash) October 14, 2026 13:32
@andrewsavage1
andrewsavage1 merged commit 7dcca6e into youtube:main Oct 14, 2026
875 of 887 checks passed
@rakuco
rakuco deleted the musl/implement-getrandom branch October 14, 2026 14:24
briantting pushed a commit that referenced this pull request Oct 15, 2026
…om, plug it to getrandom(2)

Refer to original PR: #13351

This will be required in the staging branch by the 147.7703 rebase,
which includes
https://boringssl-review.googlesource.com/c/boringssl/+/89508

Bug: 573480706

(cherry picked from commit 7dcca6e)
briantting pushed a commit that referenced this pull request Oct 16, 2026
…om, plug it to getrandom(2)

Refer to original PR: #13351

This will be required in the staging branch by the 147.7703 rebase,
which includes
https://boringssl-review.googlesource.com/c/boringssl/+/89508

Bug: 573480706

(cherry picked from commit 7dcca6e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants