Jeremy Kerr
8d5636fbca
powerpc/spufs: reference context while dropping state mutex in scheduler
...
Based on an original patch from Christoph Hellwig <hch@lst.de>.
Currently, there is a possible reference-after-free in the spusched
code - contexts may be freed after we have released their state_mutex
in spusched_tick and find_victim.
This change takes a reference to the context before releasing the
mutex, so that the context doesn't get destroyed.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2008-08-14 14:59:12 +10:00
..
2008-08-14 14:59:12 +10:00
2008-06-09 13:51:16 +10:00
2008-07-15 12:24:59 +10:00
2008-04-24 21:08:13 +10:00
2008-04-24 21:08:14 +10:00
2008-04-24 21:08:14 +10:00
2008-04-24 21:08:13 +10:00
2008-04-24 21:08:14 +10:00
2008-04-24 21:08:13 +10:00
2008-04-24 21:08:13 +10:00
2008-04-24 21:08:14 +10:00
2008-04-24 21:08:13 +10:00
2008-04-24 21:08:14 +10:00
2008-04-24 21:08:14 +10:00
2007-10-09 21:01:56 +10:00
2008-07-30 09:41:43 -07:00
2007-12-19 01:00:02 +01:00
2007-07-20 21:41:38 +02:00
2008-07-22 10:39:32 +10:00
2007-12-20 17:13:51 +11:00
2008-07-21 21:55:02 -07:00
2008-04-24 21:08:14 +10:00
2008-04-24 21:08:14 +10:00
2008-04-24 21:08:13 +10:00
2008-07-26 12:00:03 -07:00
2008-04-24 21:08:13 +10:00
2008-04-24 21:08:13 +10:00
2008-04-24 21:08:14 +10:00
2008-04-24 21:08:14 +10:00
2008-07-22 10:39:31 +10:00
2008-06-26 11:22:13 +02:00
2006-12-04 20:40:12 +11:00
2008-05-15 20:49:57 +10:00
2008-05-15 20:49:57 +10:00
2008-07-25 15:44:43 +10:00
2008-07-22 10:39:32 +10:00
2008-07-22 10:39:32 +10:00
2008-07-22 10:39:31 +10:00
2008-07-22 10:39:31 +10:00
2008-01-17 14:57:15 +11:00
2008-07-22 10:39:31 +10:00
2006-06-21 15:01:29 +10:00
2008-04-24 21:08:12 +10:00
2007-12-03 13:56:25 +11:00
2008-07-26 12:00:03 -07:00
2008-06-09 13:51:16 +10:00
2008-07-21 21:55:02 -07:00
2008-04-01 20:43:09 +11:00
2007-12-21 19:46:19 +11:00
2008-04-01 20:43:09 +11:00
2007-12-28 15:07:52 +11:00
2008-05-05 13:33:43 +10:00
2006-12-04 20:40:39 +11:00
2007-12-28 15:07:52 +11:00