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

BUG: fix detection of WAIT_KILLABLE_RECV flag #419

Closed
wants to merge 2 commits into from

Conversation

alip
Copy link
Contributor

@alip alip commented Nov 4, 2023

The kernel returns EINVAL when this flag is passed to seccomp without the new listener flag so we should pass this flag along as well.

Reference on where the check happens in the kernel:
https://github.com/torvalds/linux/blob/aea6bf908d730b01bd264a8821159db9463c111c/kernel/seccomp.c#L1926-L1932

The kernel returns EINVAL when this flag is passed to seccomp
without the new listener flag so we should pass the along as well.

Reference on where the check happens in the kernel:
https://github.com/torvalds/linux/blob/aea6bf908d730b01bd264a8821159db9463c111c/kernel/seccomp.c#L1926-L1932

Signed-off-by: Ali Polatel <alip@chesswob.org>
@pcmoore pcmoore changed the title system: fix detection of WAIT_KILLABLE_RECV flag BUG: fix detection of WAIT_KILLABLE_RECV flag Nov 30, 2023
@pcmoore pcmoore added the bug label Nov 30, 2023
@pcmoore pcmoore added this to the v2.6.0 milestone Nov 30, 2023
src/system.c Outdated Show resolved Hide resolved
Copy link
Member

@pcmoore pcmoore left a comment

Choose a reason for hiding this comment

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

This looks good to me, what do you think @drakenclimber? A note to whoever ends up merging this, squash the fixup patch into the first patch so there is only one commit in the tree.

Acked-by: Paul Moore <paul@paul-moore.com>

@drakenclimber
Copy link
Member

Pushed to main in commit 9da5d17. Thanks, @alip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants