Skip to content

Conversation

@hexagonal-sun
Copy link
Owner

The timeout parameter is only used for _WAIT futex ops. For other
ops, the timeout parameter is permitted to be an undefied value. The
current implementation would then try to copy_from_user using the
garbage pointer and fault, causing a missed wake-up and deadlock the
calling process.

Fix this by only accessing the timeout parmeter for _WAIT futex ops
where the parameter's value must be valid.

The `timeout` parameter is only used for `_WAIT` futex ops. For other
ops, the `timeout` parameter is permitted to be an undefied value. The
current implementation would then try to `copy_from_user` using the
garbage pointer and fault, causing a missed wake-up and deadlock the
calling process.

Fix this by only accessing the timeout parmeter for `_WAIT` futex ops
where the parameter's value must be valid.
@arihant2math arihant2math merged commit cdb9a73 into master Dec 29, 2025
1 check passed
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