This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-bugs] [Bug 648] Unable to bring up Mini-OS on x86_64 Xen

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 648] Unable to bring up Mini-OS on x86_64 Xen
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Thu, 18 May 2006 04:59:42 -0700
Delivery-date: Thu, 18 May 2006 05:00:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <bug-648-3@xxxxxxxxxxxxxxxxxxxxxxxxxxx/bugzilla/>
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx

------- Comment #2 from aravindh.puthiyaparambil@xxxxxxxxxx  2006-05-18 04:59 
Ok, I have found the bug. Mini-OS does not define VIRT_BASE in its __xen_guest
section. This causes dsi->elf_paddr_offset in
parseelfimage() [xc_load_elf.c] to be set to 0. This in turn causes
parray[pa>>PAGE_SHIFT] in loadelfimage[xc_load_elf.c] to go out of bounds
causing a segmentation fault.

This can also happen when an OS elfimage has VIRT_BASE or ELF_PADDR_OFFSET set
to 0. 

The case where VIRT_BASE is set correctly and ELF_PADDR_OFFSET is 0 has been
taken care of.

The fix here is to always ensure that VIRT_BASE is always defined and when
defined it is not set to 0 i.e. always ensure that virt_base variable in
parseelfimage() [xc_load_elf.c] is not 0. 

I will send in a patch for this.


Configure bugmail: 
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Xen-bugs mailing list