From: Christoph Lameter Page migration currently does not check if the target of the move contains nodes that that are invalid (if root attempts to migrate pages) and may try to allocate from invalid nodes if these are specified leading to oopses. Return -EINVAL if an offline node is specified. Signed-off-by: Christoph Lameter --- mm/mempolicy.c | 5 +++++ 1 file changed, 5 insertions(+) Index: linux-2.6/mm/mempolicy.c =================================================================== --- linux-2.6.orig/mm/mempolicy.c 2007-08-31 00:07:39.000000000 -0700 +++ linux-2.6/mm/mempolicy.c 2007-08-31 00:08:22.000000000 -0700 @@ -955,6 +955,11 @@ asmlinkage long sys_migrate_pages(pid_t goto out; } + if (!nodes_subset(new, node_online_map)) { + err = -EINVAL; + goto out; + } + err = security_task_movememory(task); if (err) goto out;