Re: io_uring: should IORING_TIMEOUT_ABS honour the submitter's time namespace?
From: Xie Maoyi
Date: Mon May 04 2026 - 03:25:29 EST
On 5/3/26, Jens Axboe wrote:
> Might make sense to refactor a helper that does the time translation,
> and then patch 1 would basically be Pavel's fix and patch 2 would be
> sorting out the io_cqring_wait() translation as well. Both should be
> able to use the refactored helper.
Understood. I will prepare a 2-patch series along those lines:
1/2 io_uring: introduce io_timens_to_host_ktime() helper and apply
it in IORING_OP_TIMEOUT / IORING_OP_LINK_TIMEOUT (= Pavel's
fix for io_parse_user_time).
2/2 io_uring: route io_uring_enter()'s IORING_ENTER_ABS_TIMER path
through the same helper (covers io_uring/wait.c around the
ext_arg->ts parse).
Could you point me at the right base to develop on top of? Pavel's
draft uses io_parse_user_time which is not in v7.0 mainline, so I
assume the target is one of the io_uring trees (for-next?). I will
also re-run the SQPOLL and ABS_TIMER reproducers against the
series before sending.
Best regards,
Maoyi
Nanyang Technological University
https://maoyixie.com/
________________________________
CONFIDENTIALITY: This email is intended solely for the person(s) named and may be confidential and/or privileged. If you are not the intended recipient, please delete it, notify us and do not copy, use, or disclose its contents.
Towards a sustainable earth: Print only when necessary. Thank you.