]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix loss of vdso on fork on 32-bit
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 12 Aug 2008 07:03:26 +0000 (17:03 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 18 Aug 2008 04:22:34 +0000 (14:22 +1000)
commit1d259e38cdeb5e857bbdb50c7d633a77e37a20c1
tree24512228e7afbf4c8fcdce6be9175f9655249ffc
parent441226859e4bd86384119210144b5aa3d93ba1b7
powerpc: Fix loss of vdso on fork on 32-bit

When we fork, init_new_context() improperly resets the vdso_base
of the new context to 0.  That means that the new process loses
access to the vdso for signal trampolines.

The initialization should be unnecessary anyway as the context
on a fresh mm should be 0 in the first place and binfmt_elf
will initialize that value for a newly loaded process.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/include/asm/mmu_context.h