]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Add mm->task_size and fix powerpc vdso
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 1 Mar 2006 00:59:19 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Mar 2006 04:53:44 +0000 (20:53 -0800)
commit0a4ef225421935f9e00762999a9e3938c95db785
tree760783df743eec940d6f6cb848498580ddde03d8
parent26bda9fcd59928d5cb5c2496257fdeaa5d8912cc
[PATCH] Add mm->task_size and fix powerpc vdso

This patch adds mm->task_size to keep track of the task size of a given mm
and uses that to fix the powerpc vdso so that it uses the mm task size to
decide what pages to fault in instead of the current thread flags (which
broke when ptracing).

(akpm: I expect that mm_struct.task_size will become the way in which we
finally sort out the confusion between 32-bit processes and 32-bit mm's.  It
may need tweaks, but at this stage this patch is powerpc-only.)

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/powerpc/kernel/vdso.c
fs/exec.c
include/linux/sched.h