mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2026-04-19 06:39:14 -04:00
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.