[PATCH] ppc64: lacks definition of MM_VM_SIZE()
Anton Blanchard
anton at samba.org
Sat Jan 15 11:00:55 EST 2005
David: you have to send me some spare Signed-off-by's :)
Anton
--
From: David Woodhouse <dwmw2 at infradead.org>
We don't set MM_VM_SIZE() on ppc64, so it defaults to TASK_SIZE. Which
means a 32-bit process ending up in exit_mmap() to kill a 64-bit mm may
call tlb_finish_mmu() with an incorrect 'end' argument.
Signed-off-by: Anton Blanchard <anton at samba.org>
===== include/asm-ppc64/processor.h 1.59 vs edited =====
--- 1.59/include/asm-ppc64/processor.h Tue Jan 11 01:29:24 2005
+++ edited/include/asm-ppc64/processor.h Fri Jan 14 14:42:44 2005
@@ -537,6 +537,10 @@
#define TASK_SIZE (test_thread_flag(TIF_32BIT) ? \
TASK_SIZE_USER32 : TASK_SIZE_USER64)
+/* We can't actually tell the TASK_SIZE given just the mm, but default
+ * to the 64-bit case to make sure that enough gets cleaned up. */
+#define MM_VM_SIZE(mm) TASK_SIZE_USER64
+
/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.
*/
More information about the Linuxppc64-dev
mailing list