Index: linux-2.6.19-rc3-mm1/mm/migrate.c =================================================================== --- linux-2.6.19-rc3-mm1.orig/mm/migrate.c 2006-10-30 16:45:05.000000000 -0600 +++ linux-2.6.19-rc3-mm1/mm/migrate.c 2006-10-30 21:32:12.767601416 -0600 @@ -878,13 +878,17 @@ asmlinkage long sys_move_pages(pid_t pid struct mm_struct *mm; struct page_to_node *pm = NULL; + printk("sys_move_pages: 1\n"); /* Check flags */ if (flags & ~(MPOL_MF_MOVE|MPOL_MF_MOVE_ALL)) return -EINVAL; + printk("sys_move_pages: 2\n"); if ((flags & MPOL_MF_MOVE_ALL) && !capable(CAP_SYS_NICE)) return -EPERM; + printk("sys_move_pages: 3\n"); + /* Find the mm_struct */ read_lock(&tasklist_lock); task = pid ? find_task_by_pid(pid) : current; @@ -898,6 +902,7 @@ asmlinkage long sys_move_pages(pid_t pid if (!mm) return -EINVAL; + printk("sys_move_pages: 4\n"); /* * Check if this process has the right to modify the specified * process. The right exists if the process has administrative @@ -911,10 +916,12 @@ asmlinkage long sys_move_pages(pid_t pid goto out2; } + printk("sys_move_pages: 5\n"); err = security_task_movememory(task); if (err) goto out2; + printk("sys_move_pages: 6\n"); task_nodes = cpuset_mems_allowed(task);