From: "Jan Beulich" Subject: Re: Xen BUG at page_alloc.c:1738 (Xen 4.5) Date: Wed, 20 May 2015 11:41:14 +0100 Message-ID: <555C80EA020000780007C12D@mail.emea.novell.com> References: <555B7BB8.90909@mhtx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <555B7BB8.90909@mhtx.net> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Major Hayden Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 19.05.15 at 20:06, wrote: > I've been doing some testing of Xen 4.5 on Fedora 22 (due out within a week) > and I have an error that prevents the server from booting in the very early > boot process: > >> (XEN) Xen call trace: >> (XEN) [] free_domheap_pages+0x240/0x430 >> (XEN) [] mmio_ro_do_page_fault+0x114/0x160 >> (XEN) [] do_page_fault+0x1a0/0x4f0 >> (XEN) [] handle_exception_saved+0x2e/0x6c >> (XEN) >> (XEN) >> (XEN) **************************************** >> (XEN) Panic on CPU 0: >> (XEN) Xen BUG at page_alloc.c:1738 >> (XEN) **************************************** > > The full output is over in a Github Gist[1]. > > I've tested this on some physical machines (Dell, HP, and SuperMicro > servers) as well as within a KVM virtual machine but I get the same boot > error each time. Considering that no-one else is seeing this - is this perhaps connected to you building Xen with pre-release gcc 5.0.1? This is also because in order for the above to indeed occur, mmio_ro_do_page_fault()'s put_page() would need to drop the last reference of a page, yet page_get_owner_and_reference() doesn't obtain a reference when a page is unallocated (and hence unowned), i.e. normally a page would have a refcount of at least 2 here. Hence this would be possible only due to a race, but the exact same race to be observed on different hardware _and_ under an emulator is extremely unlikely. Jan