public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: "Roedel, Joerg" <Joerg.Roedel@amd.com>
Cc: IVAN ANGELOV <ivangotoy@gmail.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	Ingo Molnar <mingo@elte.hu>, "x86@kernel.org" <x86@kernel.org>
Subject: Re: kvm_amd BUG: unable to handle kernel NULL pointer dereference at 00000014
Date: Mon, 07 Mar 2011 15:20:42 +0200	[thread overview]
Message-ID: <4D74DBAA.7020901@redhat.com> (raw)
In-Reply-To: <20110307131649.GF17719@amd.com>

On 03/07/2011 03:16 PM, Roedel, Joerg wrote:
> On Mon, Mar 07, 2011 at 07:50:14AM -0500, Avi Kivity wrote:
> >  On 03/07/2011 02:11 PM, Roedel, Joerg wrote:
>
> >  >  There is no access to per_cpu variables at the start of x86_decode_insn.
> >  >  I did a bit of investigation and it turns out that the faulting
> >  >  instruction is inserted into the code by the gcc because the
> >  >  CONFIG_CC_STACKPROTECTOR is enabled.
> >  >  The user tested this is Ubuntu 11.04 alpha-something i386 and this
> >  >  distro uses gcc 4.5.2. So CC_STACKPROTECTOR seems to be harmful with
> >  >  this gcc version but I am not sure whether this counts as a gcc bug.
> >
> >  Ah, looks like %gs is the expected segment on i386 with
> >  -fstack-protector.  So we must disable lazy gs reload in that scenario.
>
> According to the comments in stackprotector.h its the same on amd64 (the
> difference is that gcc expects the canary value at a different offset
> from %gs).
> So we should probably unlazy %gs reload alltogether.

On x86_64 we don't do lazy %gs reload (lazy %fs instead), so it should 
work as is.

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2011-03-07 13:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03 22:34 kvm_amd BUG: unable to handle kernel NULL pointer dereference at 00000014 IVAN ANGELOV
2011-03-06 10:23 ` Avi Kivity
2011-03-07 12:11   ` Roedel, Joerg
2011-03-07 12:50     ` Avi Kivity
2011-03-07 13:16       ` Roedel, Joerg
2011-03-07 13:20         ` Avi Kivity [this message]
2011-03-07 13:29           ` Roedel, Joerg

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=4D74DBAA.7020901@redhat.com \
    --to=avi@redhat.com \
    --cc=Joerg.Roedel@amd.com \
    --cc=ivangotoy@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=x86@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox