The patch titled get_nodes() should ignore invalid node has been added to the -mm tree. Its filename is get_nodes-should-ignore-invalid-node.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: get_nodes() should ignore invalid node From: Shaohua Li <shaohua.li@xxxxxxxxx> get_nodes() doesn't check if nodes in node mask are valid, cause a kernel oops when an invalid node is used.. Signed-off-by: Shaohua Li <shaohua.li@xxxxxxxxx> Cc: Christoph Lameter <clameter@xxxxxxx> Cc: <stable@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mempolicy.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN mm/mempolicy.c~get_nodes-should-ignore-invalid-node mm/mempolicy.c --- a/mm/mempolicy.c~get_nodes-should-ignore-invalid-node +++ a/mm/mempolicy.c @@ -850,6 +850,8 @@ static int get_nodes(nodemask_t *nodes, if (copy_from_user(nodes_addr(*nodes), nmask, nlongs*sizeof(unsigned long))) return -EFAULT; nodes_addr(*nodes)[nlongs-1] &= endmask; + + nodes_and(*nodes, *nodes, node_online_map); return 0; } _ Patches currently in -mm which might be from shaohua.li@xxxxxxxxx are origin.patch get_nodes-should-ignore-invalid-node.patch git-acpi.patch git-kvm.patch fix-ide-ide-hook-acpi-psx-method-to-ide-power-on-off.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html