From: Jack Steiner <steiner@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] - linux/arch/ia64/kernel/acpi.c
Date: Thu, 18 Dec 2003 19:14:42 +0000 [thread overview]
Message-ID: <marc-linux-ia64-107177513519511@msgid-missing> (raw)
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.
next reply other threads:[~2003-12-18 19:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-18 19:14 Jack Steiner [this message]
2003-12-19 23:10 ` [PATCH] - linux/arch/ia64/kernel/acpi.c David Mosberger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-107177513519511@msgid-missing \
--to=steiner@sgi.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.