2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-29 23:53:55 +08:00
linux-next/arch/powerpc/platforms/cell/spufs
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
..
.gitignore [POWERPC] spufs: add .gitignore for spu_save_dump.h & spu_restore_dump.h 2008-04-30 16:29:30 +10:00
backing_ops.c [POWERPC] spufs: Update SPU_Status[CISHP] in backing runcntl write 2008-02-08 19:52:35 +11:00
context.c powerpc/spufs: avoid magic numbers for mapping sizes 2008-07-09 10:13:40 +10:00
coredump.c [PATCH] split linux/file.h 2008-05-01 13:08:16 -04:00
fault.c [POWERPC] spufs: fix concurrent delivery of class 0 & 1 exceptions 2008-05-05 13:33:44 +10:00
file.c spufs: use new vm_ops->access to allow local state access from gdb 2008-07-24 10:47:15 -07:00
gang.c [CELL] cell: add placement computation for scheduling of affinity contexts 2007-07-20 21:42:17 +02:00
hw_ops.c [POWERPC] spufs: use #defines for SPU class [012] exception status 2007-12-21 19:46:20 +11:00
inode.c SL*B: drop kmem cache argument from constructor 2008-07-26 12:00:07 -07:00
lscsa_alloc.c [POWERPC] spufs: move fault, lscsa_alloc and switch code to spufs module 2007-12-21 19:46:19 +11:00
Makefile [POWERPC] spufs: Add marker-based tracing facility 2008-02-06 16:26:59 +11:00
run.c powerpc/spufs: fix npc setting for NOSCHED contexts 2008-08-13 11:42:47 +10:00
sched.c powerpc/spufs: reference context while dropping state mutex in scheduler 2008-08-14 14:59:12 +10:00
spu_restore_crt0.S [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_restore_dump.h_shipped [CELL] spufs: change decrementer restore timing 2007-07-20 21:42:03 +02:00
spu_restore.c [CELL] spufs: change decrementer restore timing 2007-07-20 21:42:03 +02:00
spu_save_crt0.S [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_save_dump.h_shipped [POWERPC] spufs: one more fix for 64k pages 2006-06-21 15:01:32 +10:00
spu_save.c [POWERPC] spufs: fix building spufs/spu_save_dump.h 2007-07-03 15:24:44 +10:00
spu_utils.h [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spufs.h powerpc/spufs: only add ".ctx" file with "debug" mount option 2008-07-09 10:13:41 +10:00
sputrace.c powerpc/spufs: correct kcalloc usage 2008-07-23 09:37:16 +10:00
switch.c [POWERPC] spufs: handle faults while the context switch pending flag is set 2008-05-05 13:33:44 +10:00
syscalls.c Introduce path_put() 2008-02-14 21:13:33 -08:00