public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Peter Hurley <peter@hurleysoftware.com>
Cc: Gleb Natapov <gleb@redhat.com>,
	"H. Peter Anvin" <hpa@linux.intel.com>,
	linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Subject: Re: [Bisected][-next-20130204+] [x86/kvm] udevd:[97]: segfault at ffffffffff5fd020 ip 00007fff069e277f sp 00007fff068c9ef8 error d
Date: Mon, 18 Feb 2013 19:59:55 -0300	[thread overview]
Message-ID: <20130218225955.GA6166@amt.cnet> (raw)
In-Reply-To: <1360756629.4803.5.camel@thor.lan>

On Wed, Feb 13, 2013 at 06:57:09AM -0500, Peter Hurley wrote:
> On Wed, 2013-02-13 at 12:51 +0200, Gleb Natapov wrote:
> > On Tue, Feb 12, 2013 at 04:39:03PM -0800, H. Peter Anvin wrote:
> > > On 02/12/2013 04:26 PM, Peter Hurley wrote:
> > > > With -next-20130204+ in ubuntu 12.10 VM (so the 80x25 VGA
> > > > device/console):
> > > > 
> > > > [    0.666410] udevd[97]: starting version 175
> > > > [    0.674043] udevd[97]: udevd:[97]: segfault at ffffffffff5fd020 ip 00007fff069e277f sp 00007fff068c9ef8 error d
> > > > 
> > > > and boots to an initramfs prompt.
> > > > 
> > > > git bisect (log attached) blames:
> > > > 
> > > > commit 7b5c4a65cc27f017c170b025f8d6d75dabb11c6f
> > > > Merge: 3596f5b 949db15
> > > > Author: H. Peter Anvin <hpa@linux.intel.com>
> > > > Date:   Fri Jan 25 16:31:21 2013 -0800
> > > > 
> > > >     Merge tag 'v3.8-rc5' into x86/mm
> > > >     
> > > >     The __pa() fixup series that follows touches KVM code that is not
> > > >     present in the existing branch based on v3.7-rc5, so merge in the
> > > >     current upstream from Linus.
> > > >     
> > > >     Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
> > > > 
> > > > 
> > > > This only happens with the VGA device/console but that is the default
> > > > configuration for Ubuntu/KVM because it blacklists pretty much every fb
> > > > driver.
> > > > 
> > > 
> > > I am guessing this is another bad use of __pa()... need to look into that.

Can't find this commit on kvm.git or linux-2.6.git. Is it reproducible
there?

> > He is using 64bit guest and on those __pa() happens to be working. Is it
> > possible that slow_virt_to_phys() does not work as expected? Peter (the
> > bug reporter :)) can you run your guest kernel with loglevel=7 and
> > attach send me console output?
> 
> Attached.
> 
> BTW, this message happens on 'good' boots too:
> 
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] WARNING: at /home/peter/src/kernels/next/arch/x86/kernel/pvclock.c:182 pvclock_init_vsyscall+0x22/0x60()
> [    0.000000] Hardware name: Bochs
> [    0.000000] Modules linked in:
> [    0.000000] Pid: 0, comm: swapper Not tainted 3.8.0-next-20130204-xeon #20130204
> [    0.000000] Call Trace:
> [    0.000000]  [<ffffffff8105812f>] warn_slowpath_common+0x7f/0xc0
> [    0.000000]  [<ffffffff8105818a>] warn_slowpath_null+0x1a/0x20
> [    0.000000]  [<ffffffff81d20521>] pvclock_init_vsyscall+0x22/0x60
> [    0.000000]  [<ffffffff81d20480>] kvm_setup_vsyscall_timeinfo+0x74/0xd8
> [    0.000000]  [<ffffffff81d201d1>] kvm_guest_init+0xd0/0xe9
> [    0.000000]  [<ffffffff81d13f7c>] setup_arch+0xbee/0xcaf
> [    0.000000]  [<ffffffff816cbceb>] ? printk+0x61/0x63
> [    0.000000]  [<ffffffff81d0cbc3>] start_kernel+0xd3/0x3f0
> [    0.000000]  [<ffffffff81d0c5e4>] x86_64_start_reservations+0x2a/0x2c
> [    0.000000]  [<ffffffff81d0c6d7>] x86_64_start_kernel+0xf1/0x100
> [    0.000000] ---[ end trace b47bb564b2d6ec76 ]---
> 
> Regards,
> Peter Hurley

Sending a patch for this, thanks for the report.

  reply	other threads:[~2013-02-18 22:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-13  0:26 [Bisected][-next-20130204+] [x86/kvm] udevd:[97]: segfault at ffffffffff5fd020 ip 00007fff069e277f sp 00007fff068c9ef8 error d Peter Hurley
2013-02-13  0:39 ` H. Peter Anvin
2013-02-13 10:51   ` Gleb Natapov
2013-02-13 11:57     ` Peter Hurley
2013-02-18 22:59       ` Marcelo Tosatti [this message]
2013-02-19  1:12         ` Peter Hurley
2013-02-19  8:26           ` Gleb Natapov
2013-02-20 17:20             ` Peter Hurley
2013-02-24 21:23             ` Peter Hurley
2013-02-27 19:43               ` Marcelo Tosatti
2013-02-27 20:28                 ` [PATCH] x86/kvm: Fix pvclock vsyscall fixmap Peter Hurley

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=20130218225955.GA6166@amt.cnet \
    --to=mtosatti@redhat.com \
    --cc=gleb@redhat.com \
    --cc=hpa@linux.intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peter@hurleysoftware.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox