- get_nodes-should-ignore-invalid-node.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     get_nodes() should ignore invalid node
has been removed from the -mm tree.  Its filename was
     get_nodes-should-ignore-invalid-node.patch

This patch was dropped because it was nacked

------------------------------------------------------
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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux