Re: [patch V2 07/50] posix-cpu-timers: Split up posix_cpu_timer_get()

From: Oleg Nesterov
Date: Tue Apr 16 2024 - 10:46:44 EST


On 04/11, Thomas Gleixner wrote:
>
> In preparation for addressing issues in the timer_get() and timer_set()
> functions of posix CPU timers.

Cough... I must have missed something, but posix_cpu_timer_get()
doesn't look right with or without this trivial patch.

It doesn't initialize itp->it_value if cpu_timer_getexpires() == 0,
this means that sys_timer_gettime() will copy the uninitialized
cur_setting->it_value on the stack to userspace?

Oleg.