[PATCH] - linux/arch/ia64/kernel/acpi.c

From: Jack Steiner <steiner_at_sgi.com>
Date: 2003-12-19 06:14:42
The code in acpi_numa_memory_affinity_init that sorts the node_memblk
can overrun the array & clobber the memory that follows the end 
of the array. The error will be seen only on systems that fill
the node_memblk array and only if SAL doesnt sort the entries
in the SRAT. 



--- linux.base/arch/ia64/kernel/acpi.c	Wed Nov 26 14:44:07 2003
+++ linux/arch/ia64/kernel/acpi.c	Thu Dec 18 13:10:03 2003
@@ -413,7 +413,7 @@
 			break;
 	}
 	if (p < pend) {
-		for (q = pend; q >= p; q--)
+		for (q = pend-1; q >= p; q--)
 			*(q + 1) = *q;
 	}
 	p->start_paddr = paddr;
-- 
Thanks

Jack Steiner (steiner@sgi.com)          651-683-5302
Principal Engineer                      SGI - Silicon Graphics, Inc.


-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Dec 18 14:18:55 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:21 EST