Re: x86_64 system lockup from userspace using setitimer()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Gleixner
Date: Tuesday, March 13, 2007 - 1:33 pm

On Tue, 2007-03-13 at 16:02 -0400, Chuck Ebbert wrote:

No. The possible DoS is only when high res timers are enabled, which is
not the case in 2.6.20.

Looking at the values 

140735669863712 = 0x7FFF 939C 0520

We convert second to nanoseconds:

140735669863712 * 1e9 =  0x1DCD 4BC3 6B82 914B 4000

The seconds value is limited to LONG_MAX, but on a 64 bit machine, the
140735669863712 is inside LONG_MAX and we have an multiplication
overflow.

I'm not sure, how this results in a DoS, but I will look into this
tomorrow morning, when I'm more awake.

	tglx


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
x86_64 system lockup from userspace using setitimer(), Johannes Bauer, (Tue Mar 13, 11:55 am)
Re: x86_64 system lockup from userspace using setitimer(), Andreas Schwab, (Tue Mar 13, 12:19 pm)
Re: x86_64 system lockup from userspace using setitimer(), Thomas Gleixner, (Tue Mar 13, 1:33 pm)
[PATCH] hrtimer: prevent overrun DoS in hrtimer_forward(), Thomas Gleixner, (Wed Mar 14, 3:00 am)