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

CLONE_INTO_CGROUP and CLONE_CLEAR_SIGHAND are both erroneously 0 #3584

Closed
UhhhWaitWhat opened this issue Feb 14, 2024 · 0 comments · Fixed by #3585
Closed

CLONE_INTO_CGROUP and CLONE_CLEAR_SIGHAND are both erroneously 0 #3584

UhhhWaitWhat opened this issue Feb 14, 2024 · 0 comments · Fixed by #3585
Labels
C-bug Category: bug

Comments

@UhhhWaitWhat
Copy link

UhhhWaitWhat commented Feb 14, 2024

Apparently the two clone flags CLONE_INTO_CGROUP and CLONE_CLEAR_SIGHAND are both larger than an i32, which results in them quietly being truncated to 0 over here (or I'm misunderstanding something).

linux/sched.h defines them as follows:

#define CLONE_CLEAR_SIGHAND 0x100000000ULL
#define CLONE_INTO_CGROUP 0x200000000ULL

As far as I understand clone() cannot support these, but clone3 should be able to.
In any way I'd argue the two flags being 0 is a bug and it would be better not having the flags then having them be wrong.

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

Successfully merging a pull request may close this issue.

1 participant