Re: [PATCH] atmel_tc clocksource/clockevent code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Remy Bohmer
Date: Wednesday, March 5, 2008 - 3:35 pm

Hello Thomas,


I will see what I can do, but this was the easiest way (it was just a
print-screen;-) )
But, will text-dump make it more clear? It could also contain the time
each assembler instruction will take behind the routines...
But, I will look into that tomorrow. (approx. 12 hours from now)


But, I want to expose a bigger risk here.
Apparently it is possible that a non privileged user can overload the
system easily, by starting a high frequency periodic timer. The system
will be that busy handling that timer that the system stops
responding, thus it will result in some kind of Denial-of-Service
situation, even on X86.

I think that there should be a hard limit to prevent starting timers
at higher frequencies than they can be handled by the platform,
included the scheduler overhead.

David has proposed a solution via the kernel-commandline, but I think
it should be a hard coded limit, to prevent that it is forgotten by
the end-user to put it on the kernel-cmd-line. Maybe a sub-option that
gets visible when HRT is enabled in menuconfig, this option should be
default very conservative, and the user should think about the lower
bound he really needs before he really gets HRT enabled.

What do you think of this? (I can propose a patch for this tomorrow)


Kind Regards,

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

Messages in current thread:
[PATCH] atmel_tc library, Haavard Skinnemoen, (Tue Mar 4, 6:07 am)
[PATCH] atmel_tc clocksource/clockevent code, Haavard Skinnemoen, (Tue Mar 4, 6:07 am)
Re: [PATCH] atmel_tc clocksource/clockevent code, Remy Bohmer, (Tue Mar 4, 12:42 pm)
Re: [PATCH] atmel_tc clocksource/clockevent code, David Brownell, (Tue Mar 4, 1:47 pm)
Re: [PATCH] atmel_tc clocksource/clockevent code, Remy Bohmer, (Wed Mar 5, 4:17 am)
Re: [PATCH] atmel_tc clocksource/clockevent code, David Brownell, (Wed Mar 5, 6:06 am)
Re: [PATCH] atmel_tc clocksource/clockevent code, Thomas Gleixner, (Wed Mar 5, 9:45 am)
Re: [PATCH] atmel_tc clocksource/clockevent code, David Brownell, (Wed Mar 5, 2:14 pm)
Re: [PATCH] atmel_tc clocksource/clockevent code, Remy Bohmer, (Wed Mar 5, 3:35 pm)
Re: [PATCH] atmel_tc clocksource/clockevent code, Thomas Gleixner, (Wed Mar 5, 3:52 pm)