|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] The memset in init_switch_stack is overwriting the proce
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 8961787f6668a954700f5d5ed00b8839e09a1dd8
# Parent bc9f304c88a178f2216457e03964b399cc5e5028
The memset in init_switch_stack is overwriting the processor stack.
We need to avoid manipulating the switch stack area of the currently
running cpu. Original patch by Kevin Tian.
Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
diff -r bc9f304c88a1 -r 8961787f6668 xen/arch/ia64/xen/domain.c
--- a/xen/arch/ia64/xen/domain.c Tue Jan 31 23:49:56 2006
+++ b/xen/arch/ia64/xen/domain.c Tue Jan 31 23:54:41 2006
@@ -157,14 +157,14 @@
if ((v = alloc_xenheap_pages(KERNEL_STACK_SIZE_ORDER)) == NULL)
return NULL;
memset(v, 0, sizeof(*v));
- }
-
- ti = alloc_thread_info(v);
- /* Clear thread_info to clear some important fields, like
- * preempt_count
- */
- memset(ti, 0, sizeof(struct thread_info));
- init_switch_stack(v);
+
+ ti = alloc_thread_info(v);
+ /* Clear thread_info to clear some important fields, like
+ * preempt_count
+ */
+ memset(ti, 0, sizeof(struct thread_info));
+ init_switch_stack(v);
+ }
if (!is_idle_domain(d)) {
v->arch.privregs =
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
|
|
|
|