Files
moss-kernel/src/process/threading
Matthew Leach cdb9a73297 futex: only access timeout on _WAIT ops
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.
2025-12-28 23:38:03 -08:00
..