Skip to contentSkip to conversation

powerpc: Fix loss of vdso on fork on 32bit

PATCH New Benjamin Herrenschmidt 1 participant 1 message Aug 12, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Fix loss of vdso on fork on 32bit

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.

 arch/powerpc/include/asm/mmu_context.h |    1 -
 1 file changed, 1 deletion(-)
arch/powerpc/include/asm/mmu_context.h +0 -1
@@ -147,7 +147,6 @@ static inline void get_mmu_context(struc
 static inline int init_new_context(struct task_struct *t, struct mm_struct *mm)
 {
 	mm->context.id = NO_CONTEXT;
-	mm->context.vdso_base = 0;
 	return 0;
 }