All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	xen-devel@lists.xenproject.org
Subject: Re: dom0 PV looping on search_pre_exception_table()
Date: Wed, 9 Dec 2020 10:49:04 +0100	[thread overview]
Message-ID: <20201209094904.GC1469@antioche.eu.org> (raw)
In-Reply-To: <cf1f85eb-1aa2-c3fa-680c-ea5ba5f68647@suse.com>

On Wed, Dec 09, 2020 at 09:39:49AM +0100, Jan Beulich wrote:
> On 08.12.2020 19:13, Andrew Cooper wrote:
> > On 08/12/2020 17:57, Manuel Bouyer wrote:
> >> Hello,
> >> for the first time I tried to boot a xen kernel from devel with
> >> a NetBSD PV dom0. The kernel boots, but when the first userland prcess
> >> is launched, it seems to enter a loop involving search_pre_exception_table()
> >> (I see an endless stream from the dprintk() at arch/x86/extable.c:202)
> >>
> >> With xen 4.13 I see it, but exactly once:
> >> (XEN) extable.c:202: Pre-exception: ffff82d08038c304 -> ffff82d08038c8c8
> >>
> >> with devel:
> >> (XEN) extable.c:202: Pre-exception: ffff82d040393309 -> ffff82d0403938c8        
> >> (XEN) extable.c:202: Pre-exception: ffff82d040393309 -> ffff82d0403938c8        
> >> (XEN) extable.c:202: Pre-exception: ffff82d040393309 -> ffff82d0403938c8        
> >> (XEN) extable.c:202: Pre-exception: ffff82d040393309 -> ffff82d0403938c8        
> >> (XEN) extable.c:202: Pre-exception: ffff82d040393309 -> ffff82d0403938c8        
> >> [...]
> >>
> >> the dom0 kernel is the same.
> >>
> >> At first glance it looks like a fault in the guest is not handled at it should,
> >> and the userland process keeps faulting on the same address.
> >>
> >> Any idea what to look at ?
> > 
> > That is a reoccurring fault on IRET back to guest context, and is
> > probably caused by some unwise-in-hindsight cleanup which doesn't
> > escalate the failure to the failsafe callback.
> 
> But is this a 32-bit Dom0? 64-bit ones get well-known selectors
> installed for CS and SS by create_bounce_frame(), and we don't
> permit registration of non-canonical trap handler entry point
> addresses.

No, it's a 64bits dom0.

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


  reply	other threads:[~2020-12-09  9:49 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-08 17:57 dom0 PV looping on search_pre_exception_table() Manuel Bouyer
2020-12-08 18:13 ` Andrew Cooper
2020-12-09  8:39   ` Jan Beulich
2020-12-09  9:49     ` Manuel Bouyer [this message]
2020-12-09 10:15   ` Manuel Bouyer
2020-12-09 13:28     ` Andrew Cooper
2020-12-09 13:59       ` Manuel Bouyer
2020-12-09 14:41         ` Andrew Cooper
2020-12-09 15:44           ` Manuel Bouyer
2020-12-09 16:00             ` Andrew Cooper
2020-12-09 16:30               ` Manuel Bouyer
2020-12-09 18:08                 ` Andrew Cooper
2020-12-09 18:57                   ` Manuel Bouyer
2020-12-09 19:08                     ` Andrew Cooper
2020-12-10  9:51                       ` Manuel Bouyer
2020-12-10 10:41                         ` Jan Beulich
2020-12-10 15:51                         ` Andrew Cooper
2020-12-10 17:03                           ` Manuel Bouyer
2020-12-10 17:18                             ` Andrew Cooper
2020-12-10 17:35                               ` Manuel Bouyer
2020-12-10 21:01                                 ` Andrew Cooper
2020-12-11 10:47                                   ` Manuel Bouyer
2020-12-11  8:58                         ` Jan Beulich
2020-12-11 11:15                           ` Manuel Bouyer
2020-12-11 13:56                             ` Andrew Cooper

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=20201209094904.GC1469@antioche.eu.org \
    --to=bouyer@antioche.eu.org \
    --cc=andrew.cooper3@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=xen-devel@lists.xenproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.