Files
kernel_xiaomi_sm8250/include/linux
akpm@osdl.org ff60a5dc4f [PATCH] hrtimers: fix posix-timer requeue race
From: Steven Rostedtrostedt@goodmis.org <rostedt@goodmis.org>

CPU0 expires a posix-timer and runs the callback function.  The signal is
queued.

After releasing the posix-timer lock and before returning to hrtimer_run_queue
CPU0 gets interrupted.  CPU1 delivers the queued signal and rearms the timer.
CPU0 comes back to hrtimer_run_queue and sets the timer state to expired.

The next modification of the timer can result in an oops, because the state
information is wrong.

Keep track of state = RUNNING and check if the state has been in the return
path of hrtimer_run_queue.  In case the state has been changed, ignore a
restart request and do not touch the state variable.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-02-01 08:53:13 -08:00
..
2006-01-08 20:14:02 -08:00
2006-01-06 14:58:39 -05:00
2006-01-18 19:20:24 -08:00
2006-01-13 16:29:56 -08:00
2005-11-13 18:14:17 -08:00
2006-01-13 09:12:21 -08:00
2006-01-03 13:11:06 -08:00
2006-01-08 20:14:02 -08:00
2006-01-14 18:27:10 -08:00
2006-01-08 20:13:58 -08:00
2006-01-10 00:09:36 +01:00
2006-01-08 20:13:49 -08:00
2006-01-18 19:20:29 -08:00
2005-11-13 18:14:10 -08:00
2006-01-18 19:20:29 -08:00
2005-11-10 02:26:41 +01:00
2006-01-14 18:27:09 -08:00
2006-01-06 08:33:54 -08:00
2006-01-06 13:24:54 -08:00
2006-01-14 18:25:20 -08:00
2006-01-06 13:24:29 -08:00
2006-01-06 08:33:53 -08:00
2006-01-06 08:33:59 -08:00
2006-01-10 08:01:59 -08:00
2006-01-16 23:15:27 -08:00
2006-01-18 19:20:17 -08:00
2006-01-08 20:13:46 -08:00
2006-01-18 19:20:29 -08:00
2006-01-06 08:33:20 -08:00
2006-01-14 18:27:12 -08:00
2006-01-03 13:11:15 -08:00
2006-01-06 08:33:29 -08:00
2005-11-13 18:14:12 -08:00
2006-01-15 02:12:54 +01:00
2006-01-06 08:33:27 -08:00
2006-01-18 19:20:29 -08:00
2006-01-10 08:01:42 -08:00
2006-01-08 20:14:02 -08:00
2006-01-14 18:27:13 -08:00
2006-01-12 14:06:31 -08:00
2006-01-18 19:20:17 -08:00
2006-01-08 20:13:45 -08:00
2006-01-18 19:20:17 -08:00
2006-01-12 14:06:38 -08:00
2006-01-18 19:20:17 -08:00
2006-01-10 08:01:59 -08:00
2006-01-10 08:01:59 -08:00
2006-01-10 08:01:59 -08:00
2006-01-08 20:12:40 -08:00
2006-01-10 08:01:57 -08:00