Re: [PATCH] Re: itimer oddness in 2.6.12

Andrew Morton
2005-07-26T06:18:38Z

George Anzinger <george@mvista.com> wrote:
>
> + while (time_before_eq(p->signal->real_timer.expires, jiffies))
> + p->signal->real_timer.expires += inc;

It gives me the creeps when I see timer code doing this, and it seems to be
done relatively frequently.

Surely it can be calculated arithmetically? If not, are you really sure
that it is not exploitable by malicious code?