linux/arch/powerpc/platforms/cell/spufs
Jeremy Kerr d219889b76 powerpc/spufs: Check file offset before calculating write size in fixed-sized files
Based on an original patch from Roel Kluin <roel.kluin@gmail.com>.

The write size calculated during regs and fpcr writes may currently
go negative. Because size is unsigned, this will wrap, and our
check for EFBIG will fail.

Instead, do the check for EFBIG before subtracting from size.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2009-03-11 17:11:32 +11: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: Initialize ctx->stats.tstamp correctly 2009-03-11 17:10:15 +11:00
coredump.c powerpc: Cleanup from l64 to ll64 change: arch code 2009-01-13 14:47:59 +11:00
fault.c powerpc: Cleanup from l64 to ll64 change: arch code 2009-01-13 14:47:59 +11:00
file.c powerpc/spufs: Check file offset before calculating write size in fixed-sized files 2009-03-11 17:11:32 +11: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 powerpc/spufs: Constify context contents and coredump callback constants 2009-02-23 10:48:59 +11: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: Clear purge status before setting up isolated mode 2009-02-23 10:48:59 +11:00
sched.c cpumask: powerpc: Introduce cpumask_of_{node,pcibus} to replace {node,pcibus}_to_cpumask 2008-12-26 22:23:39 +10:30
spu_restore.c [CELL] spufs: change decrementer restore timing 2007-07-20 21:42:03 +02:00
spu_restore_crt0.S
spu_restore_dump.h_shipped [CELL] spufs: change decrementer restore timing 2007-07-20 21:42:03 +02:00
spu_save.c [POWERPC] spufs: fix building spufs/spu_save_dump.h 2007-07-03 15:24:44 +10:00
spu_save_crt0.S
spu_save_dump.h_shipped
spu_utils.h
spufs.h powerpc/spufs: Constify context contents and coredump callback constants 2009-02-23 10:48:59 +11:00
sputrace.c Merge commit 'origin' into master 2008-10-21 15:52:04 +11: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 [PATCH] don't pass bogus flags to LOOKUP_PARENT lookup in spufs 2008-10-23 05:12:55 -04:00