android_kernel_xiaomi_sm8350/arch/powerpc/platforms
Jeremy Kerr c443acab2e [POWERPC] spufs: Fix context destroy vs /spu readdir race
We can currently cause an oops by repeatedly creating and destroying
contexts, while doing getdents() calls on the "/spu" directory.

This is due to the context's top-level dentry remaining hashed while
the context is being destroyed.

Fix this by unhashing the context's dentry with the
dentry->d_inode->i_mutex held. This way, we'll hit the check for
d_unhashed in dentry_readdir, and won't be included in the
list of subdirs for /spu.

test: spufs-testsuite:tests/01-spu_create/07-destroy-vs-readdir-race

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-11-20 16:10:20 +11:00
..
8xx
40x [POWERPC] 4xx: Replace #includes of asm/of_platform.h with linux/of_platform.h. 2007-11-19 08:13:08 -06:00
44x [POWERPC] 4xx: Replace #includes of asm/of_platform.h with linux/of_platform.h. 2007-11-19 08:13:08 -06:00
52xx [POWERPC] Enable restart support for lite5200 board 2007-10-21 12:43:14 -06:00
82xx
83xx
85xx [POWERPC] 85xx: Killed <asm/mpc85xx.h> 2007-10-11 09:14:31 -05:00
86xx
cell [POWERPC] spufs: Fix context destroy vs /spu readdir race 2007-11-20 16:10:20 +11:00
celleb [POWERPC] Fix build failure when CONFIG_VIRT_CPU_ACCOUNTING is not defined 2007-11-08 14:15:31 +11:00
chrp [POWERPC] Platforms shouldn't mess with ROOT_DEV 2007-10-11 20:40:43 +10:00
embedded6xx [POWERPC] prpmc2800: Enable L2 cache 2007-11-19 15:11:30 +11:00
iseries [POWERPC] iSeries: Fix ref counting in vio setup 2007-11-08 14:15:33 +11:00
maple remove asm/bitops.h includes 2007-10-19 11:53:41 -07:00
pasemi [POWERPC] pasemi: Don't reset mpic at boot 2007-11-19 19:27:17 -06:00
powermac Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq 2007-10-12 15:42:01 -07:00
prep
ps3 Update arch/ to use sg helpers 2007-10-22 21:19:59 +02:00
pseries [POWERPC] Fix RTAS os-term usage on kernel panic 2007-11-20 16:10:09 +11:00
fsl_uli1575.c
Kconfig typo fixes 2007-10-20 01:34:40 +02:00
Kconfig.cputype [POWERPC] 4xx: Split early debug output and early boot console for 44x 2007-10-19 16:18:18 -05:00
Makefile