From: Andrew Morton Propagate the fix from mount-t-tmpfs-o-mpol=-check-nodes-online.patch into numa-mempolicy-allow-tunable-policy-for-system-init.patch Cc: Andi Kleen Cc: Christoph Lameter Cc: Hugh Dickins Cc: Lee Schermerhorn Cc: Paul Mundt Signed-off-by: Andrew Morton --- mm/mempolicy.c | 2 ++ 1 files changed, 2 insertions(+) diff -puN mm/mempolicy.c~numa-mempolicy-allow-tunable-policy-for-system-init-fix mm/mempolicy.c --- a/mm/mempolicy.c~numa-mempolicy-allow-tunable-policy-for-system-init-fix +++ a/mm/mempolicy.c @@ -1604,6 +1604,8 @@ int mpol_parse_options(char *value, int *nodelist++ = '\0'; if (nodelist_parse(nodelist, *policy_nodes)) goto out; + if (!nodes_subset(*policy_nodes, node_online_map)) + goto out; } if (!strcmp(value, "default")) { *policy = MPOL_DEFAULT; _