diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2026-07-07 22:52:56 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-07-07 23:28:55 +0000 |
| commit | 407c7c339adb429efcb6658accd16399031c34ca (patch) | |
| tree | e65c209af96885a9355302ca677d96464a496295 /libexec/tests | |
| parent | 23e94b040b9b99f097c113fc8576576ffec0486f (diff) | |
linux/futex: Don't load a timeout when try-locking a mutex
linux_sys_futex() does not copyin a timespec for the timeout if the
operation is LINUX_FUTEX_TRYLOCK_PI, presumably because it doesn't make
sense to specify a timeout for a try-lock operation. However, this
means that we pass a userspace timespec pointer to
linux_umtx_abs_timeout_init().
Modify linux_futex_lock_pi() to not initialize the timeout if we're
try-locking.
Reviewed by: kib, dchagin
Reported by: Yuxiang Yang, Yizhou Zhao, Ao Wang, Xuewei Feng, Qi Li,
and Ke Xu from Tsinghua University using GLM-5.2 from Z.ai
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58061
Diffstat (limited to 'libexec/tests')
0 files changed, 0 insertions, 0 deletions
