Skip to content
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

ljsyscall: ensure size matches mask for get_mempolicy #1198

Merged
merged 1 commit into from
Dec 12, 2018

Conversation

takikawa
Copy link
Member

This is the same fix as snabbco#1268 on the upstream repo with just slightly different code. This version seems to work for me on snabb2, but the upstream PR didn't quite work for me.

Putting this here because we had discussed merging this via the lwaftr branch and then upstreaming it.

On a call to get_mempolicy, the maxnode argument should
match the size of the given nodemask to avoid buffer overruns.
This commit ensures the size is ok when ljsyscall generates the
nodemask structure.
@dpino dpino merged commit 93e4e08 into Igalia:lwaftr Dec 12, 2018
@eugeneia
Copy link
Collaborator

@justincormack pinging you in case this bug is also in ljsyscall master.

eugeneia pushed a commit to snabbco/snabb that referenced this pull request Jan 7, 2019
On a call to get_mempolicy, the maxnode argument should
match the size of the given nodemask to avoid buffer overruns.
This commit ensures the size is ok when ljsyscall generates the
nodemask structure.

Cherry-picked from: Igalia#1198
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants