]> 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)
commitb8de81f29f6f72a39c683fa3e3ffc135334c1222
tree33b1af81dfadefcc367307939acbb0d28c07c7c1
parent896c1a19c660acda4a3bfac4bbff2360b2689899
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