]> git.baikalelectronics.ru Git - kernel.git/commit
alarmtimers: Avoid possible denial of service with high freq periodic timers
authorJohn Stultz <john.stultz@linaro.org>
Wed, 10 Aug 2011 17:26:09 +0000 (10:26 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 10 Aug 2011 17:26:09 +0000 (10:26 -0700)
commitfc1049547eb37ee972f870191cd1499807e5da48
tree33b1af81dfadefcc367307939acbb0d28c07c7c1
parent58c6f18746c0fc56b115d512fb8b30b04c511022
alarmtimers: Avoid possible denial of service with high freq periodic timers

Its possible to jam up the alarm timers by setting very small interval
timers, which will cause the alarmtimer subsystem to spend all of its time
firing and restarting timers. This can effectivly lock up a box.

A deeper fix is needed, closely mimicking the hrtimer code, but for now
just cap the interval to 100us to avoid userland hanging the system.

CC: Thomas Gleixner <tglx@linutronix.de>
CC: stable@kernel.org
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/alarmtimer.c