rtc: limit frequency
commit431e2bcc371016824f419baa745f82388258f3ee
authorThomas Gleixner <tglx@linutronix.de>
Tue, 26 Jul 2011 23:08:19 +0000 (26 16:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 23:49:42 +0000 (26 16:49 -0700)
tree11ed612c73773e5e61160efa6ff5f0c3efe5c936
parent2c4f57d12df7696d65b0247bfd57fd082a7719e6
rtc: limit frequency

Due to the hrtimer self rearming mode a user can DoS the machine simply
because it's starved by hrtimer events.

The RTC hrtimer is self rearming.  We really need to limit the frequency
to something sensible.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Ben Greear <greearb@candelatech.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/interface.c