NetBSD Problem Report #51526

From www@NetBSD.org  Mon Oct  3 16:43:21 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 38DAB7A16C
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  3 Oct 2016 16:43:21 +0000 (UTC)
Message-Id: <20161003164319.BBABF7A2A6@mollari.NetBSD.org>
Date: Mon,  3 Oct 2016 16:43:19 +0000 (UTC)
From: mk@steepath.eu
Reply-To: mk@steepath.eu
To: gnats-bugs@NetBSD.org
Subject: NetBSD-7 panic on lenovo x42 and x200 with hypervisor_mmu_update failed
X-Send-Pr-Version: www-1.0

>Number:         51526
>Category:       port-xen
>Synopsis:       NetBSD-7 panic on lenovo x42 and x200 with hypervisor_mmu_update failed
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-xen-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 03 16:45:00 +0000 2016
>Closed-Date:    Sun Jun 24 20:41:37 +0000 2018
>Last-Modified:  Sun Jun 24 20:41:37 +0000 2018
>Originator:     Mathieu Kerjouan
>Release:        NetBSD-7.0
>Organization:
steepath
>Environment:
NetBSD 7.0 NetBSD 7.0 (XEN3_DOM0.201509250726Z) amd64
>Description:
NetBSD XEN3_DOM0 kernel crash during boot on Xen (xen41, xen42, xen45 and xen46) with some hardware. This was discovered during installing test server on some old computer. 

Lenovo x42 (dual-core, 4GB RAM):

 - crash: netbsd7 + xenkernel42 
 - crash: netbsd7 + xenkernel45 
 - crash: netbsd7 + xenkernel46 

Lenovo x200t (dual-core i7, 8GB RAM)

 - ok: netbsd6.1.5 + xen42
 - ok: netbsd6.1.5 + xen45
 - crash: netbsd7 + xen41
 - crash: netbsd7 + xen42
 - crash: netbsd7 + xen46

QEMU 2.7.0 (1CPU, 1024MB RAM, on voidlinux)

 - ok: netbsd7 + xen41
 - ok: netbsd7 + xen42
 - ok: netbsd7 + xen46
 - ok: netbsd6.1.5 + xen41
 - ok: netbsd6.1.5 + xen42

My configuration is simple:

  root (/) = 10GB
  swap = 128MB
  no extra package (only xenkernel)
  installed from binaries

I don't have any output to give you (laptops doesn't have serial ports). I will try to use usb serial port to give you more information concerning this bug. Here the last message from dmesg with db:

  cpu0(0):
    0x0000000008e09ce0: 0x0000000001000017
    kpm_pdir[0]! 0x1376f7027
  panic: HYPERVISOR_mmu_update failed, ret -16

  fatal breakpoint trap in supervisor mode
  trap type 1 code 0 rip fffffff80207475 cs e030 rflags 246 cr2 0
    ilevel 8 rsp ffffffff816f1700
  curlwp 0xffffffff80c606a0 pid 0.1 lowest kstack 0xffffffff816ef2c0

>How-To-Repeat:
All error are reproducible with manual build or with binary from officials NetBSD repositories. Just do a standard Xen minimal installation based on tutorial from NetBSD website or in the web. My installation steps:

 1. installing NetBSD-7.0 amd64 from scratch
 2. installing NetBSD-7.0 XEN3_DOM0 kernel
 3. configuring /boot.cfg
 4. reboot
 5. switch to Xen kernel during boot
 6. crash on Lenovo x42 and Lenovo x200t

After doing my first install on lenovo x200t, I installed NetBSD on qemu (work well), and copied this setup on usb flash drive. 
>Fix:
Switch to NetBSD-6.1.5 (work well on it).

>Release-Note:

>Audit-Trail:
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@netbsd.org
Cc: port-xen-maintainer@netbsd.org, gnats-admin@netbsd.org,
        netbsd-bugs@netbsd.org
Subject: Re: port-xen/51526: NetBSD-7 panic on lenovo x42 and x200 with
 hypervisor_mmu_update failed
Date: Mon, 3 Oct 2016 19:30:54 +0200

 On Mon, Oct 03, 2016 at 04:45:00PM +0000, mk@steepath.eu wrote:
 > >Description:
 > NetBSD XEN3_DOM0 kernel crash during boot on Xen (xen41, xen42, xen45 and xen46) with some hardware. This was discovered during installing test server on some old computer. 
 > 
 > Lenovo x42 (dual-core, 4GB RAM):
 > 
 >  - crash: netbsd7 + xenkernel42 
 >  - crash: netbsd7 + xenkernel45 
 >  - crash: netbsd7 + xenkernel46 
 > 
 > Lenovo x200t (dual-core i7, 8GB RAM)
 > 
 >  - ok: netbsd6.1.5 + xen42
 >  - ok: netbsd6.1.5 + xen45
 >  - crash: netbsd7 + xen41
 >  - crash: netbsd7 + xen42
 >  - crash: netbsd7 + xen46
 > 
 > QEMU 2.7.0 (1CPU, 1024MB RAM, on voidlinux)
 > 
 >  - ok: netbsd7 + xen41
 >  - ok: netbsd7 + xen42
 >  - ok: netbsd7 + xen46
 >  - ok: netbsd6.1.5 + xen41
 >  - ok: netbsd6.1.5 + xen42

 I would suspect the drm driver.
 Would it boot if you rebuild a kernel without DRI/DRM ?

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: mk@steepath.eu
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-xen/51526: NetBSD-7 panic on lenovo x42 and x200 with
 hypervisor_mmu_update failed
Date: Tue, 4 Oct 2016 13:34:21 +0200

 >  I would suspect the drm driver.
 >  Would it boot if you rebuild a kernel without DRI/DRM ?

 With or without DRI/DRM? Because I can't see it on XEN3_DOM0 kernel
 configuration file.

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: port-xen-maintainer@netbsd.org, gnats-admin@netbsd.org,
        netbsd-bugs@netbsd.org, mk@steepath.eu
Subject: Re: port-xen/51526: NetBSD-7 panic on lenovo x42 and x200 with
 hypervisor_mmu_update failed
Date: Tue, 4 Oct 2016 13:45:28 +0200

 On Tue, Oct 04, 2016 at 11:35:01AM +0000, mk@steepath.eu wrote:
 > The following reply was made to PR port-xen/51526; it has been noted by GNATS.
 > 
 > From: mk@steepath.eu
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: port-xen/51526: NetBSD-7 panic on lenovo x42 and x200 with
 >  hypervisor_mmu_update failed
 > Date: Tue, 4 Oct 2016 13:34:21 +0200
 > 
 >  >  I would suspect the drm driver.
 >  >  Would it boot if you rebuild a kernel without DRI/DRM ?
 >  
 >  With or without DRI/DRM? Because I can't see it on XEN3_DOM0 kernel
 >  configuration file.

 yes of course. I meant the agp driver.

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: Mathieu Kerjouan <mathieu.kerjouan@steepath.eu>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-xen/51526: NetBSD-7 panic on lenovo x42 and x200 with
 hypervisor_mmu_update failed
Date: Tue, 4 Oct 2016 18:26:41 +0200

 >  yes of course. I meant the agp driver.

 NetBSD-7.0.1 built without AGP driver boot with xenkernel42 on lenovo
 x42 and x200.

 What's wrong with this driver and Xen?

From: Mathieu Kerjouan <mathieu.kerjouan@steepath.eu>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-xen/51526: NetBSD-7 panic on lenovo x42 and x200 with
 hypervisor_mmu_update failed
Date: Tue, 4 Oct 2016 18:28:40 +0200

 by the way, its not an x42 laptop but an x61 (sorry about this mistake).
 Did you need other data from bad kernel?

State-Changed-From-To: open->closed
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Sun, 24 Jun 2018 20:41:37 +0000
State-Changed-Why:
Duplicate of port-xen/50446.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.