Re: [patch 2/2] posix-timers: Sanitize overrun handling

2018-06-28 Thread John Stultz
On Tue, Jun 26, 2018 at 6:21 AM, Thomas Gleixner wrote: > The posix timer overrun handling is broken because the forwarding functions > can return a huge number of overruns which does not fit in an int. As a > consequence timer_getoverrun(2) and siginfo::si_overrun can turn into > random number ge

[patch 2/2] posix-timers: Sanitize overrun handling

2018-06-26 Thread Thomas Gleixner
The posix timer overrun handling is broken because the forwarding functions can return a huge number of overruns which does not fit in an int. As a consequence timer_getoverrun(2) and siginfo::si_overrun can turn into random number generators. The k_clock::timer_forward() callbacks return a 64 bit