Re: [PATCH 1/2] futex: adjust a futex timeout with a per-timens offset

2020-10-16 Thread Andrei Vagin
On Thu, Oct 15, 2020 at 04:13:42PM +0200, Thomas Gleixner wrote: > On Thu, Oct 15 2020 at 14:26, Dmitry Safonov wrote: > > > On 10/15/20 8:29 AM, Andrei Vagin wrote: > >> For all commands except FUTEX_WAIT, timeout is interpreted as an > >> absolute value. This absolute value is inside the task's

Re: [PATCH 1/2] futex: adjust a futex timeout with a per-timens offset

2020-10-15 Thread Thomas Gleixner
On Thu, Oct 15 2020 at 14:26, Dmitry Safonov wrote: > On 10/15/20 8:29 AM, Andrei Vagin wrote: >> For all commands except FUTEX_WAIT, timeout is interpreted as an >> absolute value. This absolute value is inside the task's time namespace >> and has to be converted to the host's time. >> >> Cc: >

Re: [PATCH 1/2] futex: adjust a futex timeout with a per-timens offset

2020-10-15 Thread Dmitry Safonov
On 10/15/20 8:29 AM, Andrei Vagin wrote: > For all commands except FUTEX_WAIT, timeout is interpreted as an > absolute value. This absolute value is inside the task's time namespace > and has to be converted to the host's time. > > Cc: > Fixes: 5a590f35add9 ("posix-clocks: Wire up clock_gettime()

[PATCH 1/2] futex: adjust a futex timeout with a per-timens offset

2020-10-15 Thread Andrei Vagin
For all commands except FUTEX_WAIT, timeout is interpreted as an absolute value. This absolute value is inside the task's time namespace and has to be converted to the host's time. Cc: Fixes: 5a590f35add9 ("posix-clocks: Wire up clock_gettime() with timens offsets") Reported-by: Hans van der Laa